Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp183857imn; Fri, 1 Jul 2022 12:41:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgUhDWQiIoejDk+SMpv2sMezjOkPo3YWCyNOEad7QfXFxTGgRuOrAmUlyuj+Sds0Lec0n3 X-Received: by 2002:a17:906:7742:b0:708:ad9f:8e88 with SMTP id o2-20020a170906774200b00708ad9f8e88mr15668728ejn.735.1656704476935; Fri, 01 Jul 2022 12:41:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656704476; cv=pass; d=google.com; s=arc-20160816; b=dPg8r6G7p1bUVDw47PAxmvgd9o5XJmzHMHPGz7ehYDeZj6OzkCFYois/5aKvig0ham +iJkZi5UPe7Pp/hwdEVP0M6EeH+K2z5uEHdTsBX+z8Ot5ygR/X4n1S5MCFFXslJ05Dhc dnA3it8fnt5EN7eWDoHuZF2YyU+niw4gVmNf0XfXdguzGZxOv4owjgQt5p0RCXaM/Hz0 y/epnOWqUCtVbIJykiOqyMJdcc/QMxF962WOxczYkoyFUV9kyF7fX9YOacM52ezxotvB CuyCKRpNRgdO08uQvOlEI0RBRMbi7kM4la3UFLu5xDkTaaKknYEv69Q2KXNQ980kXnk9 eeFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mdpu+ko3VfPuNkeVreHLdBfmtcqZDB3EUVhdCP9JkOI=; b=CH9uTFMGPC6S4d+qaQUKseumdHTiWWQ+UU1xnml74UGh4C6kLITSvHqaICBKs7W/1y LaeKPbxHsmd62Oj0BgnAtS7Ea79KzYUe0Bo8O3DRqQZxnTNMz8e3H1yHYX1fQkjgm7wR I4CpxFW+uHXCze2gyq8VyU1oAssllWlX84RaBwhVmcEkRNX8SYK8TUMzk/MLMZSj5bft rRmtpREpuobmpRtvsX73jSKsxqW6b0hVzrpbqBjXAyUHFHKtUD4KVjJcUfYbCh3fUkLw eq3LzkD2PUP/ioIlhZScltrc7RGbQQ5DnlivRrCRsw9BEWqrsHS1PiYgzQMAEE7JNNay xUkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b="gMRtP/OA"; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a1709064a0500b007262c09f35dsi8310757eju.70.2022.07.01.12.40.51; Fri, 01 Jul 2022 12:41: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=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b="gMRtP/OA"; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbiGAT10 (ORCPT + 99 others); Fri, 1 Jul 2022 15:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232378AbiGAT0g (ORCPT ); Fri, 1 Jul 2022 15:26:36 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2118.outbound.protection.outlook.com [40.107.100.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA9CE43382; Fri, 1 Jul 2022 12:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HqvvOrkuJ/m2FJoIl1GEW1uX2I29BxCbAwqcPGPWCybRNfgS6nC9KaU0A/tKNHvKBA3qeOlKWa471zAvEbNQR/A0PaqDp5cpch8zAv/NaIS4FW/l5h9pkeblcsi83DVyWN/R4tol0T7uzCNq1+61EqstRbw8AGh+Hybb/t5D0BPhu+izsQ+90ofEEAUv+1l/GfnAT7fuMNSJppsUqs3a3F72LhOv+zntS0OrBAvviRedZag2mCxsOLpAMNR8A+xHPi9aNmYQ/hVIHw0JuFlqd5uOmyFYHL3G3QznR8RcMqKzrvdTwaGc9Ndh8qc3vNSLvWCN7nxR+CniesFAH/gZmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mdpu+ko3VfPuNkeVreHLdBfmtcqZDB3EUVhdCP9JkOI=; b=h9WLYq4UafeTPYUmc9SA/XZAW1JJhD9N9tN0Ubslw29qRRkbcmvUFUNxNO67n3u426nQXdGKbHTLcVWhSyPebXTdNkbaf40t3wnM5YUeHcQKki1csMRaHU+FhYahF8zmhPRT+ieOUL0dJdlLFDZisp21T6fwb9AHyMBq0Mxzf7tkZ7jmwR5mSGtzI4vdFYEgw/h4TA2dsCU1w28rV9xvN739FlnebANUbJtQv024r20D8VeIZUC3dnDs+9O0omLQ9h8Qa6MFcUeVZKxg9JeRp+X8UHMAbl80duX6ppnDVYbbdAQDbiCwNpGXMJyIkggKGESJmipDyI6aXcwjiRUkhQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mdpu+ko3VfPuNkeVreHLdBfmtcqZDB3EUVhdCP9JkOI=; b=gMRtP/OAMWpYYRBW41gPO2vETqPNsb18CRf1TRXI/1soXjIBTZGIZw3/TJsZbUAAg+XSG7ZbgOrRjthGrOTsQ66l3KtftQ4V2/oEOREUsW7/or1oVMr86D3/CyhEE0dDGxWu+l0Twh2MHMgW70ME6oUagqwxKy9RF8Cbla9Py8U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CY4PR1001MB2230.namprd10.prod.outlook.com (2603:10b6:910:46::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Fri, 1 Jul 2022 19:26:23 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::712f:6916:3431:e74e]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::712f:6916:3431:e74e%6]) with mapi id 15.20.5373.018; Fri, 1 Jul 2022 19:26:23 +0000 From: Colin Foster To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Cc: Vladimir Oltean , Lee Jones , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Linus Walleij , Wolfram Sang , Terry Bowman , Andy Shevchenko , katie.morris@in-advantage.com Subject: [PATCH v12 net-next 7/9] resource: add define macro for register address resources Date: Fri, 1 Jul 2022 12:26:07 -0700 Message-Id: <20220701192609.3970317-8-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220701192609.3970317-1-colin.foster@in-advantage.com> References: <20220701192609.3970317-1-colin.foster@in-advantage.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MWHPR1601CA0006.namprd16.prod.outlook.com (2603:10b6:300:da::16) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3db6acf0-e729-4475-3311-08da5b9795a6 X-MS-TrafficTypeDiagnostic: CY4PR1001MB2230:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 69//nZ3cGUhCeMqaQiEHisvLQxBLN3GMPgunEWBrwAVjVZzjN3ZW38RnxYK/JKsQ4Is+8JnziX3EYAY/XOWheUIttkGwigt+DTmWbzkrwS1G6W4RxdkK8HQdBvcYyXV39pmFjsPF2wT1sKgfHpZ4Kl3t1H8E5K979nUF5VKACn/3SBNLzsUoUuCAE9T5yz16X28JRvVStsOcK4GSDK5zQGlQPm833e63lkL0x9bnBybRm8ZsSw8XHuhhRA8ut57i8WsxdcI/b08ko54MVTsdPKpjv2SwB/CzKASHBMHbJAMUNYVvr7jGLsOUI8hajsIc9hKU09SAocQv7tJSr3+Qa8elxxMeJYV85ddNYQyzOfTcEldAQvRrsXmTMFmAYjCLPDtZ/SyDskHPfcel++p2fsRIEGzIIHchyvf7Xm/aCvuoLSMbCiEmp+r+ww45hPXLCnflUmveAtZOTYn6i1XTH5vO7yHghxukBvTtpBpvJxTCcqR+TwQx1HkHQfgKIjVq8d6KNZp2tL5vD06ikJaqM//hpFjHJB41uZbSPd+v5Dx3FJYgrI5Zt1XTcZss/8/KLIEuotPAIIyVE10Si6VEjUJLS4g6KmFafZvZlWdiXj8XulCLjNuiyRiXdU0ngL7n9M8vduUm07z4BVKufj9fwvYsIy+quETzb7zFPweihc3MQ0PBEQKhrlDHToKki8zqqgYSts7X9XV3uatvCaN0JZTuxjkonOcd2GOouiYab/s2eDSeTqMeScKdd0tInAApnHMIcOi/MrF0rqY+MC4k6M9tkrEbZjOEUpSXN4GFDVB9zOPa/wEfVHDi7H+moZvs X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(366004)(346002)(39830400003)(376002)(136003)(396003)(66476007)(38350700002)(186003)(8676002)(8936002)(4326008)(86362001)(66946007)(1076003)(5660300002)(6666004)(38100700002)(4744005)(107886003)(66556008)(7416002)(41300700001)(478600001)(316002)(36756003)(52116002)(44832011)(2906002)(6512007)(2616005)(6506007)(6486002)(26005)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?wXnvhxU/iwbTw5GLvHI3bvynrRfKsjMEIZwToGuX6F2jlb6fAsJ5kOZ7ccqS?= =?us-ascii?Q?XzCPfIGGNa4yxrlb3ZosoUl1za31Ty6WQH+wujqTMtmZUqwUqvO67MZoVCKw?= =?us-ascii?Q?wGiqo/ksWh53idKxHmp80pysu0feUn1mipvWFxmPySAKrPjezXWP2lzFgCbG?= =?us-ascii?Q?IhboIDiHGEP4qhjRZ/6oY3Mtq03ksw1wHqf25EYQLVqElteXCSCAvBg2a6ds?= =?us-ascii?Q?FneocyUUmoh9/RqicSkCQpx6YWZY5sRoS6LsnOD4s7C96B3h3/eKMXvTWkX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kkxVXE3WfjKsqHJ7k2zUK2YakB2f6DDvg?= =?us-ascii?Q?W1uY9ZEYk7Z9P+amLte/P+tnTuZvPlbqbn4MSjl2BLc4yZ1qTcaFinPSJ8/0?= =?us-ascii?Q?60oJ0E5CzoQpxPcAWPUHOtzO9N56rHfv5gUkOr4mtPbvew4QSuv9q1NKhSwj?= =?us-ascii?Q?m1gIIryltPsdregE/bGObvoG+wlD2L6gHm30tlfGiR+Y3KLlbb7/LYHpakeK?= =?us-ascii?Q?Qzp6lb70uWttpvx3b8kRTtbfyP1qnYR7U8QlQQK9o5gy0xfURKwkSHBAaavp?= =?us-ascii?Q?VKJf2VP78fhAShITC+Ib3YG14KDyErWKJuqXRqE0AWdZwRWQTBV4WkJiATdB?= =?us-ascii?Q?0nSwEopVejR93a7aGKCyP0zvFuusBW3NxBzEx9KzWmZ2J+Yarz9blGUiEMYD?= =?us-ascii?Q?GbKzfStSw8wjF4ecX/xrfzMqccQY6foSZjqpo8j/W6oirgaIDftdpLzHxKrs?= =?us-ascii?Q?Hg=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3db6acf0-e729-4475-3311-08da5b9795a6 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2022 19:26:23.7264 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hVPrHiSiJM8tJfH73vZDDR0TLUdWmMTPIiGDUvQOTYZPJKD9yaQxvV2rmkd4YdG4wBA3OItimGIDivLD8k0hphF6fX3QT2QVeR9LZ7xfuZU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1001MB2230 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 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. Signed-off-by: Colin Foster --- 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