Skip to content

Drop legacy support for omap3517

Arnd Bergmann linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am 3668717.H6LOeCvYZ4@wuerfel

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Drop legacy support for omap3517
Quoted 16 lines · On Saturday 24 January 2015 23:14:58 Pali Roh?r wrote:
Quoted 15 lines · On Saturday 24 January 2015 23:08:00 Arnd Bergmann wrote:
Quoted 10 lines · On Saturday 24 January 2015 13:00:00 Pali Roh?r wrote:

Another regression for DT setup (which does not occur for board code):

omap_hsmmc driver does not export slot_name sysfs entry because it not supported by DT yet. Entry slot_name is used by userspace application to determinate if mmc block device is internal eMMC memory or external uSD card. So support for this property also in DT is needed.

Here is simple patch which fix this problem:

The sysfs file only exists for the two OMAP drivers, and the naming is used only by board-n8x0, board-rx51 and board-omap3logic.

Quoted 6 lines
Quoted 3 lines

It may be better to add a board-specific hack for these to keep the existing user space working but not spread the use of this file anywhere else.

Why? omap_hsmmc.c has already support for slot_name sysfs entry, just it is not filled from DT data (only from platform_data)...

It's a highly nonstandard interface, none of the other controllers support it, and even changing the the other omap machines to use the same strings might break existing user space that might rely on whatever gets printed in those properties today.

We should limit the use of those strings to the boards that are known to run software that requires them to avoid regressions. We could also define a standard way of finding out whether an mmc device is removable. We already have the MMC_CAP_NONREMOVABLE flag in the kernel and could have a read-only boolean attribute in sysfs for it.

Putting a "name" property into DT because some random user space requires a particular name to show up in sysfs however does not seem a legitimate hardware description.

Arnd