Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27352984rwd; Tue, 4 Jul 2023 01:34:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7CkW8rSZxMKiEcvLjLpuBdyFvG7YSxS1qAwdUujy8at9QakwKDxDaGFHu9RJ2OrT4xC6s X-Received: by 2002:a0d:fc01:0:b0:561:d1b0:3f7e with SMTP id m1-20020a0dfc01000000b00561d1b03f7emr11677439ywf.44.1688459664215; Tue, 04 Jul 2023 01:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688459664; cv=none; d=google.com; s=arc-20160816; b=jF4aH7u9PgJcFlGGeTPb7O8HTk01ubZ7pUGiOUq1j9nUvgQvEUqUbjNmf9e+KiRiyO vGC4OI25TrC07FQ1TZ2mVCcS3jBoSFsAqXIMkCivMxZJlC9cK9xzYSc21ec4MORZSBm7 9wxi4WxQE2LEMR8Rmwb81vx1npFjvFQM8y7MuPrENr3dJ+Fiw2nOcPNQ7QI5BfpptoV0 P8G6+4E3SeTxvrwLpvovCnPQzOwYZgNNOJpRcGBjOE8nF7Lmujn57Ob7odhvQYZypB61 b2iePoN3JFoqzDUGawsKAQX3sllsojZBEDeLM2h0t/pCKov3Vn9YSDhzG9A9GUZ5FoGm nt6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=l4kLUiGzRYnRLLdAx1D0zeF3gadqjmU95jx/MtJCjlo=; fh=tLJkpjwQpAwUTvJqO9NSAKol9sNDjpaHN1OT2vldZeo=; b=fB5VPcOKyiaRm+ipI68g21RPde/0PLgcMciKGaC/sB89plRFOdI1OAqAT/X17FtZDC uGVUfFUdjE+yOccl8TNkKmssDdfFX0eR2bsUd4ky4x/fbwNvf3Ik/C9Iab9/JOF6Dqkp CKh/GrGOERYZG3OAeGveSmOEA3lF5d08vkVHoJ5asJk5T/eGxLdAFQjBcthsSjH35iqo qBdOt2OQ+5EWd3stben2f8QQATYyfJRtWSptGmyYv70NAR/IbtDO6RPpUecOgUsJskHL giNVG4Qkp0mvb1DrzqapmsPM1XSmzeHCQqAR3SGhv/STRKlZnrlkFVwzpPa4z5KkR94Z 8EWg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020a634b1e000000b0054392750edfsi19792813pga.744.2023.07.04.01.34.11; Tue, 04 Jul 2023 01:34:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231535AbjGDIHF convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Jul 2023 04:07:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbjGDIHA (ORCPT ); Tue, 4 Jul 2023 04:07:00 -0400 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F1A4E59; Tue, 4 Jul 2023 01:06:59 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-5728df0a7d9so66371597b3.1; Tue, 04 Jul 2023 01:06:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688458018; x=1691050018; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=69rbrhXB4oWUM7pAO59rDdo5f0XmrS1v1x4eD2FmWm4=; b=KCmmjc3CHaoaRBp/bGL9KQ2ITgrjyRHOqUmAcoeVWjbCH0Qahf5oFBq1K3HxIJcuDT qiKZU5DaV02g8e1676A4xmwpFQFjRp2/704Cxv2kHktLQ+BdJIjcD1vxQQ5kC6Wa219p ZZfbeWWQUPb9WG0ktLIkoH2v6c6cvWvTB+47S+XbURTIVUf0/nymij7BSWxq4poB0tFl EG/ww9b8VhWms7v1l1VN5CPczJpZjyNsQMjoGwPknWXf0MdcvXeK2FUS03HUQse5Hjz9 WqU8a+cKpspQqnD2AHi/cAF/b3/JE6xyVl2fDuMRJ82NKd2X3fwE1nj9sTxsoR7qU7I0 nZEQ== X-Gm-Message-State: ABy/qLYGmzsL+hwjX3xVJYdwprssYMFrDXmIggcD37VyJpvKtMmDC2yo DtlvhIE8FEbOy7n3TUcOl+GUJ4fIa0wozw== X-Received: by 2002:a0d:d545:0:b0:57a:fb9:73c2 with SMTP id x66-20020a0dd545000000b0057a0fb973c2mr3087077ywd.27.1688458018589; Tue, 04 Jul 2023 01:06:58 -0700 (PDT) Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com. [209.85.219.181]) by smtp.gmail.com with ESMTPSA id t201-20020a8183d2000000b005731dbd4928sm5456450ywf.69.2023.07.04.01.06.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 01:06:57 -0700 (PDT) Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-c5e67d75e0cso210032276.2; Tue, 04 Jul 2023 01:06:57 -0700 (PDT) X-Received: by 2002:a5b:d4c:0:b0:bd5:ddcd:bc9e with SMTP id f12-20020a5b0d4c000000b00bd5ddcdbc9emr11705615ybr.17.1688458017342; Tue, 04 Jul 2023 01:06:57 -0700 (PDT) MIME-Version: 1.0 References: <20230522105049.1467313-1-schnelle@linux.ibm.com> <20230522105049.1467313-31-schnelle@linux.ibm.com> In-Reply-To: <20230522105049.1467313-31-schnelle@linux.ibm.com> From: Geert Uytterhoeven Date: Tue, 4 Jul 2023 10:06:45 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 30/44] rtc: add HAS_IOPORT dependencies To: Niklas Schnelle Cc: Arnd Bergmann , Alessandro Zummo , Alexandre Belloni , Greg Kroah-Hartman , Bjorn Helgaas , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , linux-rtc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Niklas, On Mon, May 22, 2023 at 12:51 PM Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them. > > Co-developed-by: Arnd Bergmann > Signed-off-by: Arnd Bergmann > Signed-off-by: Niklas Schnelle Thanks for your patch, which is now commit 8bb12adb214b2d7c ("rtc: add HAS_IOPORT dependencies") upstream. > --- a/drivers/rtc/Kconfig > +++ b/drivers/rtc/Kconfig > @@ -1193,7 +1195,7 @@ config RTC_DRV_MSM6242 > > config RTC_DRV_BQ4802 > tristate "TI BQ4802" > - depends on HAS_IOMEM > + depends on HAS_IOMEM && HAS_IOPORT > help > If you say Y here you will get support for the TI > BQ4802 RTC chip. This driver can use either iomem or ioport. By adding a dependency on HAS_IOPORT, it can no longer be used on platforms that provide HAS_IOMEM only. Probably the driver should be refactored to make it use only the accessors that are available. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds