Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2450579rdb; Wed, 4 Oct 2023 01:11:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF63cLFEM5aPqqQ7aWOSA6fgbjz+4KErPTn9I4Ln8sUP0+ZUW76ne28PDbHxIoxrQ6oGUO2 X-Received: by 2002:a17:90b:1997:b0:26d:54de:b0d6 with SMTP id mv23-20020a17090b199700b0026d54deb0d6mr1412499pjb.20.1696407101958; Wed, 04 Oct 2023 01:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696407101; cv=none; d=google.com; s=arc-20160816; b=e/AGTGGAVC4JBsAks42d/1NRDCt7oBO2bfsUQlRf7WfEtsky8/Ke5Db3GOLXpdN+XN z2tiV0nPwE02G0uIZ34mnTtOHpI9QpSOsgV8tTmtMbINhOc3jxDeC44xSuZvQeESA3QI qa5hFs373G3c8uR8NJXvUyhPgMFvwsHrVlK2bxhHll0OqiLRdaqnnwkCD6MHHnPqaLE5 qJlQ1J4/p5DOL3/bXxWX/0ba+Ar8vAIe6UzFGtkbLT6pm+gNIh08Z7P9fFyKhyh8iSUP mZyw9+nQ910+uiEFePLONjdHo7G6OP0EuL0T+UwOBspe9FXOWrmPU/bDyM05x8obFuFY HZjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=E+/eMg46B474k5UClwe/FQnwhc1hVFUEVMmy5yRbGlA=; fh=h0ui9ha+9HcYmS9uklzEW0ZJ1j34pDNuxEyPi9+DJts=; b=BR+q00cS31qlVZtRkMbr7wTEar17B88HSsjesw1Xdvghqd2c83fAMRB89YVwIHg+ba 21yB9pWYJWHOdXpEcRJFJu8fk4lHjvDXZ1i/sUP9qq76m899j5iQvriuTcCaCngmt2KT mks0hagSl0FuFMtPvEKszdkZzhZXGK/DyXFon/XbC7JS9KqarOf8rnE3r9tV/Ruz39fP +5pUd9t6rvpanYAoeafN9v49DMp3+ea1v4PL3I5B8SNtL4JPT2Mgf7Df3slqq3kfFCot shYPaaPjqeT7Nz4MK5HULut0pKRtV8o1EinB0TNcaGF62vYzPpBpwahcwxa/uTELZqwC JFfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e10-20020a17090ac20a00b00262f937bf93si1066725pjt.77.2023.10.04.01.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:11:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E765681D7712; Wed, 4 Oct 2023 01:11:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241639AbjJDILb convert rfc822-to-8bit (ORCPT + 99 others); Wed, 4 Oct 2023 04:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241613AbjJDILa (ORCPT ); Wed, 4 Oct 2023 04:11:30 -0400 Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01A4A6; Wed, 4 Oct 2023 01:11:27 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-59e77e4f707so22540467b3.0; Wed, 04 Oct 2023 01:11:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696407087; x=1697011887; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VNgqb3ogEHljK/s/zCJeiDzbGvte6UXqv8/D2qJ2ym4=; b=ZYK5m64MOnGA8YTAeV2tiORL9AdLx+4BXWrpEWgCPvGU1iFdKoTSHRV8jLvzlLSWLq LLfTGWFxXqh5vjm8fw69MPC0XJkLEI3Ig5V21BIdk3BA1T9CIs4VxwE9+UdyZCNpfi+A zs09hajQpWTwDVY+vdKZFqlDQJI3oYwR+yXBd9KtgOatUkapR1bMWi8P9p0eRNIlBrm8 Ea3pWSDExvuXZjnJub+dXDCS4NZzYNXrUtx/KUkoZebs3S9qAhnBeGIAk6l3zoVqMNzC LLOYWGj3Nh6QzABN3WXGquzF2o+sILLslqrptA5AwVFOvV7R2pg3zN/v76agdAm6Ae+F 1LYw== X-Gm-Message-State: AOJu0YwY5mCRbNBSyEGQpnYEUuoUK2nLzETetO/ssUue5KuB04T6GIQP BKgt0oiSkVXQwuJA2ak0/42A/2e7wIWPDA== X-Received: by 2002:a81:a008:0:b0:59f:5041:bedb with SMTP id x8-20020a81a008000000b0059f5041bedbmr1838913ywg.8.1696407086812; Wed, 04 Oct 2023 01:11:26 -0700 (PDT) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com. [209.85.128.179]) by smtp.gmail.com with ESMTPSA id a74-20020a0dd84d000000b005a20ab8a184sm995752ywe.31.2023.10.04.01.11.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 01:11:26 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-59e77e4f707so22540287b3.0; Wed, 04 Oct 2023 01:11:26 -0700 (PDT) X-Received: by 2002:a0d:d7cc:0:b0:584:4bbb:963b with SMTP id z195-20020a0dd7cc000000b005844bbb963bmr1795264ywd.15.1696407085921; Wed, 04 Oct 2023 01:11:25 -0700 (PDT) MIME-Version: 1.0 References: <20230929053915.1530607-1-claudiu.beznea@bp.renesas.com> <20230929053915.1530607-7-claudiu.beznea@bp.renesas.com> In-Reply-To: <20230929053915.1530607-7-claudiu.beznea@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 4 Oct 2023 10:11:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 06/28] clk: renesas: rzg2l: remove critical area To: Claudiu Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, magnus.damm@gmail.com, catalin.marinas@arm.com, will@kernel.org, quic_bjorande@quicinc.com, konrad.dybcio@linaro.org, arnd@arndb.de, neil.armstrong@linaro.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:11:41 -0700 (PDT) On Fri, Sep 29, 2023 at 7:39 AM Claudiu wrote: > From: Claudiu Beznea > > spinlock in rzg2l_mod_clock_endisable() is intended to protect the accesses > to hardware register. There is no need to protect the instructions that set > temporary variable which will be then written to register. With this only > one write to one clock register is executed thus locking/unlocking rmw_lock > is removed. > > Signed-off-by: Claudiu Beznea > --- > > Changes in v2: > - removed also the spinlock > - s/reduce/remove in patch title Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-clk-for-v6.7. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds