Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1983989rwb; Sun, 14 Aug 2022 18:04:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eY+xeVgkq95nfSLFclogdiEW9ylNpqey0+5j8i8Im0CKaB25sf3JBVwNCDAXwY67M00d7 X-Received: by 2002:a17:90b:897:b0:1f5:3cbf:fc5e with SMTP id bj23-20020a17090b089700b001f53cbffc5emr15399187pjb.180.1660525460980; Sun, 14 Aug 2022 18:04:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660525460; cv=pass; d=google.com; s=arc-20160816; b=ksTpjNoQIj+6CdTJJGv03Eh5dW9GliV/dh1kjyycp8/6SEuY5pL5+kvL0tsTViY1wg pmR7ya2kBNQ33Xo3RZwDq+3TUNqYcUT01pJLRiOjXsVDwRI6MOczNNfylzCnYGlWJZZZ 1NQCuNx9ZkUDxqZWYS51VwSz2X4LgD1URKgEfSsdnucgbG1GNlPzQkIPYbRwJ+18Sz1l sPgJDLHi/1LkufCVlh6DRy3MeX2n5AqDs1dI68mKwZq/W7mLV4QoZ1D3eHmeI8n7RSKt y/rxH3+Q1TknA1ZNqGVVwyfwHFNOWHZMx7CZ6HKY76je5LkaPt4T6ZWFOkd4adwgSqGG KvXQ== 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=hkWt1g9y1Rj2yx6TLx+yEiwfaAPfZe2xipge1N5vais=; b=URVDflBj+66jGjlIdk1efDdxuUd2O0DJ2fDAB3VLQ6reh72/ja0xlc3vkBcaiGGvov 25DZtanPsdbCeyPS4XB7DQpfKC6DwlWfEl28AhdNPC1X2DBu+9QWg6HJC49v/2yl1THq 2QY8xoyEk6mq1Tn+UlzfUmJ5jHfWiPfUVjVqm3gtNsB20HmtZS3l5i83Aeou8x2VvaoN MW0bL+tC9sjG/004MrVO0Hl/T+VCHXgWIYLKfsTyEtgV9t2Nhyjcle7NI/CmsusLDwuX V6HHFdG5W2pnBy5iZy0I2qaC/06uVbXy9ujv+e207tCafXIJg6wYxi5a4VDnQ7II3kvp 2S9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=kW1hNgzI; 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 p2-20020a056a000b4200b0052541302f29si10008501pfo.359.2022.08.14.18.04.08; Sun, 14 Aug 2022 18:04:20 -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=kW1hNgzI; 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 S232161AbiHOA5S (ORCPT + 99 others); Sun, 14 Aug 2022 20:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbiHOA5B (ORCPT ); Sun, 14 Aug 2022 20:57:01 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2126.outbound.protection.outlook.com [40.107.100.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8C112625; Sun, 14 Aug 2022 17:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AhaKMSFu5FbvHisSp+CvmIbMWUy6FPWSunCEjJo1nIC6BIjalN4gkQsOfo1PoSLIbs+lp725CaskwzGEWjuulFm1ShenI0DcrbgXu5QsdaQOBeTNl3OHFK/gorQ8CwNIDio8iW49IESMlWPUyQ0JrqncMi+fhsma2FJllGxN34k40V8RO/Re4MZkdP1xAGCmqhT7AENifcB4M+35iUgiHLZgh8VsiHM6y4fG1M/Vok5dtv/0OarIBYCZWN/NO1O/zkBKZ3cZzT46AsVTCp9aO7E+wOrqo6JH5Fruai8Q18c0AM0i5Nt0a6MApRJhn1qhGCSAec1UjZz4UXzqbyWPsQ== 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=hkWt1g9y1Rj2yx6TLx+yEiwfaAPfZe2xipge1N5vais=; b=RCmvrCqjsSw2jSG/PHVAlKRkUf113h1CZR475uiaUB4kWe+MPhbzc+ZZhBn0sHqunTqkGTRZ73l1lXYbVCuEHSh5l8wOrf75V7+fW3IS0n+GVoq9BbsLgW+Smchm0D6Swh47XVQJD7ccMqWYtCR2jxvyeRjBIHjm8wIl/lV1hPNnL18OyNlRbRY9apcIHfwHGwn4azHWc/2z7cMNRNCP5intKuOnYwKZNmrzOssOYBh20eVTgd4B8U/0u3OOswDP3w2XXWezY897H9IwHwC3QaasfsSgVD+DvBmmg8wXWrVyP7UvusstnqjxBE2WaLQnm9TjcY6I1GqBmbzfzLAZhA== 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=hkWt1g9y1Rj2yx6TLx+yEiwfaAPfZe2xipge1N5vais=; b=kW1hNgzIaO6vEXpRsE7R8pzVrIYqKQpdA1q9/RXHk/KIjmVGQh/CVedAsZR60c5wyimiu/aebTkF/POQ11Eee549ZM8CtQ/DoHnvk48UnwgUyuINvIvpnhbqycZ1JseEplSdcxi0MfAr5h9i0BoHa4Cn3eLoNN7rQ2LLSxIU9Tc= 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 CH2PR10MB3862.namprd10.prod.outlook.com (2603:10b6:610:8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.11; Mon, 15 Aug 2022 00:56:15 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b869:6c52:7a8d:ddee]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b869:6c52:7a8d:ddee%4]) with mapi id 15.20.5504.027; Mon, 15 Aug 2022 00:56:15 +0000 From: Colin Foster To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Terry Bowman , Vladimir Oltean , Wolfram Sang , Andy Shevchenko , UNGLinuxDriver@microchip.com, 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, Jonathan Cameron , Dan Williams Subject: [PATCH v16 mfd 6/8] resource: add define macro for register address resources Date: Sun, 14 Aug 2022 17:55:51 -0700 Message-Id: <20220815005553.1450359-7-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220815005553.1450359-1-colin.foster@in-advantage.com> References: <20220815005553.1450359-1-colin.foster@in-advantage.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR08CA0034.namprd08.prod.outlook.com (2603:10b6:a03:100::47) 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: 23bc5fbc-eae8-4da0-1237-08da7e58f476 X-MS-TrafficTypeDiagnostic: CH2PR10MB3862:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NVK+2cWj4GUukHm0BTd1hGFh/aRLXnic/1bNi8xI4xaL0PalOFT8UIBIsnVSAFNJpmDJ0gabK5uPycLqkEApA09CTEhaLQhUfoNTIw6K4txH9pC5pw6Umj97XFnat/ehAlyeUMj2C8ipRLzuF9P84ciKSEiBH+q9BH1fNI0RuDLKaAtp2PndKMkcMaOm25D3VHPX7iarp0xxaQI/bNWExheD+DfDyPJsWWtG3XFCX1nyczOR06o0X9ddDZ+FnYSk0v2XQbHgkISkfXxeF/+RSyEZeObS0Q24PuAY2DY3D0CIeZVf6uHPeBXBjUVk4qxizvxsgS3jHcUHNfQjVH9/UG+ObczgBOF8LaobZRxIPlQGWwZbx6IKrUylEWzheXz2N6DznYuW5Esz8+1Mbaif+c8km6sHg7xMSxxs446d+DqP3Hr2iYMzrjEunqQ+i17xxex5Nvy5qtvJa187iUTAMpTRHzEGy7hQM5uTH7zNACXfgjgkIQOZQvW+V5PkK2vYOXgwzwUwdV3UIrQmNoTR77o8QTZea31fI84CHTHUTDHJ/x0DzS7FUB9kOmkLd2T/UPXJRbI6afed/uArLzEJ+nb1vhFEOSwjN1prXmXZUc+4Ey6pYbI83ibJX3pXMYTiIdihXFjhlqW0OJDMivYyqNfI0+GFFTMwTrgFc+MmMjlS5odFgPGTOioq6ka4/4E5//e1FpXa5VK9VdsRFnC4u/in3Q6QDtf/mJ5DfTo4gZjrCzAvTjbjqPAV4xwR/94DI3/5u6EXqp6yma0qsvYfalD0soz21DKkNWmZ7rXdgMQ= 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)(39830400003)(396003)(136003)(346002)(376002)(1076003)(54906003)(41300700001)(52116002)(2616005)(6666004)(86362001)(186003)(6506007)(26005)(36756003)(6512007)(316002)(4326008)(66946007)(66556008)(66476007)(2906002)(478600001)(6486002)(5660300002)(44832011)(8676002)(7416002)(8936002)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?vYsLeUZdoTGCJK9zgvaK94z8RZ3U3Iu1vtbIDimhy1o5f+WhnRlKXGwuy6t7?= =?us-ascii?Q?Xf//nB4w53+zaTwyxV8oTOdl7bxAHGh6dKhPEaI7oQxB8EsNKEJZSBlVNOri?= =?us-ascii?Q?PCsDKi9PWz0Xybdw+LxwRi59GM2yxctz57KeeOe5fMIZDjiU+AdjTDIsuCta?= =?us-ascii?Q?OBU2KBGBClm7IAPsdvduo7SXoloKZ4ywAG+X+x8/u4fOkpuagutRDyMtE1JP?= =?us-ascii?Q?bYW4Z4y5G9c3m17uf+putLkpjPyGnG7Hk0pa0u/zHvr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tTffq43U4HDLpKc54ZrUNJ7IybnbJcjZUlBaa4MUiypGDygqyky9rphc?= =?us-ascii?Q?IRf8hhO8ml6VG4zzd7vZrD/c+zzEB9gIQ0+EPcUfI9evPaZw9Vmlvv3um/i7?= =?us-ascii?Q?HC+4ge6jpbn/CjGkqfKbQQUmxeRmQ7uF87t5R1cBDlSWwza6cNrh8oi9krjR?= =?us-ascii?Q?6CBzmPTra15MBPhoLaV+RiD0aXoV4pjymLPndUAkE5TNfBTr3Vc37fS9nVX1?= =?us-ascii?Q?AHyi+mKTxVl5uorGX6vsgHAAblxXyxbwrPMwhVjdGx3rp+rbJ1UQOKXPsbEc?= =?us-ascii?Q?M2sQBYpZ7/6REuHEI/RZft5skwo78Gl++rnqYe75+jpeTcy8+JjUqh8ebpJP?= =?us-ascii?Q?FpTuNLz0GmoROSu5T068RhjuAE2o7uZ1fDp9lThwbAbP7tvrcgazGaCxZqzl?= =?us-ascii?Q?H3Vy4cbsboCC4L1CPIvyroSSfxn8lzW1CsAELrb0NIWpBH0y/RLNR1AZf3J/?= =?us-ascii?Q?yA=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23bc5fbc-eae8-4da0-1237-08da7e58f476 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 00:56:15.1821 (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: cPG7q+yNg9TyPc0wfnmse3M1uG3YHP7KsY8AR3fjfRlPAeBPikg+OkbUipeUMJEwY0Qy6bS9o/epgJLFdY20iJLyHj4JxuMhB9Al5JM37V0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB3862 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 Reviewed-by: Vladimir Oltean Reviewed-by: Andy Shevchenko --- v16 * Add Andy Reviewed-by tag v15 * No changes 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 616b683563a9..8a76dca9deee 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h @@ -172,6 +172,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