From patchwork Wed Jul 19 19:28:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 122789 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2672959vqt; Wed, 19 Jul 2023 13:00:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXpMUBhX/i8EQ+n+eS+t960hfi6JufOvzpLsxA8LWivt6d1iefUsJBpDP+vp/8ff0RBE8Z X-Received: by 2002:a17:906:2252:b0:997:865a:77e3 with SMTP id 18-20020a170906225200b00997865a77e3mr3128607ejr.11.1689796839596; Wed, 19 Jul 2023 13:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689796839; cv=none; d=google.com; s=arc-20160816; b=SJMWp1DSlFriD28s0SdIS6FE3g0dprbXy3UEBKh93mAVcxyJsGcPEAFlvfN5YwVsvX /3cfBQULIp3xVO4jQ0/Nv8N4Rcf0eq2BIAJTzBvb0CsmNGR2hvXeQdnplKUeApVNWPIe FikoX+PnX6VJ07d2/gkUGSFT32xMbPWDm4SuNOs/nAY93Z5xuENll2KRC97QH7f7rD8/ 66WZudRGOv4pBcNX4Cvm7tsnW3wf9w3lQ0jbX+I549M3TKtHEXp74UXKznB3/NtzYEOj cmeyit0vx3/CYMZpgls4NVrF/8H48wHInl0wo+LM3rZD/EChwLy50DvNfjPaRpPt/4GQ t9Uw== 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=T6Q2sdsZK+zrsXYk1LmWcUd/SKHbnTi0pwnrXuTjkto=; fh=V7+8qiYvYpeHevC8rCpQ4tAB2CD4z1yy5P23BQEYP34=; b=J++4iOn9DdYOBh/+UVGTBYVdinXvUY31MDAl7sFhQN1JkIbq0BALSG5LY/TLVup/Em zHtjClCLFEkPSMq+XAYM6R2ZCMZV7UW2Dyl+hjv92dELeb30iECrKzIiKy8vc/+LDpDu JIeZ5Kp0jQV+O2j3LhdP0z43vWbh4S9LaKhbF5IBN9YZ+U2Ar9JftqyHORtctz7FmlKD q+u2ZTSA2XuQ+grFS5CJgc6Ek1cE/I/tY80iCJaGAWcLJveKfHzIsQ4g8nF+BwiiuxrL gVhHdBpUk5/mbrFg9kdI3+LagNnnnwSfVI50lybRjQVSDYe7R7DZ1oTvnXEVyqtoB7nJ lfFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QW/X/Z/v"; 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 o22-20020a1709062e9600b0097894b128f6si3181304eji.840.2023.07.19.13.00.15; Wed, 19 Jul 2023 13:00:39 -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="QW/X/Z/v"; 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 S229685AbjGST3C (ORCPT + 99 others); Wed, 19 Jul 2023 15:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjGST25 (ORCPT ); Wed, 19 Jul 2023 15:28:57 -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 566271FCE; Wed, 19 Jul 2023 12:28:41 -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 DB779617F1; Wed, 19 Jul 2023 19:28:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72726C433C7; Wed, 19 Jul 2023 19:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689794920; bh=zbxMRwTgeG6WFkUycHaElwJs5J+MEQiEIcUpoBceR5Q=; h=From:To:Cc:Subject:Date:From; b=QW/X/Z/vmVffdAOE0IfBG1FBho+tAilMUuPSyQtly70Dj0EQbZarA9R5+ogrzjPkq FrJCvDh1MDfT+FYemfL37XYY6eRSFSM/8N0xnS8sFvi4xshg+0A7bAa2rWeuGC3GNS 3jS9abVHxssmOTq2OfYL+7nDkEOefUBWvXBs8y0DWzeSGvPZ1zbIkZgN022pUjor9L QxXeLotFFE8TbBohn14NYyaM0IXCGGBBd28VYvKHLZ1bXe0yaJic9+k5o/9F6CbDkK UlVYCmT7BthFS8Yx1c8GdvX/mkqzYx4a38Dx61wKaxQoYmdw+F25f/IeJsgiwF+3OC XxCdzFvf3f0eg== From: Arnd Bergmann To: Alexandre Belloni Cc: Arnd Bergmann , Geert Uytterhoeven , "David S . Miller" , Alessandro Zummo , Niklas Schnelle , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] rtc: bq4802: add sparc dependency Date: Wed, 19 Jul 2023 21:28:18 +0200 Message-Id: <20230719192835.1025406-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: 1771880410950353064 X-GMAIL-MSGID: 1771880410950353064 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 Reviewed-by: Geert Uytterhoeven --- v2: split dependency into two lines, as suggested by Geert --- drivers/rtc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 05f4b2d66290d..19c3eac474f7c 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1196,6 +1196,7 @@ config RTC_DRV_MSM6242 config RTC_DRV_BQ4802 tristate "TI BQ4802" depends on HAS_IOMEM && HAS_IOPORT + depends on SPARC || COMPILE_TEST help If you say Y here you will get support for the TI BQ4802 RTC chip.