From patchwork Sat Oct 8 18:51:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13001851 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DABC8C433FE for ; Sat, 8 Oct 2022 18:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229764AbiJHSwc (ORCPT ); Sat, 8 Oct 2022 14:52:32 -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> 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-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js7pCRUrINTjmFWlSuEIuTZSQjqo0sv4HjpGh1O6tW+w01XBz0wo47F34Qyqbt7Y+Yg4JV/Q58UAQw4k/UdSnS8QsH4wX+XKbiDMum1jqerrHHGNeAqrvBrw8L2drSDLS8ZE8zfdV7khmcctRKVkkeB+v+22SMecThqWUAzW2qjDNqJlqyhFL3US6lvfAcT9ipuQ/PVtLMepSlP7i9d0aTIHd/ANm/8jScxWoFMZwvheKGfm+FZ/ScJN8oouFgEWcu7pMGPyXIlS14Yz3TPVftoJvjSAIAlDDjtlfBiQoR9lU0n5NiKCEN1ZCeB4XJ/tSoFt1aNnQCgQ7FOfi2FbSEaMgHMVZmc3/J5pms/GtfyOJtEyCjAnCz+EJ73WkBO2ixtev02dsU0EByuFCmohTNZr/218GNMif/I+Y7G7ND9L7fUF4NEiJQvNSG4+2LRdocb0MtyJ3N4rjQgWozFcR1Sz8s1o9ihdx+EIrR0Ql8J3CFHSLwm9rJNMqKIGYMDqPRUH5ojpo5e/ki+gERx7Tu+KLXUOT2veVaALL6ojDRB9+GNTOyZ7/6x1HfLJ65ppAsxbTBSUPyHKNn8ikU= 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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC 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