Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8286109rwp; Wed, 19 Jul 2023 07:50:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlGn/rrJImrJgPd5/unzP5QDuXj5S78PCAwDc5me60l8RDTLGlhEFarRBzTycbcjyH7ebDpi X-Received: by 2002:a05:6a21:788d:b0:137:30db:bc35 with SMTP id bf13-20020a056a21788d00b0013730dbbc35mr3097456pzc.27.1689778237014; Wed, 19 Jul 2023 07:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689778236; cv=none; d=google.com; s=arc-20160816; b=dgWq6WE8OB/cZBvMgLFj0MUicthwCnXnKjMe2qbQ3xzYAKqtasJDz64kMfcDBg8w19 q1+Nh5JGWMgt6AHE137dU+s0oWKEsvILAnZVbvI5cPVyX3pWukb8Ww6H87Zgrqvs9e+k WSz1p3V1pacLh8JsUOohDFaMcDFxPM0dPN2Kn+07KZ2zsMa3dXVzbCxFMH6aTkUnIO0v rgppN92FNoiUNUnKLhYeKf4aJv4ymU9TVfQoUCXnOPdYDtH41PRdv7/6x/FgqKS4GvEt 44sZTeFPj0rtoP+R2pbBoN5SHlcMhgmND7tjDXzKoVkiVoUh19Z7k0hGy+AX4I4SLk36 9j7g== 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=+tA3PfelHJVqdnCnOrRhPdQaqxt4OOgcvcA72yjWBpY=; fh=q83w0TxxPWBt3A6cwrZPzM4PJtIkBoYDQ/hwL3CK3lA=; b=NFXi+yB172Y0eP96GxiGLs6CV6at36VBDC8a7QF/xxp2aJ7e6WNGHpU5oQ9l7dF7Zx YhwfDwiXO2IN8A+5zciIZqM0Gf9tAPLUWGdeBQiM4FQi3vIMs07xHVzLSGyQa8VphSvv dhKIVWCBAWJD/Fv4GBwHP0qz1t+H9B0fIv1Sa8yBNPNpIh6Dma7IiDM1dESG2XGFpWvT JKVZGYVyY0CElGJpsM75HyOyG6NMFP1OaJSLreFy2+8iirseR+hh+iCzmvaACEM9Bn0F gdx56MwGSD5VLEKoJjlBPonGIvBA2FZIEeidHNXORMWq72HwQJpmi0fPFTmKfi9CXkFE m6/w== 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 eb14-20020a056a004c8e00b00682850547a9si3454457pfb.201.2023.07.19.07.50.21; Wed, 19 Jul 2023 07:50:36 -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 S230445AbjGSOhd convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Jul 2023 10:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjGSOhE (ORCPT ); Wed, 19 Jul 2023 10:37:04 -0400 Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF4A310E5; Wed, 19 Jul 2023 07:37:02 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5704fce0f23so74157877b3.3; Wed, 19 Jul 2023 07:37:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689777422; x=1692369422; 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=766U5ZrZx7633jGu4x/jDYUFK9E93rbSDM5/tiBPbjE=; b=Um3d7hU1HvrfIMqyVRykNN7Til291WQ7Gh8KiZW+swFFxo2AFacKMxcdLIXAaHQ72L G6lLypiqpDImxkDWAfnAQ+UPdgBH/Aim1bz0JiiYdWzBeEE2Grgvo55+YTyAHrPSSM7D SdzGg0KLXWbOcbS7pj/ZRpgRjUO2vTt4MVHHFwecefzZ9xxFAI0hmbLjnCRHDZn+LGMe 3VV0KNItYajt1qZBr5GXilHq76BI2G4Q0brdZPKCCAleWllmNrM13Z/YuKDnUpKN/mxc Fw03Q53L0Th270b40VlgnBBPqCaNZomSWoPRspTzH28JnL11CC9Bwd8XdUXdfJ2zigPP 6g6A== X-Gm-Message-State: ABy/qLYMhtlD/NAI8cFX4CryEdT3B1QUaKNNnxv+gwH3oRYbA9bplc9m qbAyX5M4llw4mla/ny0l6TQHLQ7ryZDemg== X-Received: by 2002:a81:5294:0:b0:56d:1747:5bde with SMTP id g142-20020a815294000000b0056d17475bdemr2613531ywb.32.1689777421776; Wed, 19 Jul 2023 07:37:01 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id n5-20020a0dcb05000000b00579f1c5ebdasm1051532ywd.15.2023.07.19.07.37.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 07:37:01 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-cefa8fe4cc2so1449761276.1; Wed, 19 Jul 2023 07:37:00 -0700 (PDT) X-Received: by 2002:a5b:1c7:0:b0:c69:54aa:d441 with SMTP id f7-20020a5b01c7000000b00c6954aad441mr2403900ybp.34.1689777420399; Wed, 19 Jul 2023 07:37:00 -0700 (PDT) MIME-Version: 1.0 References: <20230719134058.2138934-1-arnd@kernel.org> In-Reply-To: <20230719134058.2138934-1-arnd@kernel.org> From: Geert Uytterhoeven Date: Wed, 19 Jul 2023 16:36:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] rtc: bq4802: add sparc dependency To: Arnd Bergmann Cc: Alexandre Belloni , Arnd Bergmann , "David S . Miller" , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@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_BLOCKED,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 Arnd, On Wed, Jul 19, 2023 at 3:41 PM Arnd Bergmann wrote: > 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 Thanks for your patch! > --- 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) I'd rather just add a line "depends on SPARC || COMPILE_TEST", which is easier to parse. > help > If you say Y here you will get support for the TI > BQ4802 RTC chip. 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