Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp308134imn; Wed, 3 Aug 2022 04:51:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cDzFib8aZgheFOCL4BviHIgjn8POJba+HBi0SmGM3nYb8UN1J2eSXMeZZU1nezQXb6SCN X-Received: by 2002:a05:6402:3550:b0:43d:e475:7d2f with SMTP id f16-20020a056402355000b0043de4757d2fmr9029183edd.166.1659527476995; Wed, 03 Aug 2022 04:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659527476; cv=none; d=google.com; s=arc-20160816; b=ExRlJL67B8RJpyhrA01Jz4+Jm0cvlgisGAcStk2qbPQrn2McQCRSqTB8ItYYWd0/b1 k5M4stnK/87LBOC3jkC5J3vMYeyTgi+Stuba1FHWCfg+jxqjOyFZX7o3teJccoWFxEOV F3VA2IrkrpOWg58phTlahz/QuQkYpCxM3VUoYoJQrCwmC7I+/IOvh1SWUGmD3CQzHVgZ 7YZyGBKSOdgrOkLcTmoF/jetp6rw9rdV6hlAxb88EecHm05Fmw7VASnGYggPaKYDheQ6 WwtUlZAmclwF+6wvfTrwK93rzbhXKDlFjtwXMjjoTWFeQBsSt30NMMqTZGBv49o73tdf weVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KXL+wsO6+KWhNl500Va3imWuFwV+AbGMm2r8SqpxuDc=; b=crYZWZ8bkKvOLxI4BWh7s/nrCzwXDvkLykYeHZJ6M93Ai1BcwkF+x6JDtoNKczFAz1 z4QWq76SCfZXP10VcEfOmp26VgZTV84QdQJIiCdClzJu2N/sdW3tzAYiIbNpOFiWBosL C0ZFgV/FT5OfmhjB1vnk2mKhIMI/iFEXLBTVndPIHZzNMFyVEaXnsq3KTPdvzBwjQWU8 JrMoIt1YJte2HcEpv2dOkRELRfjfuldlOLZT6F94CsIjShsslvWzLUZ2aDQ65qGu6ZMb aK+P0artSGV1Ig2YX4Wo3JWVgrNOj3CbdZY3OvIcsy+In4IdWbgvE6iip6kRanqd4eTm wMwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FSAQ0xUM; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd17-20020a170907629100b007308bb40f8bsi7856558ejc.198.2022.08.03.04.50.50; Wed, 03 Aug 2022 04:51:16 -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=@gmail.com header.s=20210112 header.b=FSAQ0xUM; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237698AbiHCLd4 (ORCPT + 99 others); Wed, 3 Aug 2022 07:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237661AbiHCLdp (ORCPT ); Wed, 3 Aug 2022 07:33:45 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 214894AD44; Wed, 3 Aug 2022 04:33:44 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id m8so21027269edd.9; Wed, 03 Aug 2022 04:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=KXL+wsO6+KWhNl500Va3imWuFwV+AbGMm2r8SqpxuDc=; b=FSAQ0xUMfOMb5wt248xYlSSHNp59Ll5IufE2s/qJkJCE7nuoXK3tNOteQWcrWWCQQc uHLr+8SonE+aDCEXjPmi3aHU/f16fGnoi6uEllREUBSqHft2uBOBs+eiFyF9wiELhTLD KxxzJZueSTUeDVqBZW/iK/L8ayG9+YDPbWCNtnH2TOjT/GR3JZn6va6rTMeBU0I7RAXV 31Rbz7nSddoBscjd6befms3jmOEd4p1TNS6psbXBYZNhM34eWdhWbosnZykqXBmvebqg W0jUXPt1ipA08dSqHg9Zt4pLlugEv1iJ9CPSiNB80PxZosj8xbKcYaVT9q+5axt0vjZP jIjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=KXL+wsO6+KWhNl500Va3imWuFwV+AbGMm2r8SqpxuDc=; b=epr/R/9ViJu3xabxyrHg366zV9bk2VrsDI0lCprUkXgpZVwZ1FQQY9CO4JFQUc40Si JX8SeyS8e0vxZMMoDdQyPLkofFdM2MyAVys0ACBS1kLBYjJ9u+ei8aw9yPJSMtx9CdYe aV5eYkV3Jro5Ix2AdcjgTHTmreI31mdRdXNS7j62QZTIY8jdiwtVj4YYUs0kZZSGzbsC uW0qCSh708+1qAZZlkTu8MZ7UR4dMf1HN/lw0Sk2Hmg4Ur8uLQoZ5iDd8jnilF0iBmZc YP3dux90SuS6rLD+Ah7xUiuo3v88jeaKCwdoyg8k6SNnamh9T9SRpJorX20BYG/VKJGB XWCA== X-Gm-Message-State: ACgBeo1dYHi2mNn4aSKYU1PFUFAL9oevZp8tndNEpTCK9iF3Oa001i3p mdm96oGE6n4D7HNktuLIDsS+GI1J+KUXVzwr4IA= X-Received: by 2002:a50:cccb:0:b0:43d:efd3:88fb with SMTP id b11-20020a50cccb000000b0043defd388fbmr8059376edj.265.1659526422550; Wed, 03 Aug 2022 04:33:42 -0700 (PDT) MIME-Version: 1.0 References: <20220803054728.1541104-1-colin.foster@in-advantage.com> <20220803054728.1541104-8-colin.foster@in-advantage.com> In-Reply-To: <20220803054728.1541104-8-colin.foster@in-advantage.com> From: Andy Shevchenko Date: Wed, 3 Aug 2022 13:33:05 +0200 Message-ID: Subject: Re: [PATCH v15 mfd 7/9] resource: add define macro for register address resources To: Colin Foster Cc: linux-arm Mailing List , "open list:GPIO SUBSYSTEM" , netdev , Linux Kernel Mailing List , devicetree , Terry Bowman , Vladimir Oltean , Wolfram Sang , Microchip Linux Driver Support , Steen Hegelund , Lars Povlsen , Linus Walleij , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Russell King , Heiner Kallweit , Andrew Lunn , Krzysztof Kozlowski , Rob Herring , Lee Jones , katie.morris@in-advantage.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Aug 3, 2022 at 7:47 AM Colin Foster wrote: > > DEFINE_RES_ macros have been created for the commonly used resource types, > but not IORESOURCE_REG. Add the macro so it can be used in a similar manner > to all other resource types. FWIW, Reviewed-by: Andy Shevchenko > Signed-off-by: Colin Foster > Reviewed-by: Vladimir Oltean > --- > > (No changes since v14) > > v14 > * Add Reviewed tag > > --- > include/linux/ioport.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/ioport.h b/include/linux/ioport.h > index ec5f71f7135b..b0d09b6f2ecf 100644 > --- a/include/linux/ioport.h > +++ b/include/linux/ioport.h > @@ -171,6 +171,11 @@ enum { > #define DEFINE_RES_MEM(_start, _size) \ > DEFINE_RES_MEM_NAMED((_start), (_size), NULL) > > +#define DEFINE_RES_REG_NAMED(_start, _size, _name) \ > + DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_REG) > +#define DEFINE_RES_REG(_start, _size) \ > + DEFINE_RES_REG_NAMED((_start), (_size), NULL) > + > #define DEFINE_RES_IRQ_NAMED(_irq, _name) \ > DEFINE_RES_NAMED((_irq), 1, (_name), IORESOURCE_IRQ) > #define DEFINE_RES_IRQ(_irq) \ > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko