From patchwork Thu Mar 28 09:16: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: 10874603 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 854BA14DE for ; Thu, 28 Mar 2019 09:17:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68C3728BC1 for ; Thu, 28 Mar 2019 09:17:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C89228BED; Thu, 28 Mar 2019 09:17:22 +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 0DB3F28BC1 for ; Thu, 28 Mar 2019 09:17:22 +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=E/5LXKMttAvcqByf/WS6k17wJdqLqk1e9bhhpOx4U6A=; b=gu8/zClM7BqSEf azeCBWjzmrPcNtU5zaFWUFQHGFJAqu0UefXzgEiyxrgQXM32NPjTA9+ZpxIb+I0qu0dUpssyvhyG7 1tMqFenpJCQnW7/t24ZFtWSxysOqEpSnuPUcEEVSPvXtf9PFn6T5YpU796cH/Aaq76W5WCCNVUWsK QYBc5Mr2+kWzZI/SXdyk+5ovxpwBAPb6cFnYGe7yQvpSGNTTuXqwDmJ2z4yIMHA8rYddqx1ET4ZCW Wb1IxsrIrzin3iwtLFiEgv8q2+tsnPIOdkzTGSmyamDu5iIKXqlip5m5XP80EJ9oNe40gVSBmFhGY lyzsW164EYmeaEu3H49w==; 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 1h9R9p-0002fN-I7; Thu, 28 Mar 2019 09:17:09 +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 1h9R9R-0002EC-OZ; Thu, 28 Mar 2019 09:16:47 +0000 X-UUID: 07a4da74ce7e43fdb1792fbc6c031587-20190328 X-UUID: 07a4da74ce7e43fdb1792fbc6c031587-20190328 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 751111049; Thu, 28 Mar 2019 01:16:43 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 28 Mar 2019 02:16:41 -0700 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 28 Mar 2019 17:16:33 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 28 Mar 2019 17:16:33 +0800 From: Stanley Chu To: , , , , Subject: [PATCH v4 0/5] scsi: ufs: Fix regulator operations and remove "-fixed-regulator" device tree property Date: Thu, 28 Mar 2019 17:16:22 +0800 Message-ID: <1553764587-26357-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-20190328_021645_798694_778C0669 X-CRM114-Status: UNSURE ( 6.67 ) 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, evgreen@chromium.org, subhashj@codeaurora.org, linux-mediatek@lists.infradead.org, peter.wang@mediatek.com, vivek.gautam@codeaurora.org, matthias.bgg@gmail.com, sayalil@codeaurora.org, Stanley Chu , linux-arm-kernel@lists.infradead.org, beanhuo@micron.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Upload v4 to fix little commit messages and invite more platform reviewers. This patch series fixes UFS regulator operations, including voltage and current (re-)configuration flow during UFS initialization and power modes switching. In the end, remove "-fixed-regulator" device tree property because it is not necessary anymore after fixes. V4: - Fix commit messages (Avri Altman). - Fix tags (Alim Akhtar). - Invite more reviewers. 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(-)