From patchwork Mon Sep 26 00:29:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12988164 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 1995AC6FA83 for ; Mon, 26 Sep 2022 00:32:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233396AbiIZAcW (ORCPT ); Sun, 25 Sep 2022 20:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbiIZAbd (ORCPT ); Sun, 25 Sep 2022 20:31:33 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2111.outbound.protection.outlook.com [40.107.96.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AEEE2A438; Sun, 25 Sep 2022 17:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gjhpNS/AKe43nO8liXGspr6iwSSgXXav+Kr1gWp9GSdBTmHLh+VyZhtRuqf9H1TlRWsJU9HeYr228IPsGY6uInj1rTRYuZq63jNRoTusy0CyujC802IxQaOWfqfr5QO0DUPIVvDyHzRmSEPyROpZ/qX2tNBbDW8IdalnMCCnRjKWE4LEPSIJ6hfYfrQw1dIsbPdR9fK5NFJ/ID7eGhpP5iQNV/rwnkuSmKlEpTcqSyJLHbFY+Hf0f6WJteth5Y9ZifZmd+WLLYMbv73XUEpler9+u4tuMN+vBAasw0QGjUzZSL48RaP0CyF7GXHaeoMqI7IU+pingVcDEN19gwppSA== 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=EjgLO9u32pEV+OAvuDZG62F+qdkTStLP6SR/sEud5L4=; b=OWR04W7sT/JbBKQc4pmqMCTzhdAauQr9ZarvTy9Wk6RelbtdPBvvNw0Ak3/Ukjc/HsPoVM+P2Zi3aYcfWs6h0Zae/hOZ9ClBOSzJlBeLTNdBtpNNOk/MiHXc53bDgfLc75Lo6L1JFH0XV1rTVHnaLanEU2NSLICOOAUOd9+FQo+B78QZrm//0jgF+cKbEQNPBSbKD/f0y8a9pFBrfVXiAKBcASlQhA77GlfdcdW/ddCve4clMUqo+ukClvME2HgsYDIS6LEkcrlglkPiPDzIZ+K/FSlTc78h/t5gQ3PDJ4XkjyI/jTs9Jtenq6mtTlUG+Uei802zYXFwVGyHh+Tl2g== 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=EjgLO9u32pEV+OAvuDZG62F+qdkTStLP6SR/sEud5L4=; b=qGIsANpSoF2zut7RH9Lxp1g8BlsFRG44IhBA0bBMPoOxSQNURKJX1FuJjc/4AUwRhB4S7s+s6orhFNchuKk2p2EHu5u3GhFKrUAbH0rofc87xutY6Jcn8Xwy0S+NBsrDePEgfYLylxkhhTINSpT1k6Be24eAZPfLPdY/HOC6k1M= 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 BLAPR10MB4849.namprd10.prod.outlook.com (2603:10b6:208:321::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 00:30:25 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b417:2ac7:1925:8f69]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b417:2ac7:1925:8f69%4]) with mapi id 15.20.5654.025; Mon, 26 Sep 2022 00:30:25 +0000 From: Colin Foster To: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: Russell King , Linus Walleij , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Lee Jones , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Vivien Didelot , Andrew Lunn Subject: [PATCH v3 net-next 10/14] mfd: ocelot: prepend resource size macros to be 32-bit Date: Sun, 25 Sep 2022 17:29:24 -0700 Message-Id: <20220926002928.2744638-11-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220926002928.2744638-1-colin.foster@in-advantage.com> References: <20220926002928.2744638-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MW4PR04CA0260.namprd04.prod.outlook.com (2603:10b6:303:88::25) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|BLAPR10MB4849:EE_ X-MS-Office365-Filtering-Correlation-Id: ccc5caa0-7469-474b-5b4d-08da9f564dd1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TwvhM93gAY3gSlMJQ0GHNa5yOuApaaDCho49uTqwifGb3Oc+G68SzJFoaaL7V4GYtxAmfDphK5PGEj+OfAFfjk26F1X3fJgVWh3cN6soxoStpYtR8x3VGupTnM2HQefic0yyk98N6moGtJ3wHDD7UchJ1OOP0ZGNxjSDO+u7qne569tqXYLiQX7W6S7FjCNR/qsUc7KipxWXHR31kXoRiUZu+Js3pH1VnNNyBYDQudmqHaa60uITVDf8uZG4W3SyAu8V95Q0Iy+AGlDzu4Aag7dnw6rnaUFSRiWxwqNeSgsXqd7+l+udNSaHvM9dMnJr6g+3QNecK/hwclc6FkFThZz+dh8ySUymQhFqkIklCuYEdPCn+NAzfrci2gbMQv3VpfX/NPLH15jzFVb3qu9DfQ0IKaPz1W2mK7V3p7QrNUwU69cy3R0XursoK3h8nYcF/svKh5TuUPH4vA6eyYd9TciMZVnEYzGbcXe/gdMAR6GBILBvNkrfXlZuGUCKMVmidqfyZYzK6af9WvneQjm8S6xPHCLJSgAXjXFw/yXEtQdZLRWLROiaZGr+fZhZhyCC+71WNIAoPUULAHH+zDvAdRbzg6m0aBqg53+H/1kawVmoU8G97vv12n0Qy4AcceqsozgZCfW9cJuq6xmh4LiPZyvxMToXNhvaqWDins/9kPpUw6L7JL3cC6aXaRgK+lSRq1CnVwYU2UiBSBadAKHnFUcOAKwLD+P7ZpO/An5Am4WO4wG2DIb9UlF/daX8MliQ 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)(396003)(346002)(376002)(39830400003)(366004)(136003)(451199015)(54906003)(38100700002)(478600001)(6486002)(316002)(2906002)(2616005)(6506007)(6512007)(26005)(5660300002)(1076003)(8936002)(7416002)(186003)(52116002)(86362001)(8676002)(38350700002)(36756003)(44832011)(41300700001)(83380400001)(66946007)(66556008)(4326008)(66476007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1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TqpQ/2IavGU1/GRfgP22/AKiFmI2MX4gfnQ6QUOXZMH2F8LF0UyzmzE7094DCgU9BQ+Ip5rPyQPGgl3lkLHnw8sE3S13rDmHxzSkVpRpxtK3nsgQvv5sx6XeyA15QbnN4TDPzelHIMpvqlavlMgCcUnQOWKYrC/YdTEJVaHHhRPxm0H26evvi7UByBms0Oa2pctDXFBbZCaKn6Zlksl1Xx6dWzFYlf5g3AtDXGIvbdN9FPlZYEnru1BYDN0wO1XeKqXG4U0f55XHYdvviNAMqkfDNaPImYthm/lwl0BTCJMu9okxQuA66WOBrwSU1jHRWUgXcCRtH17/Sk14nSIw+e3QxryWSI/wSPuSNXrEjRtnEp/J4XFAr0kPo8ym0W5J8WyhsXTKeMCWKq5Z4/PJ+vi3s6YHdL6Yd4ilTBGr5qFpIv3ioWLoipCxjC1ySpjhfKtxJGXxytDlD1Zc5UX8wFYr0yrSgeP+7MO66nd76VNLJUa0i4iSg0rmh52oOH1fX1bGWNwtEz8+3VeZUQE4V2Ye2sKN4l4p87o+UIw6J73hV9QDlaH3gA8s6K3IWSshsJJ8= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccc5caa0-7469-474b-5b4d-08da9f564dd1 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 00:30:25.0572 (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: 9z7WHJtLTx21QZm13V3Sc0LKoY+roElkJUcEt7h0EfBwDg7VYtDzb1zbbYfYJR2pJuWm2NuwsEnPeHkJrSP9nKOHEAmvcwiGib64LWhrgS0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB4849 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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 --- b3 * 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