Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753341AbbBYIuL (ORCPT ); Wed, 25 Feb 2015 03:50:11 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:58822 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760AbbBYIuJ (ORCPT ); Wed, 25 Feb 2015 03:50:09 -0500 Message-ID: <54ED8CB6.4010308@ti.com> Date: Wed, 25 Feb 2015 10:49:58 +0200 From: Tomi Valkeinen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: NeilBrown , "Dr. H. Nikolaus Schaller" CC: , , , GTA04 owners Subject: Re: [PATCH] OMAPDSS: restore "name" sysfs entry. References: <20150224203706.1eafa129@notabene.brown> <54EC5520.1020105@ti.com> <20150225073131.7fbff605@notabene.brown> In-Reply-To: <20150225073131.7fbff605@notabene.brown> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2XSJr0s4mLbE1p7aXjBDCbMiGmnWcxjtD" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 13846 Lines: 440 --2XSJr0s4mLbE1p7aXjBDCbMiGmnWcxjtD Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, 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. 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. =46rom 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/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