Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp549638imu; Fri, 9 Nov 2018 02:02:22 -0800 (PST) X-Google-Smtp-Source: AJdET5ehzzatFiMeTXY6HZiTbI445dwf9xTIWfJxJIBbf3uGFUO4W+kLzyzkBC7z3Hf3izw1pJXJ X-Received: by 2002:a17:902:61:: with SMTP id 88-v6mr8377891pla.189.1541757742642; Fri, 09 Nov 2018 02:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541757742; cv=none; d=google.com; s=arc-20160816; b=yjGWreHFnipmMMWjrA1DdI0b0495Kn0e2evW5AX2KdBGUQ1AtkNMZurgEOSN/R2KGK R7XdH0qm/CfoMBiwc/oobj2gRU7R0TwEwfb1tOTfURurfhevRiASonABJWjcP9iHDdAJ aoGWfOBvu2tw8bZ7iEQNHVDUbzCJvvYfTdrPmw2PkIdHxrmg83zpC7lFuY2g0kTKAZVK ye9Bs4p8nold+o8um1k3QM7p6W9zLlp+wTEFGxPUdRAwuPBQ0ejyKzPoq6uUP+cFQd/D nXCyvuNi2fAezDFaBxUvMBmttlx7iu7PhfBn+r/fgW9QXEqglNiZgs9fQurLtUeZ9UOZ GpWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eD/fA43NB2RWmxgi4NEd4Qq7I5TsTM1rqiC6H166UQ4=; b=urOhPbgAkGqbb0X/P2NGuWDXBmggGyssY03pD2xhBwo3YSxmDN8rT/2ngQ/AYc0ODS lmNSV/+YI8Lt0NT8AVv7xGBbPQKjUQps/9/33m4yaftXlFT2WbxKJjI89x6wf0pZc6sa FAAuNao/kza0fvKaaYTmpIMBMmIpulu/OtDWhbi7sMDQWm1D1oJW+28uKZM+j8KAukx+ iwZvwN8y7NswQflvJSW/fcOFh/r1VMY57B5rhZQypRITpU7ztzTz7MbhWFd5AHL3oPan 8hprRWvp3lYaRPIU/vDyl6qmXHOjSkSJPc6zUTw0q5IdKskOvDyZuVc+IOxNFaHO21Qd hbtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e6JF98jb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6-v6si7850870pfg.282.2018.11.09.02.01.58; Fri, 09 Nov 2018 02:02:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e6JF98jb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbeKITin (ORCPT + 99 others); Fri, 9 Nov 2018 14:38:43 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:38347 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbeKITin (ORCPT ); Fri, 9 Nov 2018 14:38:43 -0500 Received: by mail-yw1-f65.google.com with SMTP id i65-v6so1415670ywc.5; Fri, 09 Nov 2018 01:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eD/fA43NB2RWmxgi4NEd4Qq7I5TsTM1rqiC6H166UQ4=; b=e6JF98jbyAfDoKZt2THKHJR6S1srWjhK2zG/57IBJxX7j2teBgPHGJxperP655ZbjI KB0sXA7sYQ/YJPwjNygAFGN58vP9sr9XT7afYgwcvfoCSImSA+eDywdgXjvPdq5xMFjV eS+OcslmUgNYJkR6mmJe5HsnKWEaO7q1v+aO+pa1L+qOqZz7H0l8aXobV3xNoiMHN5+Q jIKVkg8VhToPeLdsIO3QLOHt7T+cdtWD3WH8ElfeoLE4HkQQQ6uRDh24+4GjiZLkzuuE meRC+knGL81KaUz7dcJXkUKRoP2b2fLNKx+0XKDFogWfg5+bF6xdO/pWh8FLkGi3xeyM H7lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eD/fA43NB2RWmxgi4NEd4Qq7I5TsTM1rqiC6H166UQ4=; b=QsQn8cQQFp9tCljfRfDnK03L9IEsW3IoHmTh+qBM16mKuGmrkCl5FyhbOjARAHPXDP 1nQxkybE+brIazbVVE+WNYyvrsMd9QL8B3plP+rp6CfksyAkEw7Oc0zU4v98mSqzlpDd NDJS/dMCPrP7oACKQOkKNcdGvu7ZJoR2x/OOCLlVSAFA+WFHU8g+iR8fxBS2bfpzvc+7 IeQ3ZW1lzki3Vat2mYbx7xdGhnZ9agyCmQp3/uTjNT6d/qg5fvodCINZQ+6wthUPwc29 l6oQA8faCwgUzGlwC9RyyzyeQs3qOsMfRxqyIhHWJMdwxoQjtyzLJRtLePc0MOQT8DM8 U1tA== X-Gm-Message-State: AGRZ1gIJYMGbdvq3m5pflQfhXyfN+H44Xp4LV9pxa9WpXXb4iKVwn2DS oGpkC9J/sHBwTKAM8Qk+O7HA0cPKavBp3r4xBnY= X-Received: by 2002:a81:7bc1:: with SMTP id w184-v6mr7612257ywc.345.1541757532351; Fri, 09 Nov 2018 01:58:52 -0800 (PST) MIME-Version: 1.0 References: <20181107093613.26734-1-peron.clem@gmail.com> <20181107161247.sesu2comhes2d4kx@pengutronix.de> <20181108122246.GB1340@ulmo> In-Reply-To: <20181108122246.GB1340@ulmo> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Fri, 9 Nov 2018 10:58:41 +0100 Message-ID: Subject: Re: [PATCH 1/2] pwm: kconfig: enable kona pwm to be built for cygnus arch To: Thierry Reding Cc: Scott Branden , u.kleine-koenig@pengutronix.de, Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thierry, On Thu, 8 Nov 2018 at 13:22, Thierry Reding wrot= e: > > On Thu, Nov 08, 2018 at 11:47:53AM +0100, Cl=C3=A9ment P=C3=A9ron 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=C3=B6nig wrote: > > > > On Wed, Nov 07, 2018 at 10:36:12AM +0100, Cl=C3=A9ment P=C3=A9ron w= rote: > > > >> 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=C3=A9ment P=C3=A9ron > > > >> --- > > > >> 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 default ARCH_BCM_CYGNUS Regards, Clement > > Thierry