From patchwork Tue Jun 14 14:16:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 12881183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30996C43334 for ; Tue, 14 Jun 2022 14:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244553AbiFNORU (ORCPT ); Tue, 14 Jun 2022 10:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242997AbiFNORK (ORCPT ); Tue, 14 Jun 2022 10:17:10 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E76B2F3A9; Tue, 14 Jun 2022 07:17:06 -0700 (PDT) X-UUID: 1dbe14a68fbf40b59377d840aafa4a37-20220614 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.6,REQID:b61bd225-519f-4293-a73b-f73dd6043595,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,RULE:Release_Ham,AC TION:release,TS:90 X-CID-INFO: VERSION:1.1.6,REQID:b61bd225-519f-4293-a73b-f73dd6043595,OB:0,LOB: 0,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS981B3D,AC TION:quarantine,TS:90 X-CID-META: VersionHash:b14ad71,CLOUDID:388d9407-b57a-4a25-a071-bc7b4972bc68,C OID:2e28f976cb89,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: 1dbe14a68fbf40b59377d840aafa4a37-20220614 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1958384240; Tue, 14 Jun 2022 22:16:57 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 14 Jun 2022 22:16:56 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Tue, 14 Jun 2022 22:16:56 +0800 From: Stanley Chu To: , , , , , , CC: , , , , , , , , , , , , Subject: [PATCH v3 00/10] scsi: ufs: Fix PMC and low-power mode on MediaTek UFS platforms Date: Tue, 14 Jun 2022 22:16:45 +0800 Message-ID: <20220614141655.14409-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi Martin, This series provides some fixes on MediaTek UFS platforms, please consider this patch series for kernel v5.20. Sorry to change this patch series so frequently since we have to post and backport these patches to Android kernel recently. - Provide workaround for power mode change for HS-G5 - Fix and provide regulator features Changes compared to v2: - Add patches to support multiple VCC sources Changes compared to v1: - Add patches to fix and provide VCCQx low-power support Alice Chao (1): scsi: ufs-mediatek: Support flexible parameters for smc calls CC Chou (1): scsi: ufs-mediatek: Introduce workaround for power mode change Peter Wang (1): scsi: ufs-mediatek: Support low-power mode for VCCQ Po-Wen Kao (2): scsi: ufs-mediatek: Fix the timing of configuring device regulators scsi: ufs-mediatek: Prevent device regulators setting as LPM incorrectly Stanley Chu (5): scsi: ufs: Export ufshcd_uic_change_pwr_mode() scsi: ufs: Fix ADAPT logic for HS-G5 scsi: ufs-mediatek: Support low-power mode for parents of VCCQx scsi: ufs: Export regulator functions scsi: ufs-mediatek: Support multiple VCC sources drivers/ufs/core/ufshcd.c | 8 +- drivers/ufs/host/ufs-mediatek.c | 232 ++++++++++++++++++++++++++----- drivers/ufs/host/ufs-mediatek.h | 75 ++++++++++ drivers/ufs/host/ufshcd-pltfrm.c | 3 +- drivers/ufs/host/ufshcd-pltfrm.h | 2 + include/ufs/ufshcd.h | 3 + include/ufs/unipro.h | 1 + 7 files changed, 289 insertions(+), 35 deletions(-)