[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141204105908.GM11285@n2100.arm.linux.org.uk>
Date: Thu, 4 Dec 2014 10:59:08 +0000
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Rob Herring <robherring2@...il.com>
Cc: Pali Rohár <pali.rohar@...il.com>,
Santosh Shilimkar <santosh.shilimkar@...com>,
Will Deacon <will.deacon@....com>,
Ivaylo Dimitrov <ivo.g.dimitrov.75@...il.com>,
Sebastian Reichel <sre@...ian.org>,
Pavel Machek <pavel@....cz>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] ARM: /proc/cpuinfo: Use DT machine name when possible
On Wed, Dec 03, 2014 at 06:33:08PM -0600, Rob Herring wrote:
> On Mon, Nov 24, 2014 at 4:19 PM, Pali Rohár <pali.rohar@...il.com> wrote:
> > There is no "/serial-number" property in kernel:
> >
> > $ ls -l -a /sys/bus/soc/devices/soc0/
> > drwxr-xr-x 3 0 0 0 Jan 1 00:00 .
> > drwxr-xr-x 18 0 0 0 Jan 1 00:00 ..
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 family
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 machine
> > drwxr-xr-x 2 0 0 0 Jan 1 00:00 power
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 revision
> > lrwxrwxrwx 1 0 0 0 Jan 1 00:00
> > subsystem -> ../../bus/soc
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 type
> > -rw-r--r-- 1 0 0 4096 Jan 1 00:00 uevent
>
> Wrong place. If you put /serial-number in your DT, then it will be in
> /proc/device-tree/serial-number.
>
> If you want to wire that up to /proc/cpuinfo, I would be fine with that.
That would be fine for me too. Then it's just a matter of how to copy
the contents of the ATAG into the DT (I assume it's possible in a
similar way to the memory and command line information.) That's
something I know nothing about though.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists