Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1758625pxp; Mon, 7 Mar 2022 01:36:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUq/GJdFPObPsH1goXYGHlsN24x2qPhCVDP0cmSkSNwGaMwJhHnPoaSo1sKYyey1Zwknr3 X-Received: by 2002:a17:907:60ca:b0:6da:8f25:7983 with SMTP id hv10-20020a17090760ca00b006da8f257983mr8316753ejc.106.1646645769090; Mon, 07 Mar 2022 01:36:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646645769; cv=pass; d=google.com; s=arc-20160816; b=ReyODaqaYTySxqtUYCeV+oGEK5lHWwWGt6rJE9HvzEuHt5Fnw+Sl9q1Sl1ZSd2qoSK VH4gzv9bRHu7Xu/BM/52XChsIfrZS7VnjPiMMaHmopSbaorvJQ9wXvVyutcU8Q+cM6MQ c3Bnyrav2Wjs5p9FeZviyqOpk+LcjBwoKsCSW+emYGz1nmTB9ydSk7QlOGoQHLtHrO8Y D0tVqoyu33u5O/mFaMvrBjPnOsjwoKSG9odAQjKRPaVrFnZ42XX2W/84gH4uylTq2IGq RSfozOoOZDDIof4BuKDmw/RRV6MNwkWFjRtiyvaw1/1NCFh5fPVtKf5MPDcCbAvRC1EH jPOg== 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:content-language:references:cc:to:subject:from :user-agent:date:message-id:dkim-signature; bh=5UtSw1F0Qshef0rdJOhpgEfvLLe/SIVvhWWneVsZyQQ=; b=0fWAdjPHsVJZxRoe7G0ZGlPjxbMOzhUMgZwHKx78tNkVOIuAoFNvnNFBIwJ978LbJV /Wd8YS/hnA2L9B3bgsCvd4gOJq7xCgtrMzjnNhWM511k4G/obfHBz4nkIIJZGfmygYGp dt6+lIMuMVf+joGLTFN4kjXN+zqiStjVRPFBYLXyEXamuKHjM7fzem4Zf9I3lxUuucIG /ZZs4HV2om+5cZGswkvvCbceG0AGw2uAgRgCCDLUhaFGpD4SbonBkPhEFDRFPfqkFvfM hNxYxQxQYdsgTQWVLrKS55iKPoQ0NKH5in+IE4FKE0vTulbr6J5/r/gqDjfd0NFOI73/ TTOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=HwucqLfK; 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 l17-20020a170906795100b006db166ef563si2903140ejo.16.2022.03.07.01.35.46; Mon, 07 Mar 2022 01:36:09 -0800 (PST) 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=HwucqLfK; 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 S236174AbiCGIc1 (ORCPT + 99 others); Mon, 7 Mar 2022 03:32:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236167AbiCGIcZ (ORCPT ); Mon, 7 Mar 2022 03:32:25 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2133.outbound.protection.outlook.com [40.107.223.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E020C62A21; Mon, 7 Mar 2022 00:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iALLaEarkQLidoXSncR040++ALD0r6y1Wo1z1qgdM+YzFwtcY2BDqAlpbkh8tjcSKME/yTOUBX5UYT3WH/Iz1xi9Wm6thfOJ2akUUl98Iw7DJF9J9sj/UmJgPD+JzxXxuhmEMjmtl23MpjUQQDTHC9frhMqZyDauffeAT7xd1l0wBTxCxF21ujNOphRR5tFGWqEDto/0gFGs5pv2ps6DV7tpSsV8xhUaq3UkHZo/7opQAVW8gzrxbLsxR0KSdwROdGeGSsmg7n07HpGmZRApTGNbzzDrGosgUl97zcRuJfOAtKg21YWzMMm8rA8YgTfYMaDq3fEBdP+FdkuR8AqInA== 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=5UtSw1F0Qshef0rdJOhpgEfvLLe/SIVvhWWneVsZyQQ=; b=cuO5B0R2zcird71mp82+vgpjTKzb7w4CiUhJqYW1fdLiIIkSdqHSWO0xCONhlZ/VRdrhwbYYI8g+qeqby1XitGgS2Crdc6RrQ9oJqujd/GS7MkUrX3AVN0pBedaS9/kA4+q13YzILhMeQi/BluocG9F/K3fhfZpB6GvJJeisP08VO0tl8S3MJ4yUg6o46DNuQzpPLqAR7vVZn36HMTjw+gvLmKucrTlavcZoM2TkKyi6AsECQPjQGGvA1676pl6j7yweUcei5tcHHlQUa+41EBokEuZ6/Cg0OcBqoyYXuFeQdVLDmYBzPwecp9MAfxQgQYbrMR4xDj1jdX2glLG+8w== 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=5UtSw1F0Qshef0rdJOhpgEfvLLe/SIVvhWWneVsZyQQ=; b=HwucqLfKIvmVbUjq2Kto3DkoN8v+9m0yACjXB1VZN1N6ZzyLX5PDLR+ZGVfaHIEtSj6gjr2PqO6Q7+BfBUaRGe/KxU4SjN79KEn9BMCSPUBIxY6tLI+IKID1T2KjcOSIxl5J+r67FbFzevnPTSMwwpGdFjqqirVyrOGfjZX3tYY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) by MW2PR0102MB3498.prod.exchangelabs.com (2603:10b6:302:3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.20; Mon, 7 Mar 2022 08:31:29 +0000 Received: from SJ0PR01MB7282.prod.exchangelabs.com ([fe80::cd24:39ed:7042:46d6]) by SJ0PR01MB7282.prod.exchangelabs.com ([fe80::cd24:39ed:7042:46d6%6]) with mapi id 15.20.5038.026; Mon, 7 Mar 2022 08:31:29 +0000 Message-ID: Date: Mon, 7 Mar 2022 15:31:13 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: Quan Nguyen Subject: Re: [PATCH v6 5/9] regmap: Introduces regmap lock helpers To: Mark Brown Cc: Joel Stanley , Andrew Jeffery , Jean Delvare , Guenter Roeck , Rob Herring , Lee Jones , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Gustavo Pimentel , Open Source Submission , Phong Vo , "Thang Q . Nguyen" References: <20211224041352.29405-1-quan@os.amperecomputing.com> <20211224041352.29405-6-quan@os.amperecomputing.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) To SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88a8ff70-30fe-4d51-cc9b-08da0014e036 X-MS-TrafficTypeDiagnostic: MW2PR0102MB3498:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WlCqqQbMKi1Hirp9X97GQhaG2oi1X1DjtqD+zbq7bsKf80q5BreMLX/MkJ119AujpaILygQPRuHC2Y/K+WIlu1TJ6VNHyQfuWEmPyndsjCSks79gA7ClMzmyQoKdUmU4lcB0Rh3RnxpfW0CBZHrZy7M820jnslQFCDKqQCgEWyt/JgSyjxOcRtq+CCwBKPqt97sgSPhvOVaf2dh2ji0BaIXGFdVWr1D1rxm/YSgvemMMYsSb7GkNZT0H+yBjanXH+pn94o9NUh7ZqeDyWaOZFajExF3Xpg2rjU0ndelhG56tqbLJ/biye8vxjtn+K8oq5uAx0mVWXR2K2PzidpiD1U0BpIveX/43N3roziK1nrQCC3h6tDHwGgPXFyA8TkITaT7Cmhah1CUHSPjHmiZc3R6DylhzbB3muox7vSmoydyPq6aFF3a+8xbCFn1tQWinYQ+UW4m21301laOEfa/paHUaXR9Y+iR37shXiOb5LtWZVMDmft4mOI+73KgorLb/hsMuwZDtX5DnOUDm1M7hAfykvYVMqVa95Rt8dN5s5agctjlgbRf2uGx7FcjgQNSPS7xHl4qXuj2wzoQIUoa4QK5BUE8uy7zstd0gX2Pnzl11LasdlFPiHUjppIaAFhbzEABfJMh7BJmXfResO2/S3HJq0FEe2ZPpi4KU9/nIwpGj9sWinDU8Op2cNNS3fqcrEojhGidtHGV/xVLu06r4Aeisv/dUN1pLRO3xs5E54M8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR01MB7282.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6512007)(5660300002)(52116002)(6916009)(31686004)(6506007)(26005)(38350700002)(8676002)(66476007)(6666004)(86362001)(6486002)(55236004)(53546011)(54906003)(316002)(31696002)(2906002)(186003)(107886003)(66556008)(4326008)(83380400001)(508600001)(8936002)(66946007)(7416002)(4744005)(38100700002)(2616005)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YkVHYXdGK21valdlYUN6WmQrcGpGWXV0L1RxMlNQb0JnNzdBenBFVUdDR0lq?= =?utf-8?B?c0xCWGVkWDdEUHdxOTBUZUlacTJPY3NrcTViNlRaNm9xRHVicFh1UkNObEhJ?= =?utf-8?B?ZGlvZGF5bUlUTnNRKy9jbXBZNkx2VE5Lb2xUME5HQmRLdHZjWjd2eGx6Q1Rl?= =?utf-8?B?SldYWHJIQ1RqUFBHeU9rT1VCdm9uTmMrbk9sUDdBdVpuZHJQdlBLVk5HUkxH?= =?utf-8?B?MkFLNjZSVTZJTC8wa3BiMmNzTzhlc094Q2UzMEJNUU14NEtIWWRDa1Y1VEk0?= =?utf-8?B?SzBGUjV0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FDWnFZSkw2dGR6?= =?utf-8?B?clYxbXhHZnR6S1ZsSENER1l4eXFlem1JakxnU0ZLMlVKcEZRblA0SXRwODVi?= =?utf-8?B?WjZJMkV2RGlnRHNySFBTWGx1YzdGSkxkc1k0cGltUGt4TElMY0hZVnJKUXh6?= =?utf-8?Q?Uih2KUmUyfGxT0D4lbIdn1GeRPMMjDAiiXHEVTBrFI=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88a8ff70-30fe-4d51-cc9b-08da0014e036 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB7282.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 08:31:29.0557 (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: d2EwDppoyxadIxoB1XAGsqz5b0q+FzGsv+bgv+o25neU8fpaZwsD9g54f8n7bT0hTEdIbBQ1JjBndYKUTTYukiD5Nn4Kg8ql7bn9ZLlSyFE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR0102MB3498 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,T_SCC_BODY_TEXT_LINE 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/12/2021 20:19, Mark Brown wrote: > On Fri, Dec 24, 2021 at 11:13:48AM +0700, Quan Nguyen wrote: >> This commit introduces regmap_acquire/release_lock() functions and makes >> them available for drivers that need atomic access of regmap registers > > You've not explained what something would need this for and how > it's expected to work - we don't provide unlocked access to the > regmap to client drivers so I don't see how one could safely use > this. It's unclear to me what this would mean or why it's not > better implemented in the client driver. Thanks a lot for the review, Mark. As per my comment in the other email, this code will be removed in my next version. Thanks, - Quan