From patchwork Wed Mar 27 09:58:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 10873149 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E36E13B5 for ; Wed, 27 Mar 2019 09:59:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14B1728C18 for ; Wed, 27 Mar 2019 09:59:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 078B228C21; Wed, 27 Mar 2019 09:59:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ACF9B28C18 for ; Wed, 27 Mar 2019 09:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GGAhw6yoKpQWjPvCR8+2hznAbnWZjdnkYgep2qrfFrA=; b=MqnREFJT4TenK5 MZ1+NcXyeR4Cu8z1zUmPPMxJmAd31GEoh7oTo1RGcuMJRlDUqulLTMEQxKC+ZN/B74+kGU64t/Cg6 57JET3JzPS0r4UNQJoYzSUXE8hwFGHiChnm3Jlos8II9ECvurnGE1SIaFBZN4HDLEBWxGFN1PfJxD 78ghRpeB3olNgAJ0CpbEufl2wP35CN92W2TppaKKN//xiOZfmgFtxUHeTrFdJ8fuBkJ0ykubJeBef Hw8PnmotBu7FTY1C7iMA3BTDJZKTtbsrZe0izd0w6Eaf+ywROjTHUpG6f3I941lVSx07sOYCbLLSa /YQm8WhrFvR6LIvUfTGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h95Kj-00087m-Vd; Wed, 27 Mar 2019 09:58:57 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h95Kg-00085V-AO for linux-mediatek@lists.infradead.org; Wed, 27 Mar 2019 09:58:57 +0000 X-UUID: f0b7c9650c644adb9fc7b5e2d1ee4e1a-20190327 X-UUID: f0b7c9650c644adb9fc7b5e2d1ee4e1a-20190327 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 154979218; Wed, 27 Mar 2019 01:58:46 -0800 Received: from mtkmbs08n1.mediatek.inc (172.21.101.55) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Mar 2019 02:58:44 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Mar 2019 17:58:43 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 27 Mar 2019 17:58:43 +0800 From: Stanley Chu To: , , , , Subject: [PATCH RESEND v3 0/5] scsi: ufs: Fix regulator operations and remove "-fixed-regulator" device tree property Date: Wed, 27 Mar 2019 17:58:22 +0800 Message-ID: <1553680707-28579-1-git-send-email-stanley.chu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190327_025854_365237_12AE4908 X-CRM114-Status: UNSURE ( 6.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marc.w.gonzalez@free.fr, chun-hung.wu@mediatek.com, kuohong.wang@mediatek.com, linux-mediatek@lists.infradead.org, peter.wang@mediatek.com, matthias.bgg@gmail.com, Stanley Chu Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Resend this patch series for review. This version (v3) fixed and added more details in commit messages, and added one patch to fix "undefined voltage range" issue as well. This patch series fixes UFS regulator operations, including voltage and current (re-)configuration flow during UFS initialization and power mode switching. In the end, remove "-fixed-regulator" device tree property because it is not necessary anymore after these fixes. V3: - Fix and add more details in commit messages. - Add one patch "scsi: ufs: Avoid configuring undefined voltage range on a regulator". V2: - Add two patches to prepare to and remove "-fixed-regulator" device tree property. - Add more details on patch "scsi: ufs: remove unused min_uA field in struct ufs_vreg" (Marc Gonzalez). Stanley Chu (5): scsi: ufs: Remove unused min_uA field in struct ufs_vreg scsi: ufs: Avoid configuring regulator with undefined voltage range scsi: ufs: Fix regulator load and icc-level configuration scsi: ufs: Change "-max-microamp" to non-mandatory property scsi: ufs: Remove "-fixed-regulator" device tree property drivers/scsi/ufs/ufs.h | 1 - drivers/scsi/ufs/ufshcd-pltfrm.c | 14 +++----------- drivers/scsi/ufs/ufshcd.c | 28 ++++++++++++++++++++-------- 3 files changed, 23 insertions(+), 20 deletions(-) Acked-by: Alim Akhtar