Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp593190imu; Fri, 9 Nov 2018 02:56:07 -0800 (PST) X-Google-Smtp-Source: AJdET5fLJcATyybMn2Rou2bSpoGo6B2M848rq90ZQ56H4sEt/mW1+qfOCNIVtZqkCl3+7bCdU8b/ X-Received: by 2002:a17:902:b401:: with SMTP id x1-v6mr8536227plr.237.1541760967804; Fri, 09 Nov 2018 02:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541760967; cv=none; d=google.com; s=arc-20160816; b=gR7pktHFxzH5As1trmHAsuEh1bM1ID+7R22picancBxLWFB6avTtiOfRYu7nPn8FfH cvFp/3HsmcNahePjNcaKJtqGvq8cPR0Zu83s4Y9bJUutQc32t8wGIgBWJSgR+98I2j5q VYRVWABYZy8X/0TZPw0J01U9YRScFMksEooOf+y3Dn1UlF+A03Sq1WsiF2g9+kvkqztb WtBoFgqQXhT+LVGe4C13zHE6AiwUdjibaFiGT8aQVKXBgVz1ESaE6Q9+yGhBnPu51cti b47nD++DkNrZhxpa3nKmQK2pLzSga8NC49K8bWjzmC2JONMvYeaqq+rYPZM5fOgfXbrj GBMg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=i/pXRsG7uIiUkScciFJKyAz4/si2MZDfKyAAgApNM2U=; b=cgzF6oJb4rfdEQBRl8QZFA0cfNNg2J/Axjon66F4BkBDBwFilwL+rF4KNVgDoXs+DS fWaZlsjZK0i3OllnRLvzoyv7TUjKJKmOq6YOK9qEmDrTy1pIpFNLFPjl476nIg/GvlHb HwPQxh626uOCJ1TooAEdY6OFZObiVidWs+vkg+rrwMJgxjao3ZeL6K2kbirXZH9hchgc F/vd0J18LmoaAKvm8qGr3Hr7s5/uGiClEoLo4tn6Q2VTyug6xeIPeYlKCLdEKQtP24ng E1ZoIcMpfAxESdH6TsFaku/BpuKgrI8CcRQiOpGApuHx1haF1YsM84beqon1SI9tqK+G fTPA== 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 u64si6784464pgu.534.2018.11.09.02.55.52; Fri, 09 Nov 2018 02:56:07 -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 S1728249AbeKIUdT (ORCPT + 99 others); Fri, 9 Nov 2018 15:33:19 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:48609 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728235AbeKIUdT (ORCPT ); Fri, 9 Nov 2018 15:33:19 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gL4PY-00039s-LS; Fri, 09 Nov 2018 11:53:12 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gL4PY-0007zH-9o; Fri, 09 Nov 2018 11:53:12 +0100 Date: Fri, 9 Nov 2018 11:53:12 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: =?iso-8859-1?Q?Cl=E9ment_P=E9ron?= Cc: Thierry Reding , Scott Branden , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] pwm: kconfig: enable kona pwm to be built for cygnus arch Message-ID: <20181109105312.lzeue3toefszv6sh@pengutronix.de> References: <20181107093613.26734-1-peron.clem@gmail.com> <20181107161247.sesu2comhes2d4kx@pengutronix.de> <20181108122246.GB1340@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 09, 2018 at 10:58:41AM +0100, Cl?ment P?ron wrote: > Hi Thierry, > > On Thu, 8 Nov 2018 at 13:22, Thierry Reding wrote: > > > > On Thu, Nov 08, 2018 at 11:47:53AM +0100, Cl?ment P?ron wrote: > > > Hi Uwe, Scott, > > > > > > On Wed, 7 Nov 2018 at 17:48, Scott Branden wrote: > > > > > > > > > > > > On 2018-11-07 8:12 a.m., Uwe Kleine-K?nig wrote: > > > > > On Wed, Nov 07, 2018 at 10:36:12AM +0100, Cl?ment P?ron wrote: > > > > >> The Cygnus architecture use a Kona PWM. This is already present > > > > >> in the device tree but can't be built actually. Hence, allow the > > > > >> Kona PWM to be built for Cygnus arch. > > > > >> > > > > >> Signed-off-by: Cl?ment P?ron > > > > >> --- > > > > >> drivers/pwm/Kconfig | 3 ++- > > > > >> 1 file changed, 2 insertions(+), 1 deletion(-) > > > > >> > > > > >> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > > > > >> index 763ee50ea57d..76d56fc8b1b7 100644 > > > > >> --- a/drivers/pwm/Kconfig > > > > >> +++ b/drivers/pwm/Kconfig > > > > >> @@ -88,7 +88,8 @@ config PWM_BCM_IPROC > > > > >> > > > > >> config PWM_BCM_KONA > > > > >> tristate "Kona PWM support" > > > > >> - depends on ARCH_BCM_MOBILE > > > > >> + depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS > > > > >> + default ARCH_BCM_CYGNUS > > > > > Is it possible to build this driver also on other arches? Then you might > > > > > want to consider > > > > > > > > > > depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS || COMPILE_TEST > > > > good idea to add the COMPILE_TEST just to increase compile coverage > > > > > > Will Do. > > > > This is known to potentially break builds on things like UM where we > > have !HAS_IOMEM. Please make sure you thoroughly build-test before you > > switch on COMPILE_TEST. > > Thanks for the point, so something like this (but maybe it's too > protective no ?) : > > config PWM_BCM_KONA > tristate "Kona PWM support" > depends on ARCH_BCM_MOBILE || ARCH_BCM_CYGNUS || COMPILE_TEST > depends on COMMON_CLK && HAS_IOMEM && OF Instead of COMMON_CLK HAVE_CLK should be good enough. Just for compile testing the default implementations provided in include/linux/clk.h should even be good enough in the !HAVE_CLK case. Also OF might not be necessary, at least the driver compiles fine on amd64 without OF. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |