Received: by 10.213.65.68 with SMTP id h4csp396337imn; Wed, 28 Mar 2018 05:51:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49wVzMflS5Yr/diPfTJ8Lh4gXuY/83DzSbvkX3anQZNE/oFKtcfH9yNT+NeWuNUcf9y8dir X-Received: by 2002:a17:902:b497:: with SMTP id y23-v6mr2403146plr.25.1522241484869; Wed, 28 Mar 2018 05:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522241484; cv=none; d=google.com; s=arc-20160816; b=c7sRTKAsIR+RYHXj03ft56rAohMQo0YyQJydj8Ac7Fgmw6C8tkok+i870ZThSC8U+A AMRNLtvuVtJ3GPhr5u45z0t0+i0IgIifNUWmPzau+Cn1mGEyj6ooEtZpYhs1DAY4OErS 1CO3qXv0GA+nwZJnBgYQeOlnyQMeyAxBOtmDZ6B/0yriEN0UtbljaYAZaSjpz36+JFO1 myb6SUGZRW4bSsOQyF96TWeWAYag4VpS8r/q4743qPDw1xt+wkflshrMoNqfW57zTc4j vhMAXM0z5mtHf66fQMT5wFjvIzxjfCMcX2oAone58vlU27mcHi7kaHh6jRaDOD+5cxmQ XUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=WDRM2ONJ0XT1iqG43efX2h574eqxqrHBzrR27liLKrA=; b=czuSK1pjWcBud5C2XMeDOGT5XvWKr5iJGixOg/fStEHNLVV/v4HhVwPzp8QHmcrc9t nkTvtcCuvNrLePNg6tgVpBgGd1wS46naM0lVg6SHE+71Dx1HbvRP+mO9rBwmhhGXpp5q QrY3eOBSQ8nSUfu5ZU5vx14G/7E9f8C4SfdCiKjFf8t2R5li7cCW55qni6oIdxwjIfX7 ft3y8j9rs9laAq+u4OBEky/3q6ghAP/uj6Kq99sVjUAdvHIROoAC1JHX8FYLqlwOu2bU f5xWIL+APMJ42Wa/CN3zrypa2BSbDqO7ojENcfZJmOLZbWMufzCzhKMGcHPuUdW+eaYb Jcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IhDqJK9i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si3492431plr.182.2018.03.28.05.51.10; Wed, 28 Mar 2018 05:51:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IhDqJK9i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752738AbeC1Mtv (ORCPT + 99 others); Wed, 28 Mar 2018 08:49:51 -0400 Received: from mail-qt0-f173.google.com ([209.85.216.173]:36829 "EHLO mail-qt0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159AbeC1Mts (ORCPT ); Wed, 28 Mar 2018 08:49:48 -0400 Received: by mail-qt0-f173.google.com with SMTP id f16so2378966qth.3; Wed, 28 Mar 2018 05:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=WDRM2ONJ0XT1iqG43efX2h574eqxqrHBzrR27liLKrA=; b=IhDqJK9i9EfmojyCImoRhiTtPlHA2FMd4IYEy0J3pgQYc2ViWhz77jZ6TVpaJAE36o A2z0ljHcqT1wLcM6qKajFBJGUQCTjLQzZantSA2vejIsLp0AjPbGOJSjUqPyI7PrYyZg GXw5fNdnyC4Ks21/kcRaX8Bs7cZVdID434SZRVz+1uLsI0TCwot/s68KZddBBCrOzvfb IYPt4dDRAiwYr8w4zM66Gmh6+mBwbIgJOqYn1Oas7bbf/s7GwDfts7qnC9GyoTStlBbR 54g/gbS2eVYFA1KwrnsCY3jdtwKwJbATnCOOQhCJR3gglSga9/RUTz4aUPOZwc57ndXA DT5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=WDRM2ONJ0XT1iqG43efX2h574eqxqrHBzrR27liLKrA=; b=ktP3bibVhyQHEzjL6J7+XBsB8hYnde8VWK4RPO5fO3/jFzVlmYAXCiXLvGt8R8haGT wIpHtU/FFT6FYL47vaJAG02/vpHFgSiup7LzXYs+wgp93UQMKO6H8VUTeFeMkCAb6JW4 d2f920VOYARyiE4zedMBzFz/EJQ/+Cam0mOJ4e1QzB69ixLy7vS1BMRyKDPtA93AdbeO CRe0pRhI/ZyfwYdk1Fc/RGnb3LxmwN410+ve3+DM3xqoonFKVU6JTN+Foiad3qglJ7D+ WVTYRLQJPuKjiR0hhujEphxjL0PurV3ELp4/wTcp//OCIdjtDZNjgD/JUjtEq2njLImx uEHw== X-Gm-Message-State: AElRT7GEPDouwhakf484NFgT4vjRUJG2QxXReEfI9xTFMWo6Cc5+Za9p GgihIdz2AgDtQfzqdvagv7AezQvrdyt57bucJKQ= X-Received: by 10.200.47.26 with SMTP id j26mr4945239qta.185.1522241387745; Wed, 28 Mar 2018 05:49:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Wed, 28 Mar 2018 05:49:46 -0700 (PDT) In-Reply-To: <1699CE87DE933F49876AD744B5DC140FA588AD@DGGEMM506-MBS.china.huawei.com> References: <20180213101412.5717-1-liwei213@huawei.com> <20180213101412.5717-3-liwei213@huawei.com> <1699CE87DE933F49876AD744B5DC140FA584ED@DGGEMM506-MBS.china.huawei.com> <1699CE87DE933F49876AD744B5DC140FA58798@DGGEMM506-MBS.china.huawei.com> <1699CE87DE933F49876AD744B5DC140FA588AD@DGGEMM506-MBS.china.huawei.com> From: Arnd Bergmann Date: Wed, 28 Mar 2018 14:49:46 +0200 X-Google-Sender-Auth: 022j32WLUGLAeWR0VR_T7mM0EJE Message-ID: Subject: =?UTF-8?B?UmU6IOetlOWkjTog562U5aSNOiDnrZTlpI06IFtQQVRDSCB2OCAyLzVdIGR0LWJpbmRpbg==?= =?UTF-8?B?Z3M6IHNjc2k6IHVmczogYWRkIGRvY3VtZW50IGZvciBoaXNpLXVmcw==?= To: "liwei (CM)" Cc: Rob Herring , Mark Rutland , "xuwei (O)" , Catalin Marinas , Will Deacon , Vinayak Holikatti , "James E.J. Bottomley" , "Martin K. Petersen" , Kevin Hilman , Gregory CLEMENT , Thomas Petazzoni , Masahiro Yamada , Riku Voipio , Thierry Reding , Krzysztof Kozlowski , Eric Anholt , DTML , Linux Kernel Mailing List , Linux ARM , linux-scsi , zangleigang , Gengjianfeng , Guodong Xu , Zhangfei Gao , "Fengbaopeng (kevin, Kirin Solution Dept)" , Yaniv Gardi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 8:15 AM, liwei (CM) wrote: > Hi, Arnd > > At present our ufs module mainly has four clocks from the outside: > hclk_ufs: main clock of ufs controller ,freq is 207.5MHz > cfg_phy_clk: configuration clock of MPHY, freq is 51.875MHz > ref_phy_clk: reference clock of MPHY from PMU, freq is 19.2MHz > ref_io_clk: reference clock for the external interface to the device, freq is 19.2MHz > > We control two clocks "ref_io_clk" and "cfg_phy_clk" in the driver because the other > two are controlled by main clock module and pmu. I'm not completely sure what you mean with "control" here. Do you mean setting the rate and disabling them during runtime power management? What does it mean for the clock to be controlled by teh "main clock module and pmu"? > for this patch, cfg_phy_clk corresponds to "phy_clk", ref_io_clk corresponds to "ref_clk". I'm not sure I understand the difference between ref_phy_clk and ref_io_clk, but it sounds like we should give both of those names in the ufs-platform binding. Your hclk_ufs would appear to correspond to what qualcomm calls core_clk, so maybe use that name as well. cfg_phy_clk seems to be something that qcom would not have, but it's also generic enough to list it in the common binding. > So the clks in the patch you give appear to be unsuitable for describing this .And the following clks of qcom are internal clock? > We didn't describe or pay attention to the clock inside the ufs module. > > PHY to controller symbol synchronization clocks: > "rx_lane0_sync_clk" - RX Lane 0 > "rx_lane1_sync_clk" - RX Lane 1 > "tx_lane0_sync_clk" - TX Lane 0 > "tx_lane1_sync_clk" - TX Lane 1 Right, let's leave those for the qcom private binding. Arnd