Re: RFC: Platform data for onboard USB assets
From: Jaswinder Singh
Date: Tue Mar 22 2011 - 14:59:14 EST
On 23 March 2011 00:07, Andy Green <andy@xxxxxxxxxxx> wrote:
> On 03/22/2011 06:19 PM, Somebody in the thread at some point said:
>> If yes, isn't that possible by specifying a _Panda_ specific udev rule
>> to find and rename a network interface based only on its type and
>> devpath without needing its MAC address? Greg ?
>> The udev rule could be a part of some hwpack.
> We are in a privileged position to suggest to stick all kinds in our distro
> support that's specific to the target, and maintain it. However just doing
> that relies on the current situation that people are cooking rootfs-es that
> only work on one target. With the move to multi-target single kernel
> images, and the corresponding multi-target bootloader support along the same
> lines that's coming, it'll eventually be possible to provide single SD
> images that run on many targets with common rootfs. Adding more static
> hacks into hwpacks on the assumption it is "a panda rootfs" goes in the
> wrong direction for that.
Yes I know it's not a very elegant solution.
But we must remember, we are catering to users that lose sleep over
not having to call 'fixed RJ-45 port over USB' as eth0 :)
>>>> (b) IMHO, though stable enough, the most obvious method of 'devpath
>>>> is indeed not future-proof.
>>> What're you thinking it's not future-proof against?
>> Even if the rootfilesystem remains the same, the devpath association will
>> fail if, say, Linux USB core decides to number usb busses in reverse order
>> a part of some code restructuring.
>> After all the USB spec doesn't say about the bus/port ordering.
> No that won't hurt anything since, as I said, the static paths are in the
> same tree, and can be updated to the new -- equally deterministic -- name at
> the same time as people start numbering their buses backwards. For example,
> the Panda SDIO module WLAN function is at path "mmc1:0001:2", if a patchset
> comes and decides to call these guys sdio0 on that bus instead it just has
> to grep the board definition files for mmc.\: and fix those up to the
> appropriate sdioN convention at the same time and everything is cool.
I was not just talking about mmc -> sdio change. Rather the bus/port numbering.
Say, mmc1:0001:2 becomes mmc7:0201:1 by some new addressing scheme.
I agree the fix is as easy as it is to break old devpath assumption in
And yes, bus numbering also depends on things like modprobe order, which may not
be fixed for all platforms. Any change there too can break the devpath
Let's see what other veterans suggest.
Best of luck.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/