Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1391519
| From | Doug Anderson <dianders@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree |
| Date | 2016-04-30 01:10 +0200 |
| Message-ID | <rtpHQ-65N-17@gated-at.bofh.it> (permalink) |
| References | (6 earlier) <rtoC6-4GO-27@gated-at.bofh.it> <rtoC7-4GO-35@gated-at.bofh.it> <rtoVs-5lW-13@gated-at.bofh.it> <rtp58-5rQ-9@gated-at.bofh.it> <rtpou-5CD-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On Fri, Apr 29, 2016 at 3:44 PM, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > My reply would be... why should MMC have special handling that no > other subsystem has? No other subsystem? * i2c allows numbering devices by alias * rtc allows numbering devices by alias. * serial allows numbering devices by alias. * spi allows numbering devices by alias. * watchdog allows numbering devices by alias. ...at least that's my impression doing a grep for of_alias_get_id(), which I suggested earlier in this thread but apparently wasn't done. > Here's another example. Plug in several USB serial adapters. Which > USB serial /dev/ttyUSB* device corresponds to which adapter? The > answer is... it depends on the order you plug them in, which could > well be different from the order in which they are found if the > machine reboots. That's a very real problem. USB is, by definition, hotplug and probable and there is no ordering. For peripherals built-in to a SoC there is a sane ordering. Thus hotplug peripherals and builtin peripherals shouldn't have the same requirements. Quite honestly, it _would_ be quite convenient that if you are on a SoC and you know it has builtin USB controllers to have the root hubs numbered in a sane and consistent manner. An area for a future patch, maybe. > However, the answer to this problem is not to find some way to bind > a particular /dev/ttyUSB* node to a particular USB device, but to > use the solution(s) already provided - iow, /dev/serial/by-id or > /dev/serial/by-path trees which give a stable view of these devices. > > Now, while that allows the appropriate /dev/ttyUSB* device to be > found, it doesn't solve the "which ttyUSB* entry in the kernel > message log corresponds with which adapter" (which is the basis > of your point #1.) That's not solved, and isn't purposely isn't > solved for any kernel subsystem. > > Another example - I have boards here with multiple RTCs... guess > what happens with those? Yep, same problem. They get dynamic > /dev/rtc* assignment. Are you quite certain about that? See above. > Another example - I have a board with three ethernet devices... > yep, same problem again, the order depends on the driver probe > order, and they get dynamically assigned eth* names. Ethernet is often provided by USB and thus hotplug and probable. Quite honestly if there was a builtin Ethernet adapter provided on a SoC (not connected over USB), it would be super handy if it was forced to be "eth0" (and if there were more than one if they could be ordered in a way that made sense for that SoC). Dynamic ordering could come after. > The list of subsystems that have this property is large, because > it's all dependent on the device/driver probing order. Sure. For hotplug, there is no sane device ordering. For things built in to an SoC, there is sane device ordering. Dynamic ordering should come after static. > So, please answer this question: why should _only_ MMC be treated > as a special case? Please give a _technical_ reason rather than a > _personal_ reason. Because technically it makes it easier for people to understand their system to have a sane ordering for builtin peripherals. -Doug
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
[PATCH v2 1/4] Documentation: mmc: Document mmc aliases Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
[PATCH v2 2/4] mmc: read mmc alias from device tree Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
[PATCH v2 4/4] ARM: dts: rockchip: Add mmc aliases for rk3288 platform Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Rob Herring <robh+dt@kernel.org> - 2016-04-29 20:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 21:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 22:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 22:10 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 20:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 21:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 22:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 22:10 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 23:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 23:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 00:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 00:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 00:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 00:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 00:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 01:10 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Peter Hurley <peter@hurleysoftware.com> - 2016-04-30 02:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Peter Hurley <peter@hurleysoftware.com> - 2016-04-30 02:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 04:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 10:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Rob Herring <robh+dt@kernel.org> - 2016-04-30 15:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Javier Martinez Canillas <javier@dowhile0.org> - 2016-04-30 00:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 12:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Trent Piepho <tpiepho@kymetacorp.com> - 2016-05-03 21:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 23:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 23:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Pavel Machek <pavel@ucw.cz> - 2016-05-04 09:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Rob Herring <robh+dt@kernel.org> - 2016-05-04 14:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Pavel Machek <pavel@ucw.cz> - 2016-05-04 14:50 +0200
csiph-web