From mboxrd@z Thu Jan 1 00:00:00 1970 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 2A38BC04A95 for ; Thu, 29 Sep 2022 00:16:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbiI2AQI (ORCPT ); Wed, 28 Sep 2022 20:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbiI2AQH (ORCPT ); Wed, 28 Sep 2022 20:16:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14FF9118DCF; Wed, 28 Sep 2022 17:16:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A441860F09; Thu, 29 Sep 2022 00:16:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02029C433B5; Thu, 29 Sep 2022 00:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664410566; bh=LjaUXBIlmXcjGmqVHUKWhe2O7/mvO/3uzoLRWvl8Fwc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=F/BqVPcnqizMU7KgAVnJNReZBIbYfdEyBVavrodWlHIfOdE5EVKa2mMI9WCMkx1vI JzVPkEwkaWEq9ZceEDFaIncjzonNpye3UF2Ca+WlQN3dkIdfUBfirhZpZuQSeASQJj 7Y4mSDHbLg++dPZl5s4IbJNMhHxtP3o3WDXIkPnPcRcYEW+bpmGnRHB/fhOveZ28eZ gt4jb+cucpuSatdKKWKGSMcU7w77lNdhZbDD9i46tLkpKnOVEQVsGrYiZ0kVNrUT+q vwZdNMu5ipy5RpuoCkXgZHB4e84MVfHh9xGAx3AW5iSYhNR5N6XQf+7OtQZYmhAaSK n5gZj0sJ/gYiA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: Subject: Re: [PATCH RESEND v2 2/5] clk: mxl: Remove unnecessary spinlocks From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-lgm-soc@maxlinear.com, Rahul Tanwar To: Rahul Tanwar , linux-clk@vger.kernel.org, mturquette@baylibre.com Date: Wed, 28 Sep 2022 17:16:02 -0700 User-Agent: alot/0.10 Message-Id: <20220929001606.02029C433B5@smtp.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Quoting Rahul Tanwar (2022-09-21 23:24:25) > This driver is now switched from direct readl/writel based register > access to regmap based register acceess. Regmap already has its own > lock to serialize the register accesses across multiple cores. >=20 > Hence, there is no need for additional spinlocks in the driver. > Remove all spinlocks which are no longer required. Can you confirm that the driver doesn't do a read, modify, write (rmw) sequence where during the modification another CPU can rmw and corrupt the previous "read"?