Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp81215rwo; Tue, 1 Aug 2023 13:17:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEioQ/o+MHcBwqzE1kNB71VshLdrZ2dUHYVbUxb8vDomyucPgxbUy7cc/+PMpmPegsWAC/D X-Received: by 2002:a17:902:e546:b0:1b7:f64b:379b with SMTP id n6-20020a170902e54600b001b7f64b379bmr16433282plf.17.1690921028191; Tue, 01 Aug 2023 13:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690921028; cv=none; d=google.com; s=arc-20160816; b=ZXZcPOQLCfAAHDbUw0WFjqk7GkmUHBQe6NiiVxR0xhyKsCthQerxLpEwh7EQWD3yk4 lIVZuNlerkVkzQuy8RiIGF22Ar+7pWWhpCbRRTTD4UffI95PxXTp4iWb7UhQ19FvayJw 2UX1SApGF1+S6qRt6kqHZ9ztCae0+v5/Nk0zn/ApejJX/vb7iOgT9GCSGzU8vxeuuA1Z qKrg2MBsNBDR1xf7iFX52Tt7o183UROSTJEIkTpxCyc1Xr1m45k1E6Sl9ibXdiZzJogs xKVTo53tAEdBnSFcwN64G6NygpaemnqW73UurYdPm/MQ8algYHPmBtdIahUgeOqjEC8A 2pVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=qowmyx7qyYO1UJKvfD1fnYIELO95ZZkMKXJeQVTxmmQ=; fh=G8TwHEa8eHuCtUP2Hi9boVWP8ZCFe7N/mCbFiI8G16w=; b=d88OIldYJ5ETxQ51rIlI6G4ftJRkNYdU0SNDlFvZhCknksdn4xZFar3mrzV93t4sUt hz2BOwDxnRovOBs3tKmv3v+WyErwsBPGsIiH++NuomlqMkad2WKBb9KGVramsoHf9Vqg TU5imCPXBHEQpEPGiLTRBBqs00cvhkfF5AQc13lzv95VnDuE6qKkLb2XufwOqIiPQIK2 ai1bSFyCCAey2rrTsum+P245F0eQEn0Gr2/pSYRnKwXUYIfYRm55hfzmGuEIosLErgd8 J49uxBv8lvY8GLPN2Ihg8kT1Wfuc9neGEOEeEEWUOn4KWQFpKeMb5ckBsIbgbwLQEFZT ckyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UTZT4d39; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg14-20020a170903060e00b001bbfbe6bf3esi5783751plb.504.2023.08.01.13.16.55; Tue, 01 Aug 2023 13:17: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=@kernel.org header.s=k20201202 header.b=UTZT4d39; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbjHATSq (ORCPT + 99 others); Tue, 1 Aug 2023 15:18:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjHATSp (ORCPT ); Tue, 1 Aug 2023 15:18:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74C811BF5; Tue, 1 Aug 2023 12:18:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E512B616BF; Tue, 1 Aug 2023 19:18:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 341FAC433C8; Tue, 1 Aug 2023 19:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690917523; bh=qowmyx7qyYO1UJKvfD1fnYIELO95ZZkMKXJeQVTxmmQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=UTZT4d393BEYbKTTMdUCo2FH8HZw+gFUG0nZWQmn2PK2+pl0pfsUbCiiPTT2JOsnA YcyphCZ6g0sol5ThGEMTutWaV0WL9XeT/MibgPc1kVtyhmf4SIVmqSMw8xE7CEDwTM bchfPxwVWA8cW4NJr4C5SHx21PGSXYb9VrhOtWme46vgJU9YAhKNvNwp6L9EndiirM 1iJiGDAWlfAku5EWnMJDSy9ASYz05YpgufkDYSKYmUsCxotdoSW6HMDsDgsENYE0Qh +Fj8OrbidYbTNOraM4o96K7cy7pJV6IpfesUjsAUVD+VzXTjJn4GJYcY+dbkkERdgN 2i6W6Ogocc4SA== Message-ID: <02abeb64fb360245791b467b371f1491.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230801085352.22873-2-quic_luoj@quicinc.com> References: <20230801085352.22873-1-quic_luoj@quicinc.com> <20230801085352.22873-2-quic_luoj@quicinc.com> Subject: Re: [PATCH 1/3] clk: Add the flag CLK_ENABLE_MUTEX_LOCK of enabling clock From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com, Luo Jie To: Luo Jie , agross@kernel.org, andersson@kernel.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org Date: Tue, 01 Aug 2023 12:18:40 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Quoting Luo Jie (2023-08-01 01:53:50) > Support the clock controller where the HW register is > accessed by MDIO bus, the spin lock can't be used because > of sleep during the MDIO operation. >=20 > Add the flag CLK_ENABLE_MUTEX_LOCK to hint clock framework > to use mutex lock instead of the spin lock. Why can't you enable the MDIO bus clk in .prepare()?