From patchwork Thu Jun 6 01:02:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 165936 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8057517ili; Wed, 5 Jun 2019 18:02:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOmTTZ7ACld9DqH+qYZumGeRWM1ON0p2SMHft8R+fjpSHPXLyjYZYkoyEGojjwaSy3483k X-Received: by 2002:a17:902:9006:: with SMTP id a6mr42935781plp.305.1559782975145; Wed, 05 Jun 2019 18:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559782975; cv=none; d=google.com; s=arc-20160816; b=DOt4jgWWKun4Do7Uedmyli9pbCGEhJlx4uYVwa7Ri4CMj1YotYjuzTZMfJ00zvShx8 oZ/lLq2EgY8ZcvzMGCej6iObhjjtdqbV3va6baKnEWRb5THAWbfRsHnthn4UMzjs3TuP MaSrMqyOyfsQpcG44LKXQirAWd9wUvq0r9dZQGiLQFftg0283I6lHl3hZzrf3HZhgcNA Vh3MS5LyQyFoOhA8XijSb2CtW6vQWQi3zQb/ANbSPY09GuajTosM12qAj71PYDg5M93y vZhW3nmiMroxPfkv3QzOPjkdMcR6gXb15C6drEEFeVOXXRTjEsxfkalVE61erV3iIXcT CZbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=A3e4mWtDvoL8bXfJvxffe+5ZazlEmjOb3McggPS9Avs=; b=TB4fwueof15/TCoTYztdWPUqviKFlsl6v46ew59VrI+TXSosD0sy3S7KUg/aqI7XuI bg7NBT7njdjOBNJwA/Tu+ECSZpsjY+TP2ZGZPJv14bFWz6cJHjvDSe3gh2mqsTZfZF83 c9NUzibuQS9QT9aLSZDuSxXn1++21r4/EDVACUGsIqfYEWae8j0uGo6ZHZJbqQSutufV beOk1mubeFhsG3HckHeFXnEivgUD3rJ5gLY2TbqiHIgGDIFL3ULJPXIJti4jQiy9gz17 ZpL0NKYK06or1fVL3/y7ny9nteycIqqv3wk+5bYAzPczl1UlqxfaItZoth3JjpHgkpPc AqFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rSnkgkj7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 t6si165761plr.245.2019.06.05.18.02.54; Wed, 05 Jun 2019 18:02:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=rSnkgkj7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726608AbfFFBCy (ORCPT + 8 others); Wed, 5 Jun 2019 21:02:54 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43160 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbfFFBCx (ORCPT ); Wed, 5 Jun 2019 21:02:53 -0400 Received: by mail-pf1-f195.google.com with SMTP id i189so368965pfg.10 for ; Wed, 05 Jun 2019 18:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=A3e4mWtDvoL8bXfJvxffe+5ZazlEmjOb3McggPS9Avs=; b=rSnkgkj7ns3K16zuZcdEi6cb801U98fio5fbEzP2UdnS/Nm4wTOFB6zXqdsagDI7z4 LKdZInQq92yZmswl5tfO9W+Ot7TtGbvsHYYvsRNld4K+vceHus2drvCDK5sr/EnAap48 g4GtCQaKr8sOBQbiOUIwaEmhT8dw6tAFE5Zl9bU2jZODV/MWMw+XqU43kP4sAhggQXnu HzsRG1Eeqy3AAIaKEKkIz5DjBc6N2VPIPFjO2rs+H4cVjaXNAHwxbteF1LHbXD0M83I9 1M9XmhZ/Nwc3zlJpnE1z/3I/eq1YZgL/j+N3qg5CNtg2ehMuN5/Jjnrtr3sIdmpa+9zE /G2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A3e4mWtDvoL8bXfJvxffe+5ZazlEmjOb3McggPS9Avs=; b=ArFXxZeNjhiHQ1JBFrkj0dLk+Zz32MRynce2RI/9zDYMRiLscZaYxMq6rjDNhpQVNT VVU1hzZaZkt0oaLNDngwoKhXbHflFTENFBkUXfCPTNImw5ZcbfY4K0pbWzjJ5UBiDauu A9TBhtb0x4avahhtZ7VA9o97NNF8cNgmb4F+27tF7gB1s6cPquM29cJ034W8eOgy3vZi 3SRI+eTidgLAri/QgV5cB+DUqxzqryVpT0G8E+qgH0GOdmE5GH0OSv7DY60dTIVGrT9k 2TsgrOsBK/s/rDA5pa/O1Tm1mpVnNCpemHmYCe5Khj+RIuXvYW+WEs8QCMZJR8xdxXUC 5sog== X-Gm-Message-State: APjAAAXG5PtMzjjjTtv1JUiP5jay3LnKQ8N9Q7v1udzCZ0+5Yg89KTGe W35UdrKyGmyIAAAXNpltJ8v5Vw== X-Received: by 2002:a63:eb50:: with SMTP id b16mr711499pgk.150.1559782972862; Wed, 05 Jun 2019 18:02:52 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 144sm170856pfy.54.2019.06.05.18.02.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 18:02:52 -0700 (PDT) From: Bjorn Andersson Cc: Andy Gross , Linus Walleij , Rob Herring , Mark Rutland , Alim Akhtar , Avri Altman , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Evan Green , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH v2 0/3] (Qualcomm) UFS device reset support Date: Wed, 5 Jun 2019 18:02:46 -0700 Message-Id: <20190606010249.3538-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 To: unlisted-recipients:; (no To-header on input) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 .../bindings/pinctrl/qcom,sdm845-pinctrl.txt | 2 +- .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 2 + arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 2 + drivers/pinctrl/qcom/pinctrl-sdm845.c | 12 ++--- drivers/scsi/ufs/ufshcd.c | 44 +++++++++++++++++++ drivers/scsi/ufs/ufshcd.h | 4 ++ 6 files changed, 59 insertions(+), 7 deletions(-) -- 2.18.0