Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp88294rwi; Wed, 26 Oct 2022 21:08:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41mQGq8mlJPi8j15XMZ84KhmYEsUV3j0NFsJng59OOJaO38pwCcTk98oGFt2ziMevGdeYJ X-Received: by 2002:a05:6a00:170a:b0:563:a40a:b5e1 with SMTP id h10-20020a056a00170a00b00563a40ab5e1mr46953359pfc.40.1666843688200; Wed, 26 Oct 2022 21:08:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666843688; cv=pass; d=google.com; s=arc-20160816; b=PSGhrMBBuWBjuMyl3wRMoXhvdIn3uEEjfansBWaSbQeSe/jraUy5+FQRtK/aRcB+F3 xJo2/4npC0q8djii1sX2ZbHjjBRvX93QotDLHvadE/McSvwCOjvgd1sbhAjTU6R4kb4e K+x+y5NZD9iPjnBKoV3NTgZIlWWz7khzmUlAk/5W0nL5jVI/RG5sDZUeZSWmxfjK5mgn ZsUlZ8ER/qYRVve4ekFPnkY28GkE1eecY0qYRFL0N0V9ooFCMZyTxwKpKFYGUfOZUpcz 5p9+To1m1sVPG1pXmdzEvWm9IQYT7LNdk7becPUN/BJxaovE8Bgo72LAk1EwTGNXk1U0 v2Qw== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=EDWAuiEqNHzVSGN1pS5lXaqUypBb5u9JB4DnRI9rRaE=; b=BZXE9YxppUaOECeuBW9Px28sudI3MY6l9mwITe8I8S7KFIUh0MDJ6oMich31EIRvPj 4CdmsCmxcvw39sMgXm8lY6X2aVFra4O1crnTWKjni1sp4O1iOxIqu7Ip3rSSSTwfbksD 4pFewF/fIlEeuYEn6Eo5bu9ioPaow38vP29twhVHN/mJ2VXC2JrX4bj54LhtCsznAZXq /wdSU4hjLqc3nbWin2xQJVJfwj06n0zCbRm4qUss762zW5tPN2umkSuAjes0mtpwcT35 9zVFFI7H+/ED7NmBCFcdiuAnXNdf2K9DWPAJsKeYzaQo2comxOsajP3Eibo06L8oHFbS ZXCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=Ye6cLYGY; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a63ef16000000b00434ffe3cc11si196956pgh.870.2022.10.26.21.07.57; Wed, 26 Oct 2022 21:08:08 -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=@os.amperecomputing.com header.s=selector2 header.b=Ye6cLYGY; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234388AbiJ0DkC (ORCPT + 99 others); Wed, 26 Oct 2022 23:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234208AbiJ0Djw (ORCPT ); Wed, 26 Oct 2022 23:39:52 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2135.outbound.protection.outlook.com [40.107.92.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DD712636; Wed, 26 Oct 2022 20:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UWXZvvONFkwD4qZRlFGO4Zwic9s9EEp8zbhQrlPYNCNCZkM7ymzqzrXIsNgrfH92byVzstAPg3+jt60JOR5UfWfWKpeb+aiZnOJ3Rd/ZaF58CBVwfpV5s0c/4yzivWiM8uruvkBg77+3CnVPWbDXTXnLkxwie+I3Kf+1nb7vtyL0G9oek2Aa0fJurpIY2JW1b9sKaLSSIvODP6bfX2BfYr5cjTFkkLHmaTEoojCehmLp6m57DMzDFZB/wpKj61gzZ4e4+GONLxn7hihQ1vqy7AOzCkk0zH97cz4/XP4tx3dTpb/bmvpWpKRd6fiB+Qt7CKlx/QJQdCYcs67bg/mNxQ== 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=EDWAuiEqNHzVSGN1pS5lXaqUypBb5u9JB4DnRI9rRaE=; b=b7vVEL6PZlNvMXFWdR3L2R4RRVx1suZ58ebBy/mJEwkIi/cuGpjXqFyzAtb6vWNp8KlUUdIT9ss1HZiN6VmDiASlUivXSuY5kF/qJJBer/rMLbnzZh1STX0wc4CxtWHsOsMYg2dFQNO4f9qjpkfE1Nw00EdqoURRJ/Dfjm47zCNW108yZdxa14hXfRnM1kcSGrBtQDGkp+JMUcN5eqavAet2lc7I6FKawHvQMEliFKFXbulYRfaIQbO6cL5vLITIrYXDglZ7FedNrArN4MG3XDPlo0Ifp/ioad2bWygH39a4BpFHEFpWoX0JzVk3yt3Y3JAylNTR1UKKuUzFjK1W2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EDWAuiEqNHzVSGN1pS5lXaqUypBb5u9JB4DnRI9rRaE=; b=Ye6cLYGYwItu7JZ68L6/yy3LfkUotWrLS8GXSsiNbXk5QXA7fAUf7aKmxON45x1nuhTIm8pToU1Dtrt5WYLKpegjzJXnO4AYG1XS3xqVUHvNEhGtMvALyoZQI8UOy/15PpABICaI91sEndSNEaZJB/ZTKoiz/29g4WMtRLapXbE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) by SN6PR01MB4992.prod.exchangelabs.com (2603:10b6:805:bf::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 03:39:48 +0000 Received: from SN4PR01MB7455.prod.exchangelabs.com ([fe80::ebe2:243d:ff84:aaa8]) by SN4PR01MB7455.prod.exchangelabs.com ([fe80::ebe2:243d:ff84:aaa8%3]) with mapi id 15.20.5746.028; Thu, 27 Oct 2022 03:39:48 +0000 Message-ID: <0887669d-fc6a-1382-a272-e231014a196f@os.amperecomputing.com> Date: Thu, 27 Oct 2022 10:39:36 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v9 8/9] mfd: Add Ampere's Altra SMpro MFD driver Content-Language: en-CA To: Lee Jones Cc: macro@orcam.me.uk, Bagas Sanjaya , Rob Herring , Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Thu Nguyen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, OpenBMC Maillist , Open Source Submission , Phong Vo , thang@os.amperecomputing.com References: <20220929094321.770125-1-quan@os.amperecomputing.com> <20220929094321.770125-9-quan@os.amperecomputing.com> From: Quan Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR01CA0015.apcprd01.prod.exchangelabs.com (2603:1096:4:191::15) To SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN4PR01MB7455:EE_|SN6PR01MB4992:EE_ X-MS-Office365-Filtering-Correlation-Id: ec6b9c9c-6df5-4ad0-6380-08dab7cce5f8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QGLYpD6vzWBhYbnzPWVLMwPSuPUqVulIedhR65kEVZnCFRHAJUuq4FowxwfI6yA7KiGVNM7i0k7Sf5qP6NT9s91uQwBuFQQIEJLEs+a1EM7hfedMsUIW2/I6yypz2ACLCMH/KnR8StM5/LuC8y8gr/2sO9YlCZt0rAuwzVKgMqZ8WIDtf63FO3/0WAYt9VKeM25w42juv65WoNIWp+abIQC1fg6um/l2yhPzA8L+PTMkh5yKiRTp83G3XJsP40Ef3pTh3vtyAk+Pi7KMtu0mjJFAIOw8Z4DzsXdrWme/TjwtheDYKm7oTIb0M4u7+4zWnjbn8gS4aEu6QysUjLcHsezIBsIYA6eMAFOMiOOi4rMKbmiBhBqG6g3ob8fsgU//aH5S5rNggnCnw+e6okXlcfLCrgb9vzGCCSgGtBweYXVuRsL+9CQxCjRdnF+07iDF5cdA3vJ+27Jh3ukpiAqJjNn0dq1KQ/wHq637ghOekjW8q6oFVNN0QkewPBGurDjA31vvigmufhaqDVWvjFAcavBnnzN7FpF2LmvSXxNZ/e4QZUuGadCkHhQwo+kpUc45wlbhCf9VjXSJ0h6skw+M/UAX529SCHoItst2UKKTEwEk63VCwcCdG5UdMUN8e0RZOdIK0eMiRjXVO50rjrhrfiiTydiF+RdTPBjGSUNOONyHuJEBTRgfZ0a9hnqO30hsc/anpBinD4H3Q1AtKQSSeYl3geGOJIeaaZuiUFa48gr5qoe6r3Z8cHGP/Rv6B3UHdqm3JhkbwRYDiQP1a4weIW6f8+GVaH89qMER3wilgug= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR01MB7455.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39850400004)(136003)(396003)(366004)(346002)(376002)(451199015)(83380400001)(31686004)(186003)(478600001)(6486002)(2906002)(7416002)(38350700002)(38100700002)(86362001)(31696002)(6506007)(6512007)(53546011)(52116002)(26005)(2616005)(6666004)(107886003)(66556008)(4326008)(8676002)(54906003)(41300700001)(66946007)(66476007)(8936002)(5660300002)(6916009)(316002)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZGR6Z2ZUTDR6dDdOMStUdkw1Um1sZ1dWQllYMGJpR29UQWsxWFZLeVh3Y2sz?= =?utf-8?B?V05QLy8vaGV2MEF4Wk5vdFljR2NXZkpHNXZMRkcxeFp3bGJPNW1jbWFKTmFz?= =?utf-8?B?U0xRYUNjd3VmSllkZU11SlBvbEM5cnRGVjQwd2FWdnhtalZTV21NQ3VoUXR5?= =?utf-8?B?Y1ppR1NHa0pkeEFrVHI5K1htQjJGbDhCWjQwT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=?utf-8?B?SVlBM0QzNXY5TkVyRFcvM29wZFRQVjZkOFdtM05UUVUxTUUrZCs5ajJIMllr?= =?utf-8?B?V3FEREczaDVXRlBlaFRQUkpsMU9wOXNrN0RWWlBQZTRpVjJ0cVJ2WmtMODBj?= =?utf-8?B?UGZHcFpkNDhMTnV3TVR5ZkFUenZYQkFuVTNiSktiSmR5Rmx2UElHb2F3VHF2?= =?utf-8?Q?PVRw/z0MTMVv4Ce+PlbRotk=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec6b9c9c-6df5-4ad0-6380-08dab7cce5f8 X-MS-Exchange-CrossTenant-AuthSource: SN4PR01MB7455.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 03:39:48.8181 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5ZJrdj4Ze/Qylcn+Lmn4ZX+vY/HKJuuE+u4KWuMkzHeCfxPZqlZgqVcEdULN9jxcXi/8/RQ01sN2+tGoefuZrvowXg0Xupmk3Sa4fXeLMwY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR01MB4992 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,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 On 24/10/2022 19:39, Lee Jones wrote: > On Thu, 29 Sep 2022, Quan Nguyen wrote: > >> Adds Multi-function devices driver for SMpro co-processor found on the >> Mt.Jade hardware reference platform with Ampere's Altra processor family. >> >> Signed-off-by: Quan Nguyen >> --- >> >> Changes in v9: >> + Rename smpro-mfd.c to smpro-core.c [Lee Jones] >> + Fix include files in alphabetical order [Lee Jones] >> + Add defines to avoid using magic numbers [Lee Jones] >> + Return -EINVAL if device does not match [Lee Jones] >> + Remove unneccessary comment [Lee Jones] >> + Refactor error path handling in smpro_core_read/write() [Quan] >> >> Changes in v8: >> + None >> >> Changes in v7: >> + Smpro-mfd now significant changes in compare with simple-mfd-i2c >> driver, remove the copyright note about simple-mfd-i2c [Quan] >> + Install bus->read/write() to handle multiple types of bus >> access. [Quan] >> + Update license to MODULE_LICENSE("GPL") [Quan] >> + Add others minor refactor the code [Quan] >> >> Changes in v6: >> + Update license part to reflect that this driver is clone from >> simple-mfd-i2c driver [Quan] >> >> Changes in v5: >> + Dropped the use of simple-mfd-i2c driver [Quan] >> + Introduced drivers/mfd/smpro-mfd.c driver to instantiate >> sub-devices. This is to avoid DT nodes without resource issue [Quan] >> + Revised commit message [Quan] >> >> Changes in v4: >> + Add "depends on I2C" to fix build issue found by kernel test >> robot [Guenter] >> >> Changes in v3: >> + None >> >> Changes in v2: >> + Used 'struct of_device_id's .data attribute [Lee Jones] >> >> drivers/mfd/Kconfig | 12 ++++ >> drivers/mfd/Makefile | 1 + >> drivers/mfd/smpro-core.c | 138 +++++++++++++++++++++++++++++++++++++++ >> 3 files changed, 151 insertions(+) >> create mode 100644 drivers/mfd/smpro-core.c > > Applied, thanks. > Thank you for picking the patch. - Quan