Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7421793ybi; Wed, 5 Jun 2019 17:41:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqGI9wWI99J2ITonIqXFxNJoQYEgDNVmLwLyleYdMvXqBclXwj0OY+JP1r5qPEYzLl5GTK X-Received: by 2002:a17:90a:65c2:: with SMTP id i2mr46760336pjs.54.1559781685197; Wed, 05 Jun 2019 17:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559781685; cv=none; d=google.com; s=arc-20160816; b=ElFf+Xwf53WiAYWMN3uiWk8nrEi9IZsEnK4BRaM2Gm/yFi5T00PQ4GUEZE3WIjoftV zSRdRdp+zYphBz3fsnfdOvNUX4l5kjPH+QT55//lifMIYWUVOL9O77IEZu87lGirG/Pu 9a1JFpEIV1ez9PvHlb6qZ9R8stJqBPJ5AzJSTdunUi044YhM9+Kf9bWexZqyvCoztxTH JiS/BlYrcHuSdrxk7NmsANMOeQNxdRgubwle6CJzx62egJ775tEnLmdBBZDIgjoUTOXy lxn68adYNCzZvfLh0PeQUcIwnSC9MycjkUFO873S60mM5YzCmgezU6UWUIE3bkXf0Gjt Gwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2j6AeMQyqlvFrN/cZ76T3pXgzcnOXpcF30PXkUvG5XQ=; b=WOJdk8f3zZilXi4rjWtBEsA4LCeLsb70mOve7bU5Jyt1GXvRjhhQsHkFlyXxj/MVw4 QBOXrz9XVtv77kTd5mRNVw4mGh5bpYC1qUdm/wVljAy3LgjO3v9+gdubC8O7Zg9LOrtn HrXsJEv8CVOLjr+kGU/CTztYTBi7WoXLAPMG1krIb0vvfnnfs5txdIyp3X9K7Z7/h9Nf rcgKyOHwbLZ/M/KVg3u53vG6eapXFc8iiy324eXvr6ePxa4chjkoUtvOTwnyk17GSbyc j2tmpw11zUpGSFB+OP8QN8VSRul4C8IvJ/hiydjh1Lm3n38lSdsXuXbaJxWdxH5uo0Kg 9cGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pD2wunXY; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si429738pgi.209.2019.06.05.17.41.07; Wed, 05 Jun 2019 17:41:25 -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=@linaro.org header.s=google header.b=pD2wunXY; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726608AbfFFAkE (ORCPT + 99 others); Wed, 5 Jun 2019 20:40:04 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38954 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbfFFAkD (ORCPT ); Wed, 5 Jun 2019 20:40:03 -0400 Received: by mail-pf1-f194.google.com with SMTP id j2so351612pfe.6 for ; Wed, 05 Jun 2019 17:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2j6AeMQyqlvFrN/cZ76T3pXgzcnOXpcF30PXkUvG5XQ=; b=pD2wunXYqvfYwPLkqvphd1Nzp5oBP1ZJMlmbllJSDRqtIDW6GMm+JLMRRA0rbZiS1C +9pX2xQxEuN9NhtiVlPu2Jxh6vHv5pnFnYTwBGb5uvtA1DL8+Rf4kviOf5xc77dpWKSB rf8bStUliSESYC80DHlCn8Zkpe6fr6yqjkblYLgaVy0mUYWGe2eSvbKU5FdYiCayUKmB IS2+/HgohoC/dtOAoPVklaNzTd/4lnl4tVjaA8ytHMG8vSWNF8tHI4lhaEMgn3r1eDai XQyeR/zl4UZGvJsyrPL5pR5yxascYYXBmP2ViQI/Xs2NIXa0Fz4whXJebVBrtj4cuJto 4/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2j6AeMQyqlvFrN/cZ76T3pXgzcnOXpcF30PXkUvG5XQ=; b=Mi91B/x7BMpmaXH4t8JhHsmP5TmoGuNARYRMkviVnp4NfRZbFXEBdugNczwexzX264 CFgVTvp5Dg1DF3vnwuoMLplXlPIScTo8PcnwttaGPBQjhCzA3+RoXhxqnwQbF8zlhEd5 plDVH+v5K+acDFarnQ9Gifiex9o2XRVM1pmlAlQkYwsky+pRdf4ch0+/+TgvgIEFCPsS x06B6CcfHl5unwKg8wkLFpO2OlLwDLo8FA5oK1jQGWKrFyMkxPOdasZ57qRjpV21LLra R+n/pPktInHCIwVUCEbGbyY0OnHrPsUlolbAP3NODP6hB8XvN/On6Xt7D04WdZr9ax6Z qqww== X-Gm-Message-State: APjAAAUmjSDOg8pUTlyHQG/szzSLvz4WrABqVWAk/l88cSu3QjQK6rHM 4HZlRT80DwigtcoDn/jUeOjoMA== X-Received: by 2002:a62:e511:: with SMTP id n17mr43614480pff.181.1559781602896; Wed, 05 Jun 2019 17:40:02 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v28sm89656pga.65.2019.06.05.17.40.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 17:40:02 -0700 (PDT) Date: Wed, 5 Jun 2019 17:39:59 -0700 From: Bjorn Andersson To: Avri Altman Cc: John Stultz , Andy Gross , Linus Walleij , Rob Herring , Mark Rutland , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , "linux-arm-msm@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , Linux Kernel Mailing List , "linux-scsi@vger.kernel.org" Subject: Re: [PATCH 0/3] (Qualcomm) UFS device reset support Message-ID: <20190606003959.GM4814@minitux> References: <20190604072001.9288-1-bjorn.andersson@linaro.org> <20190605060154.GJ22737@tuxbook-pro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05 Jun 02:32 PDT 2019, Avri Altman wrote: > > > > On Tue 04 Jun 22:50 PDT 2019, Avri Altman wrote: > > > > > Hi, > > > > > > > > > > > On Tue, Jun 4, 2019 at 12:22 AM Bjorn Andersson > > > > wrote: > > > > > > > > > > This series exposes the ufs_reset line as a gpio, adds support for ufshcd to > > > > > acquire and toggle this and then adds this to SDM845 MTP. > > > > > > > > > > Bjorn Andersson (3): > > > > > pinctrl: qcom: sdm845: Expose ufs_reset as gpio > > > > > scsi: ufs: Allow resetting the UFS device > > > > > arm64: dts: qcom: sdm845-mtp: Specify UFS device-reset GPIO > > > > > > > > Adding similar change as in sdm845-mtp to the not yet upstream > > > > blueline dts, I validated this allows my micron UFS pixel3 to boot. > > > > > > > > Tested-by: John Stultz > > > Maybe ufs_hba_variant_ops would be the proper place to add this? > > > > > > > Are you saying that these memories only need a reset when they are > > paired with the Qualcomm host controller? > ufs_hba_variant_ops is for vendors to implement their own vops, > and as you can see, many of them do. > Adding hw_reset to that template seems like the proper way > to do what you are doing. > Right, but the vops is operations related to the UFS controller, this property relates to the memory connected. E.g I have a Hynix memory and John have a Micron memory that needs this reset and my assumption is that these memories will need their RESET pin toggled regardless of which controller they are connected to. Regards, Bjorn