Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8647172rwp; Wed, 19 Jul 2023 13:05:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHIaSoJ6DiuRlAfOf4RNW0NeSbJacE2LU9AGQmRPL9yW8UXXG3vWd/CN0xtuc9z1ITrtCQn X-Received: by 2002:a2e:7412:0:b0:2b6:ed80:15d1 with SMTP id p18-20020a2e7412000000b002b6ed8015d1mr623558ljc.24.1689797148218; Wed, 19 Jul 2023 13:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689797148; cv=none; d=google.com; s=arc-20160816; b=cD4bmehYnFN9vkV5YcLvEHqXoIvxdAHP+geVsqxECPpRxFvSaEmVS5j0tP1gPE8R8b mgU2ujIUE+j2gT+14ee6dF2zi1NyQ0tPeF/MbHTT8ZLqv/l6FYeVBbNPMxSJWRYae37D KfcOHmIYzuzNgtjlydyJ1s4MG9CFIyBmaofa35ntJK9vV4Hos30hZYruwki6nrLii4M1 g+rnxQ9J+rzq5NSdAaOVRyscHN4EtieHQRo4ErZ+YEIChdbfbjmYfaKNHmZbVunCTz7b kompxZ1xnqQ+zMp9rmE3SwmWhou1j6j8PF+HMOfR1P33OruTpBJOgZVp0q6ByGEAwL7u uFlw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pk11-20020a170906d7ab00b00992e0f6514asi3615914ejb.248.2023.07.19.13.05.22; Wed, 19 Jul 2023 13:05:48 -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 S231234AbjGST3B (ORCPT + 99 others); Wed, 19 Jul 2023 15:29:01 -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 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 --- 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. -- 2.39.2