Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4602221img; Tue, 26 Mar 2019 12:42:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTK2AMR7NoMpawtiZNzVRIIaDBqxQn9d88m65n2FBz0OKeYPVZOBQQKHQcgKargJlSg+PU X-Received: by 2002:a17:902:765:: with SMTP id 92mr31828108pli.95.1553629357661; Tue, 26 Mar 2019 12:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553629357; cv=none; d=google.com; s=arc-20160816; b=GBBNXNWGV3zICiBZhDWFE33FeBUeD0/h/jPnwxIOmJAUAaug2puLb0tCY0C4pQZvLX fMBuohxhwWrscRZV1cQN8cNoupJ2haswbzvCeEQ2H90GmTUQf7NHpLOjCbzPNy2tExDi bv726qWKhLIZibIqnaS2gjr73qDzK1XBIVXsJvjKEsHgJti3WmRm/QWxNmjivucu9oo9 6UtgJBFBSQ7aciLTHaX8XeWPDw7XTcFWEG5XX6uj7yUIQpbF86w8GZmEPU/74qHtYT0P WlW9kYBusO1htyAtZsrbxdeJtvXJ4QgqBHH/2d3h6QCMZ2fqs+W72fBSCSLH8C5MrfIV zMcw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=ryBCGv2xEBNEXU2aXzO4ICzRrxjpGeSrWsqtu4p1C28=; b=WFnKBME9VdgNqaKONDzRKyYN8xWKIqoLgHlgvwF0rdAKkGDSaXNFLU4MnHIL4PUfsU 8+N26JQ+B0pGvZ3xybFa45BIsqupbk1WPTFQZuzO9gUP9kBIpsXbk7iayyjSTHJdhjq9 TbZC6fPcMkn8SnoJWmmZTydeXrJiJfj4XgCxgKbWiCU4oSKDCxCnAViGCbugZ+x4K/Xb 45NCd+bLE1DvXOy4B8LZ/L8AreJe7DHCpoWVZQynCVce3Ki4oPhCGdpm6qDYyWjsKsFZ P6zsJMhU7F98MkHww7ksH4xA5YKOu/uv5IcTxcq90RfK1S/kozWeRc6kTkvaco8EkmaY TeTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DHQUUckm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h20si15789251pgv.388.2019.03.26.12.42.14; Tue, 26 Mar 2019 12:42:37 -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=pass header.i=@chromium.org header.s=google header.b=DHQUUckm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732513AbfCZTju (ORCPT + 99 others); Tue, 26 Mar 2019 15:39:50 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44249 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732252AbfCZTjs (ORCPT ); Tue, 26 Mar 2019 15:39:48 -0400 Received: by mail-lj1-f196.google.com with SMTP id h16so7760665ljg.11 for ; Tue, 26 Mar 2019 12:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ryBCGv2xEBNEXU2aXzO4ICzRrxjpGeSrWsqtu4p1C28=; b=DHQUUckmM6C45xWtksRRcF6DidaWNCeE2xk9tNguwq0DY/ceSsHGIRUrnQMjgs9sI/ iuhzH88YVBADhmvapBfhwZHw400mz6KoZHDFXYjum0W+g4+UBji1W8Upy4M1LjD2TljH J8RH3Ziv+Z+oHdi43mHvT+HFL/AiZWMbX6S30= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ryBCGv2xEBNEXU2aXzO4ICzRrxjpGeSrWsqtu4p1C28=; b=ZDJ4ib59WW0twjzl3GL4fX0D6vBq6SJIFYGG4WdSbtwazYYwkNLLidpdOtI7HXaKv4 0QH+CdApMURk+kPcDAx5S12qnFhO8bZmijuFkv8DSAmBCaju2xbFVmT6+9a4NFAIGh7S OpSg2DWCU2APCCjQX/ExHrvgAHtrOALj57ULN+Lnh14vC4fYj7gV5BtoPnEM9zBY4ZKn KSa6mVbx/94Zy4tcQH0+aiY78pwUswhBT0MhfelIT+A2fRGYNXX3BoNQNsnOt/wqTG1i KWfF75xrjKQWLyhOgAJCw0mkt1HcoScXIbkBrsNMqRCF7ySEoKbgvy8q2seokk/aPm30 lLYw== X-Gm-Message-State: APjAAAW5k3gEwafC41B1tVISlEetGCEyhu0V2VA+gDDUJEORRB6RkxMo 5Vuoukl4OG4wAACZzy24tTsjGXLmIsk= X-Received: by 2002:a2e:309:: with SMTP id 9mr5795588ljd.114.1553629186274; Tue, 26 Mar 2019 12:39:46 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id x2sm3112495lfg.59.2019.03.26.12.39.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 12:39:45 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id f23so12263627ljc.0 for ; Tue, 26 Mar 2019 12:39:45 -0700 (PDT) X-Received: by 2002:a2e:834d:: with SMTP id l13mr5831798ljh.97.1553629184927; Tue, 26 Mar 2019 12:39:44 -0700 (PDT) MIME-Version: 1.0 References: <20190326170518.157317-1-evgreen@chromium.org> <71cde29a-aa10-0889-9581-8e961670bc45@free.fr> In-Reply-To: <71cde29a-aa10-0889-9581-8e961670bc45@free.fr> From: Evan Green Date: Tue, 26 Mar 2019 12:39:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: msm8998: Add UFS phy reset To: Marc Gonzalez Cc: Andy Gross , MSM , LKML , Rob Herring , David Brown , Mark Rutland 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 26, 2019 at 10:14 AM Marc Gonzalez wrote: > > On 26/03/2019 18:05, Evan Green wrote: > > > With the new refactoring at [1], the UFS phy now controls its own > > destiny in toggling the phy reset bit within the UFS host controller. > > Add the DT pieces needed to 1) expose the reset controller from the > > HC, and 2) use it from the PHY. This series is based atop linux-next > > plus Marc's series at [2]. > > > > Signed-off-by: Evan Green > > > > [1] https://lore.kernel.org/lkml/20190321171800.104681-1-evgreen@chromium.org/ > > [2] https://lore.kernel.org/lkml/43768d77-80b7-9cdc-b6e0-08ec4a026c21@free.fr/ > > > > --- > > I haven't tested this. Marc, I'm hoping you'll test this out and hijack this > > patch if it needs any fixups. > > > > arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi > > index 3d0aeb3211de..d59a2c5fe83a 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi > > @@ -990,6 +990,7 @@ > > interrupts = ; > > phys = <&ufsphy_lanes>; > > phy-names = "ufsphy"; > > + #reset-cells = <1>; > > lanes-per-direction = <2>; > > power-domains = <&gcc UFS_GDSC>; > > > > @@ -1039,6 +1040,7 @@ > > <&gcc GCC_UFS_CLKREF_CLK>, > > <&gcc GCC_UFS_PHY_AUX_CLK>; > > > > + resets = <&ufshc 0>; > > ufsphy_lanes: lanes@1da7400 { > > reg = <0x01da7400 0x128>, > > <0x01da7600 0x1fc>, > > > > If it's OK with you, I plan to test this patch tomorrow, and simply squash it > into my UFS DT submission. Sounds good, go ahead.