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: 665118 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 D4DADC6FD1D for ; Tue, 14 Mar 2023 13:50:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232308AbjCNNuV (ORCPT ); Tue, 14 Mar 2023 09:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232604AbjCNNt7 (ORCPT ); Tue, 14 Mar 2023 09:49:59 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2056.outbound.protection.outlook.com [40.107.103.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9853351F96; Tue, 14 Mar 2023 06:46:58 -0700 (PDT) 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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XI9DGLRu5pw2thdyFN6Qz+FpxYphF+oGMXCIdhTVej57TdKS3CrqKgp9TZ2OQ8FxZ3Fm49djlyYG1rJ9iOVGqQVIHARj2E5cUI5feZBy49bo6OvFIrw/1nAP8blS8He10XiPOyQz/Lo8UEsYdznI+ObtXYNUNRYtBh7zWVJf8RAtISZr5klb9h2In118rFVrDz0a4huIjxzVBHxCvbqV43SICbUyuFteGEhBWa4iqPD+uG+qPe7uHchmnF7R9oV/ZVtkY7cZlnhd3szBgBjhkzPQ7gVMxW+W0gIb8xidZl2vILI+CmyfTXuL5FKLpoKGXWe3A1PsqumV1e8IxMWGb36QVUc+VIrtUmkbTCUEwlOX6TXLGCK2kELR6XA4niaa6yywg8tqRtw054eSD4hyG7WYwA81qGyOXc6gDWepateMlEklfg= X-OriginatorOrg: 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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.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(-)