From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB5EAC43334 for ; Wed, 20 Jul 2022 01:19:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O1CM5lAna6xDQKHuKH8rTW0CJIpZIVPRpEuddav7VRk=; b=kgT6rHE61n2tKU J61zBAFuizBFC8ThfwfRLNfaurV455PDKD9iDX2OO0ZHPfCZCCmHvfdXsrIRF/aIMr9EBdSeD9n3v j3xw7ol2ZS/AOFAHsnuDTg3wmQ1uOUpce25fM0DKKYmskM3lsxQFyEbYcCHHqDIjKLL/OIvjRNXIt zzV3IkRXE2m1mhWjHVdYIL4xefJtS/I2usPWEKdj++vLLnjHlGTs8glzKp+z0jMqIYsbaghfFhsRf rUGynKjE7Zz2nKudnd2qYhUH/2t52nDWyQWBU5oBt+GgXd+whCv6XrwxK99Am+YOSUJAZGMQyUec0 xrVA9z8B8hZtiY83U53Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDyLz-00FXEa-Ia; Wed, 20 Jul 2022 01:18:20 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDyLA-00FVnq-5y; Wed, 20 Jul 2022 01:17:31 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8B763616F6; Wed, 20 Jul 2022 01:17:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DFB5C341CA; Wed, 20 Jul 2022 01:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658279847; bh=hFKG1bbEtQeJKNkTd5Ayfh8yCS0l9VAbsfYnJ46IJkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ogsVYQE1RZG2FiisSriCDkLId2EPII8skQSlBkL84WztApDcXwRmW3Z0vuMUZAKEj Xfok36FIy0oXIwR/ElTZ9abi7RAoByapueNbPMnrTtbZK+AZdDX/148kErLLz/B86C 03o4viqohWgHAnH2xUoW15cS0Mwc0p7rhtiadnrsq/uqneFRv4A8p1z2NBWdV5xa2a j/9h+ClgydNvyfkZxEnBBrE/7eF0H/5QnFZIMfOjWhJPn4UAQOiJDevV8JufYOPmY2 F00+3ZhrQC8pu9PiGPt2fmc4oJ0MeBZXsOuULqPmOPQZl42ieDd8XMcxZnaTPWLN4H vITdgx6LL511A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Po-Wen Kao , Bart Van Assche , Stanley Chu , "Martin K . Petersen" , Sasha Levin , jejb@linux.ibm.com, matthias.bgg@gmail.com, beanhuo@micron.com, avri.altman@wdc.com, adrian.hunter@intel.com, daejun7.park@samsung.com, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH AUTOSEL 5.10 23/25] scsi: ufs: core: Fix missing clk change notification on host reset Date: Tue, 19 Jul 2022 21:16:14 -0400 Message-Id: <20220720011616.1024753-23-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220720011616.1024753-1-sashal@kernel.org> References: <20220720011616.1024753-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220719_181728_302978_B10FDB0B X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Po-Wen Kao [ Upstream commit 52a518019ca187227b786f8b8ee20869a97f3af4 ] In ufshcd_host_reset_and_restore(), ufshcd_set_clk_freq() is called to scale clock rate. However, this did not call vops->clk_scale_notify() to inform platform driver of clock change. Call ufshcd_scale_clks() instead so that clock change can be properly handled. Link: https://lore.kernel.org/r/20220711144224.17916-2-powen.kao@mediatek.com Reviewed-by: Bart Van Assche Reviewed-by: Stanley Chu Signed-off-by: Po-Wen Kao Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index ea6ceab1a1b2..ba14ac9b3914 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -6824,7 +6824,7 @@ static int ufshcd_host_reset_and_restore(struct ufs_hba *hba) spin_unlock_irqrestore(hba->host->host_lock, flags); /* scale up clocks to max frequency before full reinitialization */ - ufshcd_set_clk_freq(hba, true); + ufshcd_scale_clks(hba, true); err = ufshcd_hba_enable(hba); if (err) -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel