Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22344039ybl; Tue, 7 Jan 2020 00:26:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwWqdEWdbMg9qGfXhKz9iCGNAOGy83WARdX7ANrVCU06Mt+IVGgKxSMQ4r6a/LAV1MabFXZ X-Received: by 2002:a9d:6f85:: with SMTP id h5mr121109876otq.19.1578385603258; Tue, 07 Jan 2020 00:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578385603; cv=none; d=google.com; s=arc-20160816; b=vSjwigSSSzZ6Yh7lvvybpY95v0uZlp7SjwQBda74AL6tHPk+xvskVpjTF8EvJDa6WL txNYYd/+ty8CJflVSnK9u+jma8MlTYSiqVSvu+DUfUNPEzcuKRYqdcpt50wsQr7RLIbu l9BYvynCbGDFzkDecDqXYdbMY/oBH6DNXylBPUqXulIua/Utkkr8xJJZBsrrSyHTcvFr zJzYYOXHbhYKyljkPj8JvdRNlpcyoOErdQzM45zcD4L5ouNj7W3WhfdG9/3eQvMUTR4w gcHWRTVcymdW0r7xbC/qHICHL9zJ85P0TYY94yvNxtYGNheIz24ficnwpfdfKJ1JBfXn QVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=H+7+z6KN4ugpv+lO4JIQVkpcnfYmPNtCHi6QpQXqFBE=; b=YcMGIkpWIgMvw4sw0G8PxABfW15EGF10/AQiRyHqw5ZeoLUpVchzr4Dg7s4NYSIQS7 juZ7BNpuLcnwfYSrjUZ3KVbGsIuNnGfcq0tKSj/3BGooJWmzgGcjP/b8jmNsiXQ1fflM QdDH9pm8OyjPNV2zvk6fofDDvDD7oaRrRTVBP9S4x8r7fAulpSdEKDJE+nPjuWGEXqHj iiO3R/x+oq/1BGCyrDSJ8s1ipKYmlNit8xJ8BmFQ6Nh6KVaRNFmBcWWay1HKMF2Rc53D eldNA4Z9gjruZIozQOYKCrao/OyFkdsPksbemeJVsXbaOEQbNMwYTBHS7d/YKAtJ+B37 zs9Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si30784185otp.3.2020.01.07.00.26.29; Tue, 07 Jan 2020 00:26:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727211AbgAGIZp convert rfc822-to-8bit (ORCPT + 99 others); Tue, 7 Jan 2020 03:25:45 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:45904 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbgAGIZo (ORCPT ); Tue, 7 Jan 2020 03:25:44 -0500 Received: by mail-ed1-f65.google.com with SMTP id v28so49605459edw.12; Tue, 07 Jan 2020 00:25:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=vT2NN+xI4BcelZZCoGioMbTizcdEYSLI6ni70MbnF8c=; b=ZIzmmVIlTS9WEt4rJoZ85Xf5fPjZdF87B7kV/hX4D5K94C2l1i8pRYdmDQzKgH7hGW m38GA6s9JAoGladP/P9jdGwMONnnyq7+yU4xXepGDlhEYpGeN7iF2/3W2NPx0H8zvbJU KYrAsYwZX39weuXU1ce+5S/+sW+pbf01jXgQZxu6TL6EbjdZ1GL9HHR2A/U+nZRx8q3R mdK0ZXg2Tf98/4t++O3/H//zIxfjvmY+dcQHO33IqX4zBlAL0L9efj9NEiCfn0Npn1Z+ x8UiciWKC6g1JVNVMK1Dn6gHh2YyHNJbo71IJx8yvzmDbHPv9uvoYymcG80oEVj4gEK0 ZDXA== X-Gm-Message-State: APjAAAWlf4w5AE74+Q6KniXGe27MJ2zFo//05Wf5Hju5EBkOxFqLjMyR xpNyUkNwdqCSWQWYc3WlnlE= X-Received: by 2002:a05:6402:221c:: with SMTP id cq28mr63552685edb.110.1578385542439; Tue, 07 Jan 2020 00:25:42 -0800 (PST) Received: from pi3 ([194.230.155.149]) by smtp.googlemail.com with ESMTPSA id ba29sm7398179edb.47.2020.01.07.00.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 00:25:41 -0800 (PST) Date: Tue, 7 Jan 2020 09:25:39 +0100 From: Krzysztof Kozlowski To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org Subject: Re: [PATCH 2/2] pwm: Enable compile testing for some of drivers Message-ID: <20200107082539.GA31827@pi3> References: <20191230172113.17222-1-krzk@kernel.org> <20191230172113.17222-2-krzk@kernel.org> <20200107072645.ko247bwhh3ibdu73@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20200107072645.ko247bwhh3ibdu73@pengutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 08:26:45AM +0100, Uwe Kleine-König wrote: > Hello Krzysztof, > > On Mon, Dec 30, 2019 at 06:21:13PM +0100, Krzysztof Kozlowski wrote: > > Some of the PWM drivers can be compile tested to increase build > > coverage. > > > > The Meson PWM driver requires COMMON_CLK dependency. > > I'm surprised that there are not more that need this. Is HAVE_CLK not > enough? Nope. E.g. for alpha architecture, HAVE_CLK is not set and without COMMON_CLK: drivers/pwm/pwm-meson.o: In function `meson_pwm_init_channels': (.text+0x244): undefined reference to `devm_clk_register' I guess other solution would be to add stubs for few clk functions... > Also HAS_IOMEM is a typical requirement, but I tested with an ARCH=um > config (which does't have HAS_IOMEM) and they all compile fine. Because of !HAS_IOMEM, since some time ARCH=um does not support COMPILE_TEST. Therefore HAS_IOMEM dependency is not needed for compile testing (and for regular build it is selected by ARCH). > > > @@ -318,7 +319,7 @@ config PWM_MEDIATEK > > > > config PWM_MXS > > tristate "Freescale MXS PWM support" > > - depends on ARCH_MXS && OF > > + depends on (ARCH_MXS && OF) || COMPILE_TEST > > select STMP_DEVICE > > help > > Generic PWM framework driver for Freescale MXS. > > @@ -328,7 +329,8 @@ config PWM_MXS > > > > config PWM_OMAP_DMTIMER > > tristate "OMAP Dual-Mode Timer PWM support" > > - depends on OF && ARCH_OMAP && OMAP_DM_TIMER > > + depends on (ARCH_OMAP && OMAP_DM_TIMER) || COMPILE_TEST > > + depends on OF > > I'm surprised that OF isn't required for PWM_MXS but is is for > PWM_OMAP_DMTIMER. pwm-mxs compiles without CONFIG_OF, didn't test > pwm-omap-dmtimer. Since some time !OF has all necessary stubs so OF is actually needed only for binding, not compiling. Best regards, Krzysztof