From patchwork Tue Mar 14 13:46:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 13174465 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CB86C7618A for ; Tue, 14 Mar 2023 13:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=aGMpK8HJR3GeQ8/uJRF5X0rPJTzd3oTMZPr7u5epkX4=; b=lcqF789/BVsPrp tei8PKRtIsi0N0xGx+CYX0603nqmUKJLu5w6NaT6qjRTN3R+gQYLdy97HyhAKS1de5TszL72BHq8z szv1h8g8CRWSYfoFzegALgzTwhhANzLzpB8XsScUMGpqMxKi8NDihI8rkIQ5bXh3FgbYZahXP16T8 7a/CbW3PYQIfnd9bzCCkek/V3BWtP7VnUF1NIalDOTo6Gyn/cZoqPKP7gGZHJmlbrxG7mW7VL7sRy YMhcBiPBVQZ/CZSDlIwKrahLDZTfLqIyC3cFEe/29oXneyRdCLzKIxSK2x43dokOcGEGglETn8/gr P6fQj5FxmlC/KCYNF8UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pc4za-00AL74-22; Tue, 14 Mar 2023 13:47:06 +0000 Received: from mail-vi1eur03on20607.outbound.protection.outlook.com ([2a01:111:f400:fe1b::607] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pc4zX-00AL5Y-2b for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 13:47:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mIpsRtHwB2gJAObphMtNPADfXaDHmSkMIJ9Kfvb9HjJi7cdIKJ2YHpwC1c11Lq/oHc+0i6HadpSi1e4VAP3h349U6CNwfD4mqrGc6/POcZSKOOQn37IyU95laJKNrYxLIon+Ancju2aSuRd0rlrFRFEKtgaWiSnxwHN+VtGp560P23LtE+t4iEAnVbpPSijEslbqgdIwWznKtwWHJwcG+whqNlj8Wew9YXtZPulKDWvmY4CIFh+oe3+v5b/eKA//eo2K0kGu8HoT6y1gfc4rO6D2iXHqmoGxbFnUK1xnsuk2uK1WWsncgH9OPEzWkFzn7kRoT+hxO0E2ZPHuvij3Gw== 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=0cBIt1WqE2UiM3KlVqdMpaMQA6j7oznkc0jMtmYbWSM=; b=Weq6+QY/2v4fGjX2F2+6Ij9/Js1CsiTkGfs3wVR61PT9MRZGcffZPuUzcE2WweSWPLoybGSttVKFP/c8nQ8sx7p5ASd3mR6luP9oMFA5qTjy1UjHLyi4y6v/6ZH08KlKvAayiCprMFo5eu2mFgoAGT0mGqIQg8Xb4w6txwuQpGo8WgZf6+6OhAyKMAmDK8VjHHXP3rtIVV/S8RloU8CXXw2/H9BhKMtMPKJYq+ylF4jHdzc9hxWOwHZepayiDZ0nPGA4Lon8Yc6X2jeNkvcnsjYsHcQw7FlJUl1zAFFF9YUI6cpo+/vJxO7T2ooVKQjukELDtBfdQw99q5zbsYPKgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0cBIt1WqE2UiM3KlVqdMpaMQA6j7oznkc0jMtmYbWSM=; b=zTCMk2xRbp9GpHvrqG3iUZWOVjoI87QDbv8/QXSIuYeefuqDteW7wAOX4bCZEGyklMgrrySHADvpxEiLOh+C3SvDRQSUX8uH/RggA+NA8moyTww+z1jI7ZBYBSFp+7L5NDCMZE/twqzvwzXc9nAh9sjw0e2yNoiJarerfucI8QmRs3CXow3JVezOO1BeTX3uKkdxHQ3lGzjl4BDyDdNyOBXknYlXMGxhrQM/z69YW04CRVsyz1w7e1b1FdbzrLdSUYl9OivVzkagIHaSaClgl4xuftgSmTMZSzDs+70F+BDaPrkOSga529KqdFtXcM14MKIoEdxEA/ZlGhah37mvZg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from AM0PR0402MB3428.eurprd04.prod.outlook.com (2603:10a6:208:1a::25) by AS5PR04MB9895.eurprd04.prod.outlook.com (2603:10a6:20b:651::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Tue, 14 Mar 2023 13:46:56 +0000 Received: from AM0PR0402MB3428.eurprd04.prod.outlook.com ([fe80::2b1f:7e5:94d0:3ba9]) by AM0PR0402MB3428.eurprd04.prod.outlook.com ([fe80::2b1f:7e5:94d0:3ba9%3]) with mapi id 15.20.6178.026; Tue, 14 Mar 2023 13:46:56 +0000 From: Chester Lin To: Linus Walleij , Andy Shevchenko Cc: Chester Lin , NXP S32 Linux Team , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ghennadi Procopciuc , Andrei Stefanescu , Radu Pirea , =?utf-8?q?Andreas_F=C3=A4rber?= , Matthias Brugger Subject: [PATCH 0/3] pinctrl: s32: driver improvements and generic struct use Date: Tue, 14 Mar 2023 21:46:39 +0800 Message-Id: <20230314134642.21535-1-clin@suse.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: FR3P281CA0179.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a0::16) To AM0PR0402MB3428.eurprd04.prod.outlook.com (2603:10a6:208:1a::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3428:EE_|AS5PR04MB9895:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d59da02-70e9-453c-2dab-08db2492933c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c2vUD+yOy4vh2vi5aGP6UFpJWjg+xBg+db278o5CocdlKX0YnhFdrsGfotIJtRuV017iQ7IGxDIERH7UxIQRLb8u6g5Jo0NQEyBKLXpyeencxKAagxukELkiErjfXH64fQq0MOtweXOaU1hYiOyuSV4zUmMu3kSmUGzEkuqaRgwJ/hgb1EcSIEgcB5Oa0YWNUKRm86IMZAJIg5O0sJCxqnkOLzA9hVS40CEROvY9XH0gOlqLi4kBeoH6HmqT3h8iiOTt+AX0aoDsq4pIls1rt9X9Vx7Tx5OBc4g4SkKQZgUS6a1YtVrgv/p3X9r9VXsMvVubUUXhzLBy8L2jYu+K6jiiNdP95u7snBnSRWHXhoX/RtstkPG+bBRJwhUM+crVaoaU+oGeU7jSuJy7UKKLg1cU6UzykfMHjrSg2UpthK8znF0hpu6DqIwqn68VgeiaLfpXOn8JewbNUepYpKq4lKQmPELyldOBKhWXDvraozp3HMjEsWZoOQ75kBqUtsk1fQ4fOMRtc9h6tes5/3rB9S+NP+KtFlth7DkFTD5bIHWgE40EwaD6bcO6QNSUj4mwc46rsiHK3ykk5LenjLm7TkSHg1vp7ZbsOmPEZVXVThhp82Zdru+OywjxMBm5qmRg1aNn8139nmT3274nAilf/oYDKE+OXMyDVusif8ksc5CrI5KxIIxv7iUTAZ6YsG2z X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3428.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(39860400002)(396003)(346002)(366004)(136003)(376002)(451199018)(8936002)(36756003)(54906003)(478600001)(110136005)(316002)(66476007)(8676002)(66946007)(4326008)(66556008)(7416002)(41300700001)(2906002)(4744005)(5660300002)(86362001)(966005)(6486002)(6512007)(6506007)(1076003)(26005)(6666004)(107886003)(186003)(2616005)(38100700002)(83380400001)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NZZF+7z3ru+f43/tyX+ngp+y+WSmvQOTkdXlbOFNC/hC2MHqHvTXjny9v85/z2IcxdreYlxPFNuk4pnAg9V3B5Co1+1Hu/ok0/UKEfGWE0x/PB0YLimztK2otswfFEDnx84Ept0b9OvE28mn+j0CMVNudYLJ0dHEC7oJuCQkSXRj7MMdu73nD0JI3r6bLb+7pSpI2ag72mMSRPLUs1lauzRIta5StI78pM2HdjZOs8uePxwF9Pgs7rA8PQ+pwaz45XMM8oocGefRtF9HnKTY7G1cGtKQuWuJmz0mx40SbVmUXab3c86mK2CqPRZ87xhHQl9wd8LhE1By0B/c3nNvk/tcoFHePoORpCqEmFTs15l3CzDmRs0Yyazpod57QNnQtXhG4cXX2xAOwKwjhodpLUMJjxKOaRVmtXFSlKXplAYUphHwfQ1zFUX7fclfBTPwxScrgXu90FkYtppbkF3bjoiAirUHY393zwZdLph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atorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d59da02-70e9-453c-2dab-08db2492933c X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3428.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2023 13:46:56.1295 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: m4z4UefDGRpZ1lmIK/KEwMZfmLpxwPR2af2sRSJp6ysl3EuhKrjaa2y5R4oPndJK X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9895 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230314_064703_866682_6A226D3E X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, This patch series contains some improvements for s32 pinctrl drivers suggested by upstream[1], such as - Fix error shadowings and improve return value handlings. - Fix print format. - Remove unnecessary blanks. - Use proper macros and helpers to simplify codes. - Refactor config param parsing and remove config arguments that are never used. - Use generic struct pingroup and struct pinfunction to describe pin data. Regards, Chester [1] https://lore.kernel.org/all/20230220023320.3499-1-clin@suse.com/ Chester Lin (3): pinctrl: s32: refine error/return/config checks and simplify driver codes pinctrl: s32cc: refactor pin config parsing pinctrl: s32cc: embed generic struct pingroup and pinfunction drivers/pinctrl/nxp/pinctrl-s32.h | 22 +-- drivers/pinctrl/nxp/pinctrl-s32cc.c | 283 ++++++++++++++++------------ drivers/pinctrl/nxp/pinctrl-s32g2.c | 8 +- 3 files changed, 168 insertions(+), 145 deletions(-)