From patchwork Mon Jan 27 10:50:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13951227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E2AEC02188 for ; Mon, 27 Jan 2025 10:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Oi0CmcXzA2f5QngK4GV6PliYk7r4NTTgQb+vrav5BcM=; b=eCU8FcNSWGzbn+ us5WtMKpM9epn+JpdPOk6NsZ/M2Ms+gX0bMo6xp/0psmxKw7e3Uvzh5EFLVklMq2Iho9GYplnEaGc gm9OsF4d2cdb4zMLdUKi5639YxZMopkZqpN8tnTeK12s7y3bf2Vq63zsyDn57jNDP5i0PD6w0jKDL eIVtmfL44k4pLwKo2zlnrH9h6aGPLa4YYGVypz7Br33YCOKs+ukaMioYqEQIAO9N62pJRxLWx85v1 yMccaKhunTd6GI4//F7o++JYqu0iv+SputWfcaOSWJMcDsc79ST8QpZS757RsU8uj6nxXXq6SMR7z /uaLhxnzb9PA189I3D5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tcMhr-00000002ARF-1nkh; Mon, 27 Jan 2025 10:51:03 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tcMh5-00000002AQ3-1oTj for linux-riscv@lists.infradead.org; Mon, 27 Jan 2025 10:50:17 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-385ddcfc97bso3722117f8f.1 for ; Mon, 27 Jan 2025 02:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1737975013; x=1738579813; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fuVOZHrwuABxNs35BacCC496I5JiKTElWByt9dcR7l0=; b=HQWWHGNLmSbsikGhY7c7S7FFCrnfkkimrh0C7fm3svuIxhLaTs+s1rTKQhBZ6WeLny DVeNmUoGXcRpJcZuqJro/nZ6HbJcIqhKec7f7TxtcP+5h8rmG5lAdFA7bUf1rV7PqXNW /vm/KRqtWV0cVxNdHvrlpWdCzVO+sWd4UcWEr1GlDam4KqWhyfohWxzjo9zea447gldz lRWe4cvD2sT26rbm2hjVxqxo1ez2xHXp50ahxqgzG7nC7mFEFZNo9bUNQwB3Oinl0WXk xaOyIb6w3aFvi0rAIUv62T9xpxyw4ZnH7JtQWnXOYsrGD8X6Mlmp+oOuH1ynelqhg+7l laRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737975013; x=1738579813; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fuVOZHrwuABxNs35BacCC496I5JiKTElWByt9dcR7l0=; b=bVOFiaaHjcK64kjml/GL+zPACvWPCq6GCjzjWZqcBlPajsGPlQNf2sDPkZnQWwooex Uyo5ZuRNgL+6wa7msII4sMKGVHSHUfwGdKfzUhOk8InwSYbESsByxqzQ9UxE+s/9Tedp YTHGjj+kpVL2aSAJ9Qc5uAq/NTE+FVNpMPRwgtH5mga/GSUrCt3Nkclq3GrnVDwIxFxY ZSPSzgpg7trjxA2BJHK4u+7D6+QC6J1Hre4h/a0W2Yg2Xq1wilr2LXt2tdhWodYLMNRH kOmFihXdlh8FJusOy6JgfDi7Q39nxPkON5lLBNE3oZRH7zH3yHkfiZICT1Qi5RfUwzBU dggA== X-Forwarded-Encrypted: i=1; AJvYcCVDntssWjljVUlTbFbjjRDkpnbnNPfZriaeuVGi3WyaEKXV5oq/ynzrdJB/dTDxJI8wx2pFBBBUR4WuhA==@lists.infradead.org X-Gm-Message-State: AOJu0YyjjQWMKQUA/hregQlgLTfrNCVNC/UtbAQ/YO4Tcg0hAybe32gf 2qrSOAGZ880Lg/xXkEYTOXUxYrRuk7rLOdNKh1yJJptrstYg+x2jJps/76kZ8dI= X-Gm-Gg: ASbGncvYNyVs3peREqBhFtcMPTppTA+r25AtBsNUM03hAwmtPSgy1PTQ42KE14pU3jd YIYyZBQS++3WsL627Zk9WobNVlwDCuPHcAleoFGkWAHfggmyv3PPmUuqxFkurPETY3PH8RSKQ6K uvN8sG9f4rNXe6ETE1LFqhoumlQgtq/A9779GbcLUa+y3qMXlB12vdtstbwnSYZVPfqrM9SOi00 HrBB8A0QxGuYlVE678FJyqa0jjuuSTXjpMJPUWpb5MK8JaykWMjJ7wzUsAfPGV/tL+8YJAe3Rjo nLCTOgaW/g== X-Google-Smtp-Source: AGHT+IF8zXvRud3bxzKoETBM+MMw8ZUW8atexFFnZXnmo/DFoE45mb4c3Y2gv8eCVHkD9pzzKhfOaQ== X-Received: by 2002:a5d:64e4:0:b0:385:e35e:9da8 with SMTP id ffacd0b85a97d-38bf56635bemr38024984f8f.18.1737975013606; Mon, 27 Jan 2025 02:50:13 -0800 (PST) Received: from localhost ([2a02:8071:b783:6940:36f3:9aff:fec2:7e46]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a17640csm11104610f8f.18.2025.01.27.02.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 02:50:13 -0800 (PST) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Paul Walmsley , Samuel Holland , Emil Renner Berthing Cc: linux-pwm@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] pwm: Strengthen dependency for PWM_SIFIVE Date: Mon, 27 Jan 2025 11:50:01 +0100 Message-ID: <20250127105001.587610-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1190; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=91Ysoi0XSMFKk2q6OR5ur+zCw8xY07DINvs++TomGyI=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBnl2TaSzHKHgQt9mbyPx216MqJ/tGg/ldJNcXOf b71p9w9WQ+JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZ5dk2gAKCRCPgPtYfRL+ TqfJB/9GL+EBEuPmLlcmnUYzKCnqf8cQz+4aS7SYxfMOaIme+UedPpSJx7fguUIMM0VW2rDOq3n al1kAMVFDnMYUllGsC2CeJa2w/WfH2mF/6Kd6dcr0C4sNaN61m8Nn+jrftyPArId8mJOYXdIeGm keHKok25CDntHSM2jONUNlBpoEcxtyo1bJk1QNGU/qlA2iRvs6oRfSuB08HGgkCDB4KqA2YD8be +TqBukzlpYpRYyhqplSDVPHDuG46klk+BD/KGeHaf7uiW3Gr1AFWxGPbQ6rHijmZ9Af1aKYJJrR BKRsRSPYLWcDRc7/UvlqzAcCI+nBUclPhTxb1N46Hc4nrT+m X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250127_025015_738899_3B01912E X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Back when the sifive pwm driver was added there was no symbol for sifive SoCs yet. Today there is ARCH_SIFIVE however. Let PWM_SIFIVE depend on that to ensure the driver is only build for platforms where there is a chance that the hardware is available. Signed-off-by: Uwe Kleine-König --- Hello, a quick grep suggests that the driver is only used on machines that include arch/riscv/boot/dts/sifive/fu540-c000.dtsi or arch/riscv/boot/dts/sifive/fu740-c000.dtsi and for these ARCH_SIFIVE is enabled. So I'd guess this patch is fine. Still an ack from someone who knows this arch better would be very welcome. Best regards Uwe drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 0915c1e7df16..be0db73003e4 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -567,7 +567,7 @@ config PWM_SIFIVE tristate "SiFive PWM support" depends on OF depends on COMMON_CLK && HAS_IOMEM - depends on RISCV || COMPILE_TEST + depends on ARCH_SIFIVE || COMPILE_TEST help Generic PWM framework driver for SiFive SoCs.