Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752789AbbBYJVD (ORCPT ); Wed, 25 Feb 2015 04:21:03 -0500 Received: from cantor2.suse.de ([195.135.220.15]:46008 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbbBYJUz (ORCPT ); Wed, 25 Feb 2015 04:20:55 -0500 Date: Wed, 25 Feb 2015 20:20:42 +1100 From: NeilBrown To: Tomi Valkeinen Cc: "Dr. H. Nikolaus Schaller" , , , , GTA04 owners Subject: Re: [PATCH] OMAPDSS: restore "name" sysfs entry. Message-ID: <20150225202042.2adaea4f@notabene.brown> In-Reply-To: <54ED8CB6.4010308@ti.com> References: <20150224203706.1eafa129@notabene.brown> <54EC5520.1020105@ti.com> <20150225073131.7fbff605@notabene.brown> <54ED8CB6.4010308@ti.com> X-Mailer: Claws Mail 3.10.1-162-g4d0ed6 (GTK+ 2.24.25; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/ipXhFXV1Qy+X0h6Ee6zY_56"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 15793 Lines: 475 --Sig_/ipXhFXV1Qy+X0h6Ee6zY_56 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 25 Feb 2015 10:49:58 +0200 Tomi Valkeinen wrote: > Hi, >=20 > On 24/02/15 22:31, NeilBrown wrote: > > On Tue, 24 Feb 2015 12:40:32 +0200 Tomi Valkeinen > > wrote: > >=20 > >> 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. >=20 > How about this patch instead. It separates the underlying device's sysfs = directory=20 > from the "displayX" directory, and allows us to have name & display_name.= So it > should work for any device type. >=20 >=20 > 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 >=20 > 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. >=20 > 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. >=20 > We can thus add the 'name' sysfs file back. >=20 > 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(-) >=20 > diff --git a/drivers/video/fbdev/omap2/dss/display-sysfs.c b/drivers/vide= o/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