Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8216039rwp; Wed, 19 Jul 2023 06:57:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlEt+TlWX8oN7zGtxwTBcI1H1TEWN5luXUGPBdfKcZBMJtM+3g9+5ndfl+Mrm4XgIaU6vFqI X-Received: by 2002:a05:6a20:1385:b0:126:f64b:6689 with SMTP id hn5-20020a056a20138500b00126f64b6689mr1792053pzc.12.1689775040562; Wed, 19 Jul 2023 06:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689775040; cv=none; d=google.com; s=arc-20160816; b=c7zuLdf48+wzdlKxhQYEHi7zX2C/U3jFhANXqanVoETRaJN5Y9wBJGU5fK08bjZcOC yCw5hqWmvSegbVmaJTn2zi+soDByoHp6Dw3BBAQ+FwgDH2dwp1vf2RjzNlFCDaSq9CW8 J9jEoxFtSP39+IS6SZaf+nS7xt94lV3rzI4LeRkArPGaLkfhQTccKkBNwN3Wl26NJ6K2 HPXmthJnZGj9kkTk7ube0/raCGJftWIEN8JzFWeopyPNUUYcCbLM8ZJOHGSV9gZPkIXo aUwXzFHOdzwLatTJ5+t0AS8ioxW9nj0WAqrNzglh5PhCwiAV6aHRr1PiKX0IMVKpTmi/ FFZw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170903125100b001b89bab468esi3687735plh.107.2023.07.19.06.57.07; Wed, 19 Jul 2023 06:57:20 -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 S230498AbjGSNlK (ORCPT + 99 others); Wed, 19 Jul 2023 09:41:10 -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 Content-Transfer-Encoding: 8bit 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 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. -- 2.39.2