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: 10873139 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 41D081708 for ; Wed, 27 Mar 2019 09:58:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D74E28C19 for ; Wed, 27 Mar 2019 09:58:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 211D228C21; Wed, 27 Mar 2019 09:58:54 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C102F28C22 for ; Wed, 27 Mar 2019 09:58:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733100AbfC0J6w (ORCPT ); Wed, 27 Mar 2019 05:58:52 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:25181 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1733045AbfC0J6v (ORCPT ); Wed, 27 Mar 2019 05:58:51 -0400 X-UUID: 8db7a76bbdee45b1a0642e6f481a8a21-20190327 X-UUID: 8db7a76bbdee45b1a0642e6f481a8a21-20190327 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1969293400; Wed, 27 Mar 2019 17:58:44 +0800 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: , , , , CC: , , , , , , Stanley Chu 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 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.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