From patchwork Wed Dec 9 13:35:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Can Guo X-Patchwork-Id: 11961401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC686C19425 for ; Wed, 9 Dec 2020 13:36:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7A28523B45 for ; Wed, 9 Dec 2020 13:36:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732398AbgLINgZ (ORCPT ); Wed, 9 Dec 2020 08:36:25 -0500 Received: from labrats.qualcomm.com ([199.106.110.90]:39396 "EHLO labrats.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732206AbgLINgZ (ORCPT ); Wed, 9 Dec 2020 08:36:25 -0500 IronPort-SDR: I126Nt3ViAB86vyipeafsp5jpovx2n3VEz/+wTBMZ68bDgePC/UagqTuh80TZ2mU55GQBZjUEx WgxMccWextHVpyAvbDb7VdqQfLBEzt8VHi0GtbiUN1ZeXEWohMj3gOq9bsihUlQrlGwAI+Y0md gQho2Yb2KdMhm0CARGG/XDZ3lq/yZGw2PC+0iGzELFUwAcD6SseyvVqLcyYNjPh7DYhHRU3gjD NOTSwu6RvRFRww02XAERw7gqqS55+BCYEApT8PLf9NZOK9AOGLbErbtKJvQ7mc+nRmJO91laWz F5g= X-IronPort-AV: E=Sophos;i="5.78,405,1599548400"; d="scan'208";a="29333083" Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by labrats.qualcomm.com with ESMTP; 09 Dec 2020 05:35:45 -0800 X-QCInternal: smtphost Received: from stor-presley.qualcomm.com ([192.168.140.85]) by ironmsg03-sd.qualcomm.com with ESMTP; 09 Dec 2020 05:35:44 -0800 Received: by stor-presley.qualcomm.com (Postfix, from userid 359480) id 2218421340; Wed, 9 Dec 2020 05:35:44 -0800 (PST) From: Can Guo To: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, cang@codeaurora.org Subject: [PATCH v2 0/2] Two changes related with UFS clock scaling Date: Wed, 9 Dec 2020 05:35:39 -0800 Message-Id: <1607520942-22254-1-git-send-email-cang@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This series is made based on 5.11/scsi-fixes branch. The 1st change allows contexts to prevent clock scaling from being invoked through sysfs nodes like clkscale_enable. The 2nd change is just a minor code cleanup. Change since v1: - Updated the 2nd change Can Guo (2): scsi: ufs: Protect some contexts from unexpected clock scaling scsi: ufs: Clean up ufshcd_exit_clk_scaling/gating() drivers/scsi/ufs/ufshcd.c | 116 ++++++++++++++++++++++++++-------------------- drivers/scsi/ufs/ufshcd.h | 6 +++ 2 files changed, 71 insertions(+), 51 deletions(-)