On Wed, 25 Feb 2015 10:49:58 +0200 Tomi Valkeinen wrote: > Hi, > > On 24/02/15 22:31, NeilBrown wrote: > > On Tue, 24 Feb 2015 12:40:32 +0200 Tomi Valkeinen > > wrote: > > > >> Hi, > >> > >> On 24/02/15 11:37, NeilBrown wrote: > >>> > >>> > >>> commit 303e4697e762dc92a40405f4e4b8aac02cd0d70b > >>> OMAPDSS: rename display-sysfs 'name' entry > >>> > >>> broke the xorg X server on my device as it couldn't find the display > >>> any more. It needs the 'name' file and now there isn't one. > >>> > >>> That commit claims that 'name' is not compatible with i2c or spi. > >>> i2c does register it own 'name' file, but spi does not, hence my > >>> problem - I have an spi display. > >>> > >>> So create a special case for i2c: add the name attribute for non-i2c > >>> devices. > > How about this patch instead. It separates the underlying device's sysfs directory > from the "displayX" directory, and allows us to have name & display_name. So it > should work for any device type. > > > From 8e411fa684d42fca35628b41837c6d72e87aaff0 Mon Sep 17 00:00:00 2001 > From: Tomi Valkeinen > Date: Wed, 25 Feb 2015 10:23:58 +0200 > Subject: [PATCH] OMAPDSS: fix regression with display sysfs files > > omapdss's sysfs directories for displays used to have 'name' file, > giving the name for the display. This file was later renamed to > 'display_name' to avoid conflicts with i2c sysfs 'name' file. Looks like > at least xserver-xorg-video-omap3 requires the 'name' file to be > present. > > To fix the regression, this patch creates new kobjects for each display, > allowing us to create sysfs directories for the displays. This way we > have the whole directory for omapdss, and there will be no sysfs file > clashes with the underlying display device's sysfs files. > > We can thus add the 'name' sysfs file back. > > Signed-off-by: Tomi Valkeinen > --- > drivers/video/fbdev/omap2/dss/display-sysfs.c | 179 ++++++++++++++------------ > include/video/omapdss.h | 1 + > 2 files changed, 96 insertions(+), 84 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/dss/display-sysfs.c b/drivers/video/fbdev/omap2/dss/display-sysfs.c > index 5a2095a98ed8..12186557a9d4 100644 > --- a/drivers/video/fbdev/omap2/dss/display-sysfs.c > +++ b/drivers/video/fbdev/omap2/dss/display-sysfs.c > @@ -28,44 +28,22 @@ > #include