From patchwork Thu Jun 9 08:57:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 12875070 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 36CABCCA47D for ; Thu, 9 Jun 2022 08:59:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238084AbiFII7Q (ORCPT ); Thu, 9 Jun 2022 04:59:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243096AbiFII62 (ORCPT ); Thu, 9 Jun 2022 04:58:28 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60FA16412 for ; Thu, 9 Jun 2022 01:57:59 -0700 (PDT) X-UUID: d1394c885e474f67ae12a29b09a43e4f-20220609 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:709d99aa-a1b2-4491-ab0a-02886774b775,OB:0,LO B:10,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,RULE:Release_Ham,A CTION:release,TS:90 X-CID-INFO: VERSION:1.1.5,REQID:709d99aa-a1b2-4491-ab0a-02886774b775,OB:0,LOB: 10,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS981B3D,A CTION:quarantine,TS:90 X-CID-META: VersionHash:2a19b09,CLOUDID:fd59c77e-c8dc-403a-96e8-6237210dceee,C OID:0a1ce689c957,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:0,BEC:nil X-UUID: d1394c885e474f67ae12a29b09a43e4f-20220609 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1970452185; Thu, 09 Jun 2022 16:57:53 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 9 Jun 2022 16:57:52 +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; Thu, 9 Jun 2022 16:57:52 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 0/3] scsi: ufs: Introduce workaround for power mode change in MediaTek SoC chips Date: Thu, 9 Jun 2022 16:57:48 +0800 Message-ID: <20220609085751.25305-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 This series fixes ADAPT logic for HS-G5 and provide workaround for power mode change in MediaTek SoC chips. CC Chou (1): scsi: ufs-mediatek: Introduce workaround for power mode change Stanley Chu (2): scsi: ufs: Export ufshcd_uic_change_pwr_mode() scsi: ufs: Fix ADAPT logic for HS-G5 drivers/ufs/core/ufshcd.c | 5 +-- drivers/ufs/host/ufs-mediatek.c | 60 +++++++++++++++++++++++++++++++-- drivers/ufs/host/ufs-mediatek.h | 1 + include/ufs/ufshcd.h | 1 + include/ufs/unipro.h | 1 + 5 files changed, 64 insertions(+), 4 deletions(-)