Received: by 10.192.165.156 with SMTP id m28csp24382imm; Wed, 18 Apr 2018 16:33:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx49sk1g/31J3xS0gfzcDun/xe50JotRgngFMw1XkpIQLPk1SkI/vIS1tM+pDE6UsYn0FxSow X-Received: by 10.101.92.199 with SMTP id b7mr3174229pgt.138.1524094426504; Wed, 18 Apr 2018 16:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524094426; cv=none; d=google.com; s=arc-20160816; b=AW8ISoDJ/28QdZTuPp/fwp85HSdautOZzkhR+hu05jJzWSR7poQR6GjD/qqV/Opyrc I12h4jC/MY7Z78OWDg8At9NRMCnEkmSZKggW+nkumDrEhAVtIRlYKiuMkBUiaqiz2PaV sFTJvry7xW5UbZgLNy1jGnaGPhWeSRVxXanFrC8FFN/+R7edj17SU/T2JFeD0aExN1tt WLSZiQ2E2fN8nPMC4MQVtkLssO9ryQZU4r10hKMtjK3mJCZJETD1HnMhKqgvatbqCUCT KfO0lcoD/FLfsWrmbvCK4hZ9tKZx5YA5+F+E92rZQgBRDM6Sm833QIrIdXo+9+tv6jut StCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dmarc-filter:arc-authentication-results; bh=4lv65ck6+Yk+Gt2G2FMAQg7csI9XTtaTlWjePKLBRo4=; b=whmaggJEbGcA7K8V5AwH0jurim7Kvc03FPxdX5rXFAToNfIdbJ9owWVBIX30yNHSk8 6HrlPNYl15D6w2Qa1s3FQVrHnPT6x03uy03gHu5vNh14FjkqxOHUibPdUrtwyRA+yK2E 3EkbyFPu/bxbtlPS2BFyOU9lhL6Z5Oh6vj4TmRa+RKQMCeQ6an4c6eRJBCSbMqon4H+X uKGH+SHbmvIiQbR5/uKCzo9QjB7H51C2hWgMHMhPzY+g2cnMQlAwSSKYehlAeEam7CIR YBizxinYyU8MCY4TDmYZmG1CKMdBrHO+70n4+a/Jc1KaalZmxkR7OcxRGbLG0kQdoEeL U4jQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x11si1826112pgr.147.2018.04.18.16.33.31; Wed, 18 Apr 2018 16:33:46 -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; 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 S1753324AbeDRXbs convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Apr 2018 19:31:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:51826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbeDRXbr (ORCPT ); Wed, 18 Apr 2018 19:31:47 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 647B120853; Wed, 18 Apr 2018 23:31:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 647B120853 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sboyd@kernel.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Amit Nischal , Manu Gautam From: Stephen Boyd In-Reply-To: <23b9ca5a-b708-f142-9906-3f3eadd8c26a@codeaurora.org> Cc: Michael Turquette , Stephen Boyd , Andy Gross , David Brown , Rajendra Nayak , Odelu Kukatla , Taniya Das , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Doug Anderson References: <1522761761-15262-1-git-send-email-anischal@codeaurora.org> <1522761761-15262-4-git-send-email-anischal@codeaurora.org> <152393708031.51482.15076025836699678476@swboyd.mtv.corp.google.com> <23b9ca5a-b708-f142-9906-3f3eadd8c26a@codeaurora.org> Message-ID: <152409430571.51482.3690471838803727777@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SDM845 Date: Wed, 18 Apr 2018 16:31:45 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Manu Gautam (2018-04-18 09:38:41) > Hi Amit, > > > On 4/18/2018 6:33 PM, Amit Nischal wrote: > >>> +       /* Disable the GPLL0 active input to MMSS and GPU via MISC registers */ > >>> +       regmap_update_bits(regmap, 0x09ffc, 0x3, 0x3); > >>> +       regmap_update_bits(regmap, 0x71028, 0x3, 0x3); > >> > >> I think we'll have to throw in the pipe clk branch stuff in here too? > >> And then drop the pipe clks from the driver? > > > > All the USB pipe clocks would be taken care. The PCIE pipe branch > > clocks would have to be explicitly disabled so as to retain the > > memory logic. Otherwise, it would lead to memory corruption in case > > the external source is directly disabled without disabling the branch clock. > > PHY driver is same for both USB and PCIE and both PHYs use pipe_clk. > If there is indeed some limitation and pipe_clk cant be left enabled > always then I will suggest to not change pipe_clk handling for USB as well. > Right. This is concerning if we have a half way solution. Just to clarify my understanding, are you saying that the pcie pipe clks are also tied to the memory logic and so toggling them on/off is used to reset the memories inside the phy? Or the memories inside the controller? What is the pipe clk clocking in these cases?