Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1587844imd; Sun, 4 Nov 2018 05:54:18 -0800 (PST) X-Google-Smtp-Source: AJdET5eqQdwqZ62y7FUBAz3G5orTckd2nnICH7W/uhIGPu73uRWlhbvEZxV69V9/l/GtUdCGO3t+ X-Received: by 2002:a65:520a:: with SMTP id o10mr17542319pgp.276.1541339658053; Sun, 04 Nov 2018 05:54:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541339658; cv=none; d=google.com; s=arc-20160816; b=DqV9EXhVeQSkyiy/w5rNqA7NECFo3uxgShuAKD+aoQVIEnuWYF8bsDChTBrufB1izP 6iGQ6S3mpeMD9a0bAe7hhfcFY3Mzq4vTESsXw/SM0VaeHi2GQmQpSzX6grY75rkv31QE Yf2Iw89eDEfy+R/Kr99kzIiwMbIjR+l/LoeYgZ0rfOGpaxaaNQFtyRriTAkJqCC8UkAe u+WVmG4oWdPs7HIJqvpZDJPKPNTNC+6NdfMMxRVt0kyVfk2+/OexeXMEsbC0iimq38vV 9Maw1hka+ReRwzJ/WISU1Fqgskxpy9OpdY9XtsE4uVhU5bypdyqwe3lWsgnL2HJfiNJ1 +vLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jd+wIu8VGLgAy+2oub7g6oZbmhTE53sikpvilY2aI+g=; b=C/UfiKUpW1GxOyjAE8nOJ1DGknVj20LX1nVpB8lK03VisDn8KI4vln0KcR+tS4L3RB fatvPFJyrIJJ3JIi2IjcOna7rqPv1wkpQLL1P2hRw2HpykjOXUU0rXrSYFtVFDKGWvAf ou04HfdYzAsuZrlVspWsiPbWJOlkTbowCd65hPIrw/ivHbocWW+eXmNUHyBd7/le+Ied 7/60NB7PV7NuynwKd4bGT2dROBG9Kn99VNG/WDQEsN67sRx2Xtoa5qFfJSQfac0aXfuV d5GclDMXJu8QwwYrpg+sflcsePzfPOY/wAH2NF6vFZyoRFD20JDiG2wckNw9GU1EKZWn DWeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si20988657pll.30.2018.11.04.05.54.02; Sun, 04 Nov 2018 05:54:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729725AbeKDVmy (ORCPT + 99 others); Sun, 4 Nov 2018 16:42:54 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:40510 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729321AbeKDVmy (ORCPT ); Sun, 4 Nov 2018 16:42:54 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2152B8097D; Sun, 4 Nov 2018 13:27:59 +0100 (CET) Date: Sun, 4 Nov 2018 13:27:55 +0100 From: Pavel Machek To: Lubomir Rintel Cc: Mark Brown , Geert Uytterhoeven , Darren Hart , Andy Shevchenko , Greg Kroah-Hartman , James Cameron , Sebastian Reichel , Rob Herring , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 05/15] Platform: OLPC: Move OLPC config symbol out of x86 tree Message-ID: <20181104122755.GZ23864@amd> References: <20181010172300.317643-1-lkundrak@v3.sk> <20181010172300.317643-6-lkundrak@v3.sk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JVTyp1F/hrbhzAAs" Content-Disposition: inline In-Reply-To: <20181010172300.317643-6-lkundrak@v3.sk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --JVTyp1F/hrbhzAAs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2018-10-10 19:22:50, Lubomir Rintel wrote: > There are ARM OLPC machines that use mostly the same drivers, including > EC infrastructure, DCON and Battery. >=20 > While at that, fix Kconfig to allow building this as a module. >=20 > Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek > --- > arch/x86/Kconfig | 11 ----------- > drivers/input/mouse/Kconfig | 2 +- > drivers/platform/Kconfig | 2 ++ > drivers/platform/olpc/Kconfig | 11 +++++++++++ > drivers/staging/olpc_dcon/Kconfig | 2 +- > 5 files changed, 15 insertions(+), 13 deletions(-) > create mode 100644 drivers/platform/olpc/Kconfig >=20 > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 1a0be022f91d..be6af341a718 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -2729,17 +2729,6 @@ config SCx200HR_TIMER > processor goes idle (as is done by the scheduler). The > other workaround is idle=3Dpoll boot option. > =20 > -config OLPC > - bool "One Laptop Per Child support" > - depends on !X86_PAE > - select GPIOLIB > - select OF > - select OF_PROMTREE > - select IRQ_DOMAIN > - ---help--- > - Add support for detecting the unique features of the OLPC > - XO hardware. > - > config OLPC_XO1_PM > bool "OLPC XO-1 Power Management" > depends on OLPC && MFD_CS5535 && PM_SLEEP > diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig > index 566a1e3aa504..58034892a4df 100644 > --- a/drivers/input/mouse/Kconfig > +++ b/drivers/input/mouse/Kconfig > @@ -165,7 +165,7 @@ config MOUSE_PS2_TOUCHKIT > =20 > config MOUSE_PS2_OLPC > bool "OLPC PS/2 mouse protocol extension" > - depends on MOUSE_PS2 && OLPC > + depends on MOUSE_PS2 && X86 && OLPC > help > Say Y here if you have an OLPC XO-1 laptop (with built-in > PS/2 touchpad/tablet device). The manufacturer calls the > diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig > index d4c2e424a700..4313d73d3618 100644 > --- a/drivers/platform/Kconfig > +++ b/drivers/platform/Kconfig > @@ -10,3 +10,5 @@ source "drivers/platform/goldfish/Kconfig" > source "drivers/platform/chrome/Kconfig" > =20 > source "drivers/platform/mellanox/Kconfig" > + > +source "drivers/platform/olpc/Kconfig" > diff --git a/drivers/platform/olpc/Kconfig b/drivers/platform/olpc/Kconfig > new file mode 100644 > index 000000000000..7b736c9e67ac > --- /dev/null > +++ b/drivers/platform/olpc/Kconfig > @@ -0,0 +1,11 @@ > +config OLPC > + tristate "One Laptop Per Child support" > + depends on X86 || ARM || COMPILE_TEST > + depends on !X86_PAE > + select GPIOLIB > + select OF > + select OF_PROMTREE if X86 > + select IRQ_DOMAIN > + help > + Add support for detecting the unique features of the OLPC > + XO hardware. > diff --git a/drivers/staging/olpc_dcon/Kconfig b/drivers/staging/olpc_dco= n/Kconfig > index c91a56f77bcb..07f9f1de8667 100644 > --- a/drivers/staging/olpc_dcon/Kconfig > +++ b/drivers/staging/olpc_dcon/Kconfig > @@ -1,6 +1,6 @@ > config FB_OLPC_DCON > tristate "One Laptop Per Child Display CONtroller support" > - depends on OLPC && FB > + depends on X86 && OLPC && FB > depends on I2C > depends on (GPIO_CS5535 || GPIO_CS5535=3Dn) > select BACKLIGHT_CLASS_DEVICE --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --JVTyp1F/hrbhzAAs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlve5csACgkQMOfwapXb+vJRKwCfX9fEgqilj34gdB9Kq9Vbbkzy rqIAoILr8U/OsUl2T5Bo/Jc1NUT3T/TA =9ufd -----END PGP SIGNATURE----- --JVTyp1F/hrbhzAAs--