From patchwork Thu Aug 31 13:08:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UGV0ZXIgV2FuZyAo546L5L+h5Y+LKQ==?= X-Patchwork-Id: 13371541 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 B648CC83F12 for ; Thu, 31 Aug 2023 13:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241865AbjHaNIj (ORCPT ); Thu, 31 Aug 2023 09:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbjHaNIi (ORCPT ); Thu, 31 Aug 2023 09:08:38 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB33BC for ; Thu, 31 Aug 2023 06:08:35 -0700 (PDT) X-UUID: 7bec626247ff11ee99480b3a0002f391-20230831 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=IyaCATboFHQnxSfH/A53WyUlYuoQ/rqmuyJ429trxuY=; b=XCuXohjqDZRwk5EDSGHrmZH8qJs5QYuX6pVktaEVVwLJKhfuIKdwOZFH5imOfzzjFC2htcfgdpLwSdj5/vXmpYr84kLHdNL8d5ZBeFN7+7asD41ZD3jrcjjv9DrE+ZxSgwnr9hDJLyRPHMsv9Jm0OVOkAaqeU5o/FGB9eECA7ZY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.31,REQID:9930a7c6-6185-4cf1-9751-3c1258f6da4d,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:0ad78a4,CLOUDID:8c64f81f-33fd-4aaa-bb43-d3fd68d9d5ae,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 7bec626247ff11ee99480b3a0002f391-20230831 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 331245955; Thu, 31 Aug 2023 21:08:31 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) 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.1118.26; Thu, 31 Aug 2023 21:08:30 +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.1118.26 via Frontend Transport; Thu, 31 Aug 2023 21:08:30 +0800 From: To: , , , , , CC: , , , , , , , , , , , , , Subject: [PATCH v2 0/3] Fix abnormal clock scaling behaviors Date: Thu, 31 Aug 2023 21:08:23 +0800 Message-ID: <20230831130826.5592-1-peter.wang@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 From: Peter Wang This patch fix abnormal clock scaling behaviors. Peter Wang (3): ufs: core: only suspend clock scaling if scale down ufs: core: fix abnormal scale up after last cmd finish ufs: core: fix abnormal scale up after scale down drivers/ufs/core/ufshcd.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-)