From patchwork Wed Jul 19 13:40:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 122638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2460508vqt; Wed, 19 Jul 2023 07:03:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlH8jb94JQKt1MjPFySkXqoFEzQkPNshF4p12ADLuLIVoH7s0lSHKs8uIk3vrOKJnDf/YihT X-Received: by 2002:a2e:7d04:0:b0:2b6:d0fc:ee18 with SMTP id y4-20020a2e7d04000000b002b6d0fcee18mr1784785ljc.19.1689775390539; Wed, 19 Jul 2023 07:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689775390; cv=none; d=google.com; s=arc-20160816; b=oCBmCbPjcwEkZQtxs9VZEtnzzefBGHvhXBedroQB90b212ohYQAQcqZ1wOCw6m4adT yq1oQgfT3a5J4uv+JRkKPfkExSvrruFs4vw1plTZct0k1Kq+SkUaMQJEIpz7I9fba400 yAFTY9Tkr2f66GJZzjTTdbueUaAXF1DtO8Sr2FTBd32rGi08WMGBJvLDz+3n5Wekl/mv GTX2/cmqfBQEl5zR1k3zx77ae8cNXMLh2CpXV5EjiAkQ/liCDDg9Qt2pYOaNLlvI629h PnesIZ+l/OdVV6xtCWIYx6p1L2+5kGUXGB7MW7qLoeL+xCT3jTfJWeKIVTPluNFnq94t bsFg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pm2qWu2D4nwebVhf9ClMbbpvs6rWeT8GHta2zinxz5A=; fh=SHM+CBZ+dA3PK7qUzuRSmZl5QIa+GjLqgNWUyy7HVVU=; b=miX5O5YNvgGuFfTcyNOjsNxV6Xo4ZgPf+KFFR6+J76yosBrLeJA9u3UQB/KrEoUD+V d5HtAhMdiuI9NpuWYjIGQd7OxFJ2c6OLWNG6T67tmVDdr9IA25zXRP+0Awwc8rtmcxMg IPsN/HmnWbjEMkkFv164XUlaTlfFCtTO1FCo5TvvaDG0Pmhp8VPTE1oj4NYXZ5a7zcdP XWp/LPLsoUySSY7BHfI1XocL4eJIR4ke2LMdadodiXdIOU7IAEZgw3Fi2nEJfdFWb3CA 4ehcT9vfUk5qcx1agJspOqFD8reK1mASJTTlbMI+1CTejjB6B461Te7fwvxjQSCBssyb uX0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MfiEDZEB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k25-20020a17090666d900b0099363826e3fsi3197613ejp.177.2023.07.19.07.02.42; Wed, 19 Jul 2023 07:03:10 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=MfiEDZEB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbjGSNlL (ORCPT + 99 others); Wed, 19 Jul 2023 09:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjGSNlJ (ORCPT ); Wed, 19 Jul 2023 09:41:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CAC123; Wed, 19 Jul 2023 06:41:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 49534611F9; Wed, 19 Jul 2023 13:41:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE736C433C8; Wed, 19 Jul 2023 13:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689774065; bh=YpVuGS+XXj+XzM8fY0/kAiTwEqae+AhksShMdzrc8r4=; h=From:To:Cc:Subject:Date:From; b=MfiEDZEBK5hXflZjq/HIOOMaIpOQriAU8van/W1YiJsG1kscjFwtYkaGu+lT49yqe qhjeTm9ACyLED08v4alO1R0YAqXg3xoFznJIrEE1zlBa8g7lsuj71vhOmabf5h5PvC l2CrLNgKt0Juh3j4Kb1g8UTTTkce11VVjGdg6HUC2PNxAWPeYmaoQfn8ti5el0CsAL MAyf+GFoP88xOrFViWsk4LvhQFRHDU8fWEnegmoICo8AhjcwsErWeoVAwANdfxugx2 t47EZI6xto8Cf4Y4s3fFmvFZSUvL3hRAhJrS8X3pGjT5q/V8TNS9F1k8IViha25HXD qOZE7Tf+V/ATQ== From: Arnd Bergmann To: Alexandre Belloni Cc: Arnd Bergmann , Geert Uytterhoeven , "David S . Miller" , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: bq4802: add sparc dependency Date: Wed, 19 Jul 2023 15:40:35 +0200 Message-Id: <20230719134058.2138934-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1771857920036918500 X-GMAIL-MSGID: 1771857920036918500 From: Arnd Bergmann The added HAS_IOPORT dependency might not actually be necessary as Geert points out, but the driver is also only used on one architecture. Sparc is also a special case here since it converts port numbers into virtual addresses rather than having them mapped into a particular part of the __iomem address space, so the difference is actually not important here. Add a dependency on sparc, but allow compile-testing otherwise, to make this clearer without anyone having to spend much time modernizing the driver beyond that. Reported-by: Geert Uytterhoeven Cc: David S. Miller Link: https://lore.kernel.org/all/CAMuHMdWEx0F=fNei4Bz_JPkuvoaN-+zk08h0i8KnSi_VjO615g@mail.gmail.com/ Signed-off-by: Arnd Bergmann --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 05f4b2d66290d..99e674d34823b 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1195,7 +1195,7 @@ config RTC_DRV_MSM6242 config RTC_DRV_BQ4802 tristate "TI BQ4802" - depends on HAS_IOMEM && HAS_IOPORT + depends on SPARC || (HAS_IOMEM && HAS_IOPORT && COMPILE_TEST) help If you say Y here you will get support for the TI BQ4802 RTC chip.