Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3184906imu; Fri, 23 Nov 2018 23:34:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/WZN7Wuof1X/uMfalgsaFzYD2Nop4Q3OSvxyZTnfBNlryQikrIpap45YH72C7pPWkFlsKmT X-Received: by 2002:a17:902:598e:: with SMTP id p14mr18831651pli.260.1543044895793; Fri, 23 Nov 2018 23:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543044895; cv=none; d=google.com; s=arc-20160816; b=Y8i2Bm+jtZ0xTJRbLmjwpeucTwJaYe8Tq0gIj3Z3oxhsUKnrx8YMLADC/PFwLykIyS 9jGb/BCZSBqGTIxq2sJ1frMqixNJCC/Z5A9XAr4kd60R40koNfjXGnGAcOqbgHZxajEG 2734OoLobZDWEQllQdDOmrrGeryBRcB7dwW016Q8/y9o/h8HFU/IhJnfcdlm7i6ZbxMl yBf6is8ceZJZ7YKufolrIMdbX0FBvBaq+OhA9A62VuPiro5vSerVBoptVVWgVEKy/2JX YmvpMs52uTwd02/RliG2TmGn7NrzMCCL+7uB4KIu7Tv7crUyg3UI3MMtMpZyKxNQRSdg WG/w== 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=40K9nl9INXNUOND2rY7QR/Ox5E9p8OWxbebY59t0Cxs=; b=XxB53kvVKbzN26vvCq9OshWvkJfyRydZyp4f9eYwxLDvSAdM1XW6gFRLu4XfTgfCZE zlowjSLn5idjRGuU7MAmMhKvNY/Hnh9wi4fXgKlPLcbBmJ9lh6Z9zfWTwi6sEsx6hEwF EAiKjBi6R/1ovwgGuDJyaSAHRBDxPoeww7LN3kDc+E/KGcw97W6/xCHJgQCAbjMYtGPh IEoByebTvqR22n3Iq2IfUHcJQSfZAcRtXXtb9oAIsTopBANTB6CzPKK8G26Ho50cQARe e78CzhzKv+d28Wdug4mh6Pwl9jF6CiNkHuIqvyyRvMe4VPVuWS6bFYSUH7/akqDo0BhJ yJNg== 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 g59si15834840plb.302.2018.11.23.23.34.41; Fri, 23 Nov 2018 23:34:55 -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 S2389709AbeKWGqf (ORCPT + 99 others); Fri, 23 Nov 2018 01:46:35 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:38301 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730668AbeKWGqf (ORCPT ); Fri, 23 Nov 2018 01:46:35 -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 1gPvEH-0003wh-KE; Thu, 22 Nov 2018 21:05:37 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gPvEG-0005HI-Pu; Thu, 22 Nov 2018 21:05:36 +0100 Date: Thu, 22 Nov 2018 21:05:36 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: =?iso-8859-1?Q?Cl=E9ment_P=E9ron?= Cc: Thierry Reding , 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 v2] pwm: kconfig: enable kona pwm to be built for cygnus arch Message-ID: <20181122200536.ndgrxuxealtovngy@pengutronix.de> References: <20181121123508.25119-1-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181121123508.25119-1-peron.clem@gmail.com> 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 Hello Cl?ment, On Wed, Nov 21, 2018 at 01:35:08PM +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 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > index 27e5dd47a01f..982f4059f4e8 100644 > --- a/drivers/pwm/Kconfig > +++ b/drivers/pwm/Kconfig > @@ -88,7 +88,9 @@ 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 || COMPILE_TEST > + depends on HAVE_CLK && HAS_IOMEM > + default ARCH_BCM_CYGNUS This looks good. As pointed out before the default is a bit strange and could include ARCH_BCM_MOBILE for symmetry. Anyhow: Acked-by: Uwe Kleine-K?nig Related to this driver I have a set of questions: If the disable callback completed, does the hardware still drive the pin? If yes, would it be possible to disable the pin driver such that the pin gets high-Z? If yes, how? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |