Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2763103rwd; Sun, 28 May 2023 23:57:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5DoLCmVW5yXt/sTgFcQTsP+cloWipPGngostyXwvXgwPr5rPFgFQm0WllGh/lnk4tT4XV/ X-Received: by 2002:a17:90a:1784:b0:252:8698:d03b with SMTP id q4-20020a17090a178400b002528698d03bmr9320138pja.14.1685343475407; Sun, 28 May 2023 23:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685343475; cv=none; d=google.com; s=arc-20160816; b=JzzVC1BJsjnqf2yc4U2QhFQMzcHEG0kLTDF7UV8iof6hAvzYuUiXFDutNKFFDsxfU1 PJESejiuLVWqn3MXhuwJBH0Dd/remI657PnQ9V9dPvYPKdM3uRVrbxBwvmUnc2op2jX+ kcQ9WqqDNd61u0Dmc2R6CyiF4aPgbeIb74ZjBGZyT6nRQyn3xgGqj5bTqgp3xQ9mXz98 8YKObMdKAiLcSx8Qvk9VSm5q6NkE0kWesUOygA+aY/IEP1IjfSyyOXlP5USL4/1xzTeP c2ZhDsft36686Wp0woa90Gd3NW+6t7Gy7xYhB0H8/38E3sr8jg9HX6EG0Nq5ysIXOJSP +D/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=VR+kVlKLc8IAuxLf23vn9x4v4UULsl+MNo1nf9DaQeI=; b=zDljOZEf5psq2pqhfbT1VQCAyly5UzIOASxIBD1bZq32dv8dGsyfquXXjFipujBAl7 cM2uBZe2hl7gHG/9CA0KFImbaeFUKWH8lNsQPK6EFgzBNMgJ9QDjj1xwvgpBiRkt8T9D 4HMDOD0AGvQ1+kwIVuW+gqEnPjiSIo1UOWy6Y7k9ZCb0h6Nr855uTTq7BENdhGCZ11zQ kWUZgjfaxBZS+AzLP0xGh98TKF+re5UEt6/z7Zg72e2tTpCke9zOm8iPqbhI1OGau2zq bQ8B1TwbhOMaqEUDsOrNprOGL1PYKM1sJKoXJNrRDjKN7JW2V9k+SJwUfMMnjQgAccR6 /UKw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi5-20020a17090b1e4500b002535e5e607asi9935723pjb.150.2023.05.28.23.57.43; Sun, 28 May 2023 23:57:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231578AbjE2Gp1 (ORCPT + 99 others); Mon, 29 May 2023 02:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231745AbjE2GpE (ORCPT ); Mon, 29 May 2023 02:45:04 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1164F90; Sun, 28 May 2023 23:45:03 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id A62D380C4; Mon, 29 May 2023 14:45:01 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 29 May 2023 14:45:01 +0800 Received: from [192.168.120.57] (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 29 May 2023 14:45:01 +0800 Message-ID: <042c560d-1f36-8e97-3796-7423245592f4@starfivetech.com> Date: Mon, 29 May 2023 14:44:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 2/3] spi: cadence-quadspi: Add clock configuration for StarFive JH7110 QSPI Content-Language: en-US To: Mark Brown CC: , , , , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , Ziv Xu References: <20230526062529.46747-1-william.qiu@starfivetech.com> <20230526062529.46747-3-william.qiu@starfivetech.com> From: William Qiu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 2023/5/26 23:36, Mark Brown wrote: > On Fri, May 26, 2023 at 02:25:28PM +0800, William Qiu wrote: > >> if (of_device_is_compatible(pdev->dev.of_node, "starfive,jh7110-qspi")) { >> + qspi_ahb = devm_clk_get(dev, "qspi-ahb"); >> + if (IS_ERR(qspi_ahb)) { >> + dev_err(dev, "Cannot claim QSPI_AHB clock.\n"); >> + ret = PTR_ERR(qspi_ahb); >> + return ret; >> + } >> + >> + ret = clk_prepare_enable(qspi_ahb); >> + if (ret) { >> + dev_err(dev, "Cannot enable QSPI AHB clock.\n"); >> + goto probe_clk_failed; >> + } > > Nothing ever disables or unprepares this clock as far as I can tell? > Perhaps also consider using the clk_bulk_ APIs. I will add in next version. Thanks for taking time to review this patch series and give useful suggestions. Best regards, William