Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1287249ybl; Wed, 28 Aug 2019 12:19:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/xi/d3JdprUMoN7MZzWj6gcThZhXp+dDMq8CBNa12ikz4LJcs/LQvrkrcL5fiJ3Pia3jS X-Received: by 2002:a63:e901:: with SMTP id i1mr4706587pgh.451.1567019976710; Wed, 28 Aug 2019 12:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567019976; cv=none; d=google.com; s=arc-20160816; b=E9Ap6K7ekR2hHHVfmXtwMow6Y1viOu+pVFUh3/PYfvWVFEc4yO8Q1kS14JvmqWppnK AeMcEAuXjGqmlPgcTViFTx93dtpYzhk2qJRvlVX6R+/D8RiobkZzb8xg0mnRgjVhU3AK x3ZcMZgIGC7reNwQahv0iqqnkkV79Jp/mhclhh9M7fG8vDVn1D4dcPfAqDz7As+p/80d 5T//pWFfCFOBU0se2RrPmRXUKfR/5KXLC9CgkMel7N+SgUsSRUxsYRIbKRSJSevRYKIT 4KTQOQ1azaZP4M7G44LL49LdAgQ0JV5wHiPolD0/zDErG12lmU2eXWzuW6RZUN5eCSlm QbWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=vHp+AlJWbxwSEhvcybAlK/zvFEbIb+ho63MMWY45s5U=; b=U5LrGcUABBA4IuNNsmXbp95e9zQF+hpnCXuJFGKhk5NexSyt0hNo7t5iwyFxN/rZVQ apKG8FiMns8ywOgHHmP0d+PEbjHsL3i9qx76thcNA/xgn5IBgW2cynX29k2du4ZwPJ2D amq65EIdx6xMvGVKvx6N2n3Xd3uAtvza8ik9lz98/gvGjGTi0W9Om2X5X6CrpYH08Y2C 2b/S/IqpGVKR5wZV016HiguXkXKbVQn50JxX2/WryRLKuqXDp65LwdmUyhkiwPjia10X qlWJezX4WnwxYTnZzSggvHbYoj60f/VQvhsRQU/WxOH1vhDazJY2QxEzS+f8sZPSvdTH mY3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OXzfzF8S; 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 a65si83276pfb.153.2019.08.28.12.19.20; Wed, 28 Aug 2019 12:19:36 -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=OXzfzF8S; 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 S1726877AbfH1TSC (ORCPT + 99 others); Wed, 28 Aug 2019 15:18:02 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34002 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbfH1TSB (ORCPT ); Wed, 28 Aug 2019 15:18:01 -0400 Received: by mail-pf1-f196.google.com with SMTP id b24so427125pfp.1 for ; Wed, 28 Aug 2019 12:18:01 -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=vHp+AlJWbxwSEhvcybAlK/zvFEbIb+ho63MMWY45s5U=; b=OXzfzF8SHK5OVa1FXapO5oDS5zvMZGPSS9RJWui7hSNBkf4ory1gv0WNv6XKxIJ7rP 0x1eIiwgvL0/ZU9x0ljGPdVoCDiejKmy92yBw/kXT3Gx6hrJK9vGNWCIeWeFs9t6potT r1pIx37KVjyTFCkjkSf32IMnD8jHtn28GUXVjqi/Gl1uS7IvguN7uqQS0unKPritvTba XTfw91vQOs2MoxPwx9i0LC6p/8rDJFj8YFABW8SLcTbtjAjOexvJdrUHD+oXBc7WiVbt SP+Yny2sx/cBesb+y1XpGnT7bOe8NjLz1PT7XVFfeNLryROzcooQ5b4b7wC/JsgoGm5j iryQ== 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=vHp+AlJWbxwSEhvcybAlK/zvFEbIb+ho63MMWY45s5U=; b=R5DkZNTknG3kWI0XRvPqWabSYAKtT5RabIjwJ79gI5YZERz8uCE8nDdEXUpTSjtYdr bqFMJhnG53bTzqr8FKpiQ4R0NXsnUq4QtzCmS/zPULKH5T7a2JmeL5rX1vQlVoZfv2Tl v+6jIHllsKQ9NEefsnqpQPEqNyGJBZu7lIx+3uMCmZf7oxB9C5HhaPZ0fXTvAG430yo1 ovn5PP15cMzJYSHYwJ6L9kSSvGLfX/r4QbPWRfi0dhVK7LeDT5koH2c2HqsI4tRXuPCC PIUXK44jCJw6Q6WYdRfFkYUQVyMCCsOe5zk+TbsZ1Y/iSpeIl2jDexGVir3Jr9OsxAXL Cglg== X-Gm-Message-State: APjAAAV821Rtg8WS9E5truHOFSYUs7JGzJiiWtFptXjCl5ZAf0+14nD/ PfwGuJGShoQpmMnUn35eGVu8/g== X-Received: by 2002:a63:4e60:: with SMTP id o32mr4933655pgl.68.1567019880871; Wed, 28 Aug 2019 12:18:00 -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 n128sm122717pfn.46.2019.08.28.12.17.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Aug 2019 12:18:00 -0700 (PDT) From: Bjorn Andersson To: Rob Herring , Mark Rutland , Andy Gross , Alim Akhtar , Avri Altman , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Bean Huo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, Linus Walleij Subject: [PATCH v4 0/3] Qualcomm UFS device reset support Date: Wed, 28 Aug 2019 12:17:53 -0700 Message-Id: <20190828191756.24312-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds a new ufs vops to allow platform specific methods for resetting an attached UFS device, then implements this for the Qualcomm driver. This reset seems to be necessary for the majority of Dragonboard845c devices. Bean requested in v3 that a software fallback mechanism, using UIC_CMD_DME_END_PT_RST. I have not been successful in validating that this works for me, so I'm postponing this effort and hoping we can add it incrementally at a later time. Bjorn Andersson (3): scsi: ufs: Introduce vops for resetting device scsi: ufs-qcom: Implement device_reset vops arm64: dts: qcom: sdm845: Specify UFS device-reset GPIO .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 2 ++ arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 2 ++ arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 2 ++ drivers/scsi/ufs/ufs-qcom.c | 36 +++++++++++++++++++ drivers/scsi/ufs/ufs-qcom.h | 4 +++ drivers/scsi/ufs/ufshcd.c | 6 ++++ drivers/scsi/ufs/ufshcd.h | 8 +++++ 7 files changed, 60 insertions(+) -- 2.18.0