From patchwork Fri Dec 23 15:38:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 36292 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp383606wrn; Fri, 23 Dec 2022 07:39:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+FPGup5rY0anjSAU3pBIYtYMSVRYDSnlUZdwyYJFRNJirc2NvRZuDDNOH04SM8V0C8RtC X-Received: by 2002:a17:906:85d9:b0:842:1627:77b4 with SMTP id i25-20020a17090685d900b00842162777b4mr6943280ejy.3.1671809955735; Fri, 23 Dec 2022 07:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671809955; cv=none; d=google.com; s=arc-20160816; b=ZYV/2Vrx4sF6G7JNC4S37YQyCctTyCWzVDysIWG9lad5ATIh5z7KMPiI+2gjCMbErH LMriPo6E/Juzn/lamVDz17P+n9CGErI7b8scJjc+TktyEM0J6FYQMU1cLWAfFDw+HbYD 5i2HSmmo1Qskvxokp63sC/tKR3vNYtgvfCrx7YZaGis4zVha1sztND8cg9tb7tJkPejM IT8hKIBiLukrE4akJD+GuLzzCd/EbZIhxvqf2NuwS9cjh7pUeGuQiTt1rSu3jPV+iQ8n DtG+PAVaVpofo4CWRJebvjI2p6SPJRyKxB8+DiXGGEUOvOQmAyEpclQ5FRZz5ZgOP83o BPOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LaKMC7NJJS8Y0MMlr5K0QsyzZJpC85cOVEafIt4Qty0=; b=IBVl4q6URVIBR6bU/TRB8Nb1hZDI5izOHviwo79/sLfExJOdDJppVbHBhICC7MKsmt UTuy1ebbo0nSIU27RNVktpo9rs9BPtp2EEX4WPPe/cbYDa7ZPtrgs/dHHn0DuDiCiBTF LGCC2/74aJ+WjRP0BZ0agMDFj1SE5aQ0HQpH50k/OgteoGrrhQDaFnpIgSFYooB9nLNn Scy8HekJtF9s4qpM7IOLrXSfQagt/KITZAzweFUqAEGtev/OByjarQntlKHfphIUgDFu yFfv/oXF6garscOulM2/sqOofkpcWZ/Oh7r5Wcw4uX5S6A2c6qd9HsitbyAeBOeNinf3 RiMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=V1l553I7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt15-20020a170907728f00b007c0bf7f6845si2897315ejc.619.2022.12.23.07.38.51; Fri, 23 Dec 2022 07:39:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=V1l553I7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236509AbiLWPif (ORCPT + 99 others); Fri, 23 Dec 2022 10:38:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236303AbiLWPi1 (ORCPT ); Fri, 23 Dec 2022 10:38:27 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5EB1379C7 for ; Fri, 23 Dec 2022 07:38:26 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id o5so4917075wrm.1 for ; Fri, 23 Dec 2022 07:38:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LaKMC7NJJS8Y0MMlr5K0QsyzZJpC85cOVEafIt4Qty0=; b=V1l553I7oXg2C4qHnYmFpqG503sjIbNgnxto6sYHsaO6xODmi2RhQG3hUeJIQMhxil ienlHVx59OcUQoZAFPhXm0SvnJzf4HPu05gMUSEw18ld1kIqzuyQUxq+xZZWx7xlC+rz yNhsjYUMEzQHfyAHBaYRj1ReZWj+ldX8KfK0aJwMXEQ7UVT77SNAI6YkyfbsznrceyuY u55Q0IsrCnclU7f+E+N6Hfrwz9eLkG6yn0sviThtmL7YuPys4HJmiNTRpW31SopmUxSZ 0JBZrrxWaEfiq8QFob3Ba27uPL+xK4p13H3SoiBwORvRyC2RAwqRBq1+7o6QBy+6U4HF 1NAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LaKMC7NJJS8Y0MMlr5K0QsyzZJpC85cOVEafIt4Qty0=; b=wGE+ijsTbs8RdnK4ygwx7D0ncgJ692eEM4EPxHlhBU2yJBIzYE4ELMeB5Ub3Jv88bU IGDhh+p5uAKmiUXn2uE/J5k4h0Km9ndk4yxySpR70CEapWv4tVxZMQ36A6H5gw2PBBcr ZaO8a5QsqiY7yAHAgMkzDL8o8Iz7s+CoLKWhVjyng0S4F/IpCSOKZCZHwsWPdZqMo7v+ c1vMzD08QpMSQAOQmMDi32pC9rOqdW/IIAgnWfY4gvwmtqw8x59XAjI4TpzR13SOP8ji 0rZaHuwInYfmuYDIHg3tOup8m0DHza8Odjp/dnP9jRexiJSdprTQendZiwWKPiwIM6x2 u/Yg== X-Gm-Message-State: AFqh2krFP5+0Nv2VM/HA8iPyaPef6sVayM5q8JlJ5JH0UkB9t6apGBcF 1JiLpa8QYXNKIZhdT/LFFnQ36w== X-Received: by 2002:a5d:46c3:0:b0:242:404c:2039 with SMTP id g3-20020a5d46c3000000b00242404c2039mr6729654wrs.34.1671809905358; Fri, 23 Dec 2022 07:38:25 -0800 (PST) Received: from rainbowdash.. (cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net. [86.15.83.122]) by smtp.gmail.com with ESMTPSA id m5-20020adfc585000000b00236488f62d6sm3491610wrg.79.2022.12.23.07.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 07:38:25 -0800 (PST) From: Ben Dooks To: linux-pwm@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , u.kleine-koenig@pengutronix.de, Thierry Reding , Krzysztof Kozlowski , Greentime Hu , jarkko.nikula@linux.intel.com, William Salmon , Jude Onyenegecha , Ben Dooks Subject: [PATCH v7 02/10] pwm: dwc: allow driver to be built with COMPILE_TEST Date: Fri, 23 Dec 2022 15:38:12 +0000 Message-Id: <20221223153820.404565-3-ben.dooks@sifive.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221223153820.404565-1-ben.dooks@sifive.com> References: <20221223153820.404565-1-ben.dooks@sifive.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753019795733324012?= X-GMAIL-MSGID: =?utf-8?q?1753019795733324012?= Allow dwc driver to be built with COMPILE_TEST should allow better coverage when build testing. Signed-off-by: Ben Dooks Acked-by: Uwe Kleine-König --- v4: - moved to earlier in the series v3: - add HAS_IOMEM depdency for compile testing --- drivers/pwm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 60d13a949bc5..3f3c53af4a56 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -176,7 +176,8 @@ config PWM_CROS_EC config PWM_DWC tristate "DesignWare PWM Controller" - depends on PCI + depends on PCI || COMPILE_TEST + depends on HAS_IOMEM help PWM driver for Synopsys DWC PWM Controller attached to a PCI bus.