Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2711471rwb; Sat, 8 Oct 2022 12:47:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM50tGJcOc9QHw/2g/acXWDOtxVxSGLiQy6nMyHqu4rpO7eyqFEbcbqmU+vWprZ16DYhK/Ve X-Received: by 2002:a17:906:eeca:b0:730:6880:c397 with SMTP id wu10-20020a170906eeca00b007306880c397mr8726387ejb.593.1665258465744; Sat, 08 Oct 2022 12:47:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665258465; cv=pass; d=google.com; s=arc-20160816; b=yj0ziwxWOt3uDzpko9pHaXK3dI9JRuBwv47y5cqxQYQXRR/KFbI/JwYugkgLnC958E bBVoQ3V9eAU/5i76xaNwnX/A77kZkar6kxp9xeu4E5/YFp/eZphfmSIGUqnSopzigXbU B4aB02t1evIABzu4vKqyPaw+A1JcUNJCQxmPg0ve8HmcPLOuNQiOxW0LOO2UDtaTQD9A gybMOzw7JKG+SVJXxZCs/KfjgnhzhKpzjRRvQP+4SacNLZTms/7i5MLpUS+jcsMsTy92 KVdvDNb7oBtd2ZfAloc+6Um2zRTV57yBt4IUuW8YXYdPizhIaoWq0cC2SBM1Jhvs1tkk q0Ow== 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=0cpMbOVw6uh87QImc+X5A0jBc16Ci0MxOxYuoUUx5Ig=; b=gtwHzUBjcf/EMKvXkOcAXsUAUpr01EXzg5R8a/9mI+Z4ZyoLax7Z8W6jjKfi9hpaVR kA2/aoKLIt2GIiZnwtU7R5Q48EBQvmB75nJaO8Acf5lO6ldlb8RjNYVXkYJ+Iz8oHGRy r0F9sery/SHg/psi6XDRWmYRlJrwDtMXjNLqZVro/fRyRkPp2yI6wrSilhvrtl9tJ0kI XWG0kv1GwvvadkKAk+eJmvcUKomcDsljyYRFYTVeymcP0ko9YnE7FoamX4yLBIUON8qV bXmdmLYdPyttGAuKy9dPZkOwO895gtLqaTZIvdpz3vn1V63xoJENOseQ7cNYEIMuMJ2I umzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=OqUpPrmY; 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 sa25-20020a170906edb900b00781b277d931si4822110ejb.390.2022.10.08.12.47.20; Sat, 08 Oct 2022 12:47:45 -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=OqUpPrmY; 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 S229616AbiJHSxL (ORCPT + 99 others); Sat, 8 Oct 2022 14:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbiJHSwR (ORCPT ); Sat, 8 Oct 2022 14:52:17 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2102.outbound.protection.outlook.com [40.107.94.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 023A63FA25; Sat, 8 Oct 2022 11:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N16kqmyKJl4iN73YOzG45EtUO4jRms8tiqWSwDoqDw5y0FtNRc5b4goMPmtzYecx63TkWlZiu7z/EzHGfR4+8zo1ZAmmu6Fv4pEgtZrJVFzgEXwN044gHq9oQfCPNyrZ15QcmMZh5V7zT5W+XnDS6yvZnW06ehL6jlcu++MPplulVoZHkJCV73N/7o0I47bgUmZgTr0RmN5U+mJNM3xjfFsLLu9kMspdOunl5TXh+JV9rRFuk+wAbbwyWITtw/9v6zgBuHnWFckhuwDtBccMpTlyc8OTG5/IGML6P6ntu3bv3L+gKG/qNc17xirTp+MFxkTfWiAsY95xw/jd+mYoZA== 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=0cpMbOVw6uh87QImc+X5A0jBc16Ci0MxOxYuoUUx5Ig=; b=gW2Y6U3F4O6G7brDQWlMOQKDFwFq4tHNcjEr9aFa5Fnhu7xyFVVkbNuSZjR5nmrjgV0DLjNES89W2ZkAOJb5bQ9pGZlbumO+LKSokS+DMuRKOwpqLkVSqNlQFvPi/9j7l3S1iQcjxyJ7rmLf2OgegazuutB79irKIlt0HHDupOahElyCy8dqovqKuHQdujqvMPnXKXbpizmAFPpWVt/HGf+SyaaD6H/nR/XtLNRiQYrRHnMBrisPcBBsQre7t0d2KV91VZbotGNu5bUBm3paNfomN3UUr++iQfXoPX5eDQMN9ct38fTM6YGyCY7s2IrUlOW6NVrJwVzYO/a+fML2ew== 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=0cpMbOVw6uh87QImc+X5A0jBc16Ci0MxOxYuoUUx5Ig=; b=OqUpPrmY9/M6L8mVxKFyWDzi2gSyeSvaaY0fx0r+xyBgsanVMA9WgWqTd2CNKRQKi3PjhbvVQD0lYDhLcbrPUeikn/kJHVHPu7+XuvzhTSr9eJ+qecPbzfqLrmteFTbrYCjtACVgunk+TSKUWL00btL7JPnNCQjlyoI3zw4uC1Y= 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 PH7PR10MB6129.namprd10.prod.outlook.com (2603:10b6:510:1f7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.20; Sat, 8 Oct 2022 18:52:10 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::ee5e:cbf9:e304:942f]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::ee5e:cbf9:e304:942f%7]) with mapi id 15.20.5676.028; Sat, 8 Oct 2022 18:52:10 +0000 From: Colin Foster To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Russell King , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Vivien Didelot , Andrew Lunn , Krzysztof Kozlowski , Rob Herring , Lee Jones Subject: [RFC v4 net-next 11/17] mfd: ocelot: prepend resource size macros to be 32-bit Date: Sat, 8 Oct 2022 11:51:46 -0700 Message-Id: <20221008185152.2411007-12-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221008185152.2411007-1-colin.foster@in-advantage.com> References: <20221008185152.2411007-1-colin.foster@in-advantage.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR03CA0304.namprd03.prod.outlook.com (2603:10b6:303:dd::9) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|PH7PR10MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: f5c7a404-4c10-4588-4b4f-08daa95e342e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XSkboECQpOEGma1puHvtB4XAv7JjUATKqzA1MTZNuOh46jurPY1b2mcoFFhD9Mfp5vwRQ/T2A6sDPQxsTUEZXVQyxkOsP511G7QmlvyjT7m0YFuCUwnYEXEwgTMs3rjZZB+BEF+sRJaLohsTN2EqlVwpp+hUVesKFYdKbWki18a+pEfYTo875xuaEIrxYzQbMAyWJ62yTNTpfi9J1kJ80Cg//J+g4EYvS4aSSzEkvDHGRvXZ4ztsYB9ep0nhdEouhwalkcCygLAe74uE8BmxWyH+PDhhbFLnet7LzD1826Ccw7ivXcgGKNeJX548cYvV4lA5RV7zfiGrTwbsZVirRO+bEAUU7CqS38Co7ACSriE8kob3Vm7VCnC6U1xxr5H2i627CMrlfX+4RUFJDLfG1NHmMmYeINfgwcTuqD4tnRga4EtjFaZ5+SSnPHjG6zpRvAK54MeQ7j97RE5XCcJJQoPeB1stu7c2s9DLCo96MzUloNQfHeDU4WXkUxbMDnNhJ6APvDDAi9X+o8/Lvj0uWmGd52jZy36lioxLyqaDISeTlantCIkhx3t8SqasReGN7BdqqDooS65RZPKDCZpZLGlFxG5RZZNZTLvXed+Cz7qszThZRPhymQlxOb/90suFmJOdLMPKnSD4sIUTRSqjJrv2R2y4rqUADdDXbyEXKSbJ4rFxwGRzeOLtahuzGeKog0mVJdPAjZPbyprP1GICabjNlBq+ec8CberybAUoS1Ga0HYfxjy2k+y4ysa9kKrUFlOEr2ceVeIbsPCYjFEz7w== 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:(13230022)(346002)(39830400003)(376002)(366004)(136003)(396003)(451199015)(44832011)(186003)(6512007)(6666004)(26005)(6486002)(6506007)(2616005)(316002)(54906003)(38100700002)(38350700002)(52116002)(4326008)(86362001)(83380400001)(1076003)(478600001)(36756003)(7416002)(2906002)(41300700001)(8676002)(66476007)(8936002)(5660300002)(66946007)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?NjaxF3yGzH8EijYf7rVu/5OpUYpkRbOQcgRrCciG2zDU/EQO45euCLA4CtVf?= =?us-ascii?Q?Cc9WNejFUQjBOq64Ta4e9XZ8xlNFC9B4Vtj5WiXq8WqMP8qNKgl4XoqTju/d?= =?us-ascii?Q?UyovVViYEHdXHzCWW8j8GJk+YlhIMd7POALPzG7nwOgSvgERkdTo7r3ar9Qa?= =?us-ascii?Q?2EaY4vJW+K1Cu9IDgMWe+TjLMuQpHmQC0swyCasPuSXoh51MZmpWvXHO8DYY?= =?us-ascii?Q?uhDy1lrL1a2DeoagzwCWpXimJ36eNsoLgm4ih50EjzRu6GuqJudlKyiFLAcs?= =?us-ascii?Q?A2xTAIklOIBYw7jsyjZt1Dt3vfzS0pixHB1w38QPSAgtO2ruhFPutCGx0SDg?= =?us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L3US6lvfAcT9ipuQ/PVtLMepSlP7i9d?= =?us-ascii?Q?0aTIHd/ANm/8jScxWoFMZwvheKGfm+FZ/ScJN8oouFgEWcu7pMGPyXIlS14Y?= =?us-ascii?Q?z3TPVftoJvjSAIAlDDjtlfBiQoR9lU0n5NiKCEN1ZCeB4XJ/tSoFt1aNnQCg?= =?us-ascii?Q?Q7FOfi2FbSEaMgHMVZmc3/J5pms/GtfyOJtEyCjAnCz+EJ73WkBO2ixtev02?= =?us-ascii?Q?dsU0EByuFCmohTNZr/218GNMif/I+Y7G7ND9L7fUF4NEiJQvNSG4+2LRdocb?= =?us-ascii?Q?0MtyJ3N4rjQgWozFcR1Sz8s1o9ihdx+EIrR0Ql8J3CFHSLwm9rJNMqKIGYMD?= =?us-ascii?Q?qPRUH5ojpo5e/ki+gERx7Tu+KLXUOT2veVaALL6ojDRB9+GNTOyZ7/6x1HfL?= =?us-ascii?Q?J65ppAsxbTBSUPyHKNn8ikU=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5c7a404-4c10-4588-4b4f-08daa95e342e X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2022 18:52:09.5534 (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: RVLbqWnue57uiRZIW7IfvHhbW4DQ2ZgaVo0HFHIWjXDZileTzsAoxA1acFSuLjSJ/4/zoHJrNg77hugslIuwyQlGk3E50dNcfisN3iHGpQQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6129 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 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 The *_RES_SIZE macros are initally <= 0x100. Future resource sizes will be upwards of 0x200000 in size. To keep things clean, fully align the RES_SIZE macros to 32-bit to do nothing more than make the code more consistent. Signed-off-by: Colin Foster --- v3-v4 * No change v2 * New patch - broken out from a different one --- drivers/mfd/ocelot-core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/ocelot-core.c b/drivers/mfd/ocelot-core.c index 1816d52c65c5..013e83173062 100644 --- a/drivers/mfd/ocelot-core.c +++ b/drivers/mfd/ocelot-core.c @@ -34,16 +34,16 @@ #define VSC7512_MIIM0_RES_START 0x7107009c #define VSC7512_MIIM1_RES_START 0x710700c0 -#define VSC7512_MIIM_RES_SIZE 0x024 +#define VSC7512_MIIM_RES_SIZE 0x00000024 #define VSC7512_PHY_RES_START 0x710700f0 -#define VSC7512_PHY_RES_SIZE 0x004 +#define VSC7512_PHY_RES_SIZE 0x00000004 #define VSC7512_GPIO_RES_START 0x71070034 -#define VSC7512_GPIO_RES_SIZE 0x06c +#define VSC7512_GPIO_RES_SIZE 0x0000006c #define VSC7512_SIO_CTRL_RES_START 0x710700f8 -#define VSC7512_SIO_CTRL_RES_SIZE 0x100 +#define VSC7512_SIO_CTRL_RES_SIZE 0x00000100 #define VSC7512_GCB_RST_SLEEP_US 100 #define VSC7512_GCB_RST_TIMEOUT_US 100000 -- 2.25.1