Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp11775imc; Wed, 21 Nov 2018 14:13:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/VkvTeUo4nzRb82ZV02XdWEuaNdGTvXM5WBnfAFR9A3wGDjaYSoD3nX/QStcdL+a6ZKfi4I X-Received: by 2002:a63:cc12:: with SMTP id x18mr7550574pgf.33.1542838400015; Wed, 21 Nov 2018 14:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542838399; cv=none; d=google.com; s=arc-20160816; b=cVm6bUCsnHL/DvMAU5hCwEzO7DNH7DCzN4EdjUdT5dEJ/uC9dLxnAkaUiVqD1n5k4C koqrXyQwhypxZPZnfDaotecC/KGxYwueSetsJ0BQOwYM38aQnoqOdGNpR0BNFhAukwsg g9Lqk4BToY+45/3ZuyI0wfOmYpRr2NxM9AYCYZ4wjCht4RI5nTad16JV/nYhHPt/qxtr ucZkiBzQWRpUV86SnnA5nNucatvTciGEsS5rCobNhn1n8yu48lWfzCJCYhRdx0bWo8m1 bDwyQX9TAaVkveoyYH0Y+UkiJ2xqUITzY3h2KhPwdPd28JAT0lRYCgkWvsuvLthZjO98 B7Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FXmZyDQrnB/R7IwvmEFezSUeuxMTKCF1MIbIMhJN7jA=; b=Kme8a/co5pCkxtSHxz3K9RDjikfFDQdXP45BOs33ibTRoZ191ZvV1KPexAkTl+sNGn VZLwvlnfQt+44AqZN63czJLrI8FJEtHA27J26LuAGh8w0F8y91XKhXDw3aqtuLCNVT8t GD1wxFVr/mGcu+IVF3Cs/LzVgyuETGr6jIGivVVkN6/7k7KKa7oufsoDZd/8G9NWuEF7 KBeckKu1kllchk3ec9zllUfS06xquQgAlJB1F+2iw7vzdY4omtxN/4eXRYhaOkWK0k4O QaVtGv5pEh6y+s9fNeoMetVZ50SX0u4Xp8NqJfxSgtoDlTx38Zn/2LjuNlAbM7TOYWN7 lcjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=az9Zainq; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si48739471pgj.20.2018.11.21.14.12.59; Wed, 21 Nov 2018 14:13:19 -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=@broadcom.com header.s=google header.b=az9Zainq; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387797AbeKVFmv (ORCPT + 99 others); Thu, 22 Nov 2018 00:42:51 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:34462 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387767AbeKVFmt (ORCPT ); Thu, 22 Nov 2018 00:42:49 -0500 Received: by mail-yb1-f196.google.com with SMTP id a67-v6so1093949ybg.1 for ; Wed, 21 Nov 2018 11:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=FXmZyDQrnB/R7IwvmEFezSUeuxMTKCF1MIbIMhJN7jA=; b=az9ZainqXrHwwihNYqz79e1us+ISRyKSt5879HJ+wYiPLp16zO/U81+dxKN8/cFTeq oquWMc/h6tKULr/zjAXoJSStwF2fqpX5IDnPe0pMXfIaSqAqnzLVeZ/66wU44oMcr2Kb rKGbCDdxuZaed8ZYKqQDmsxSV5BnnVPCpS+kc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=FXmZyDQrnB/R7IwvmEFezSUeuxMTKCF1MIbIMhJN7jA=; b=bShXtEyP0BKy4dTBjTzYRwG15SMHSgzTT3iW39b7GcBU4UniLgZfPef+UbGX8mrLie fbm6qIQPnLeqTcYitSm9p78+YzP1H2yOuN4Bfqd6yEyqHO4Jbgr4CKIFlKkeH52M7VhI LZGmWp0dcs9NEN2HXAaZwTmnzs6iF4d7O12c6r1W67XKu/NoGmhpizoaHF6h4HFgxjuw 7kkiMNEnXMdnAN8tL0Dr89Kyv0kDqKtJSbW1b4cJ66aOcglaXccEiddk3yIgpVK2YBvG zoeTMg5ysw1sxOD5H6+r08v+Qefitf/9uNLeYUPIYG+Lsoh/fvVT6tIiZ+bbSageI/gd a6Ww== X-Gm-Message-State: AA+aEWat/AjWP1TBDZjFOWCzP5+OkUedGW9RD34nUhhweLlxyZW9xoej 6dIuinJoK6daQaGVCLNaLndOK5MOrmBz5STO X-Received: by 2002:a25:13ca:: with SMTP id 193-v6mr7743888ybt.468.1542827236545; Wed, 21 Nov 2018 11:07:16 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id w70sm13151964yww.76.2018.11.21.11.07.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 11:07:15 -0800 (PST) Subject: Re: [PATCH v2] pwm: kconfig: enable kona pwm to be built for cygnus arch To: Florian Fainelli , =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Thierry Reding , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181121123508.25119-1-peron.clem@gmail.com> <29dc5815-e897-ca7d-0e26-668faa635938@broadcom.com> From: Scott Branden Message-ID: Date: Wed, 21 Nov 2018 11:07:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <29dc5815-e897-ca7d-0e26-668faa635938@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-21 11:00 a.m., Florian Fainelli wrote: > > On 11/21/2018 4:35 AM, 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 > Reviewed-by: Florian Fainelli Reviewed-by: Scott Branden > > The "default ARCH_BCM_CYGNUS" could arguably cover ARCH_BCM_MOBILE as > well, but this is not probably worth a respin just to address that. Yes, it's fine as is. > >> --- >> 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 >> help >> Generic PWM framework driver for Broadcom Kona PWM block. >> >>