From nobody Mon Apr 6 19:59:14 2026 Received: from spam.asrmicro.com (asrmicro.com [210.13.118.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 130E2322B88 for ; Wed, 18 Mar 2026 06:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.13.118.86 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773815917; cv=none; b=W/k591iw3dwkYsbOjcnBJL6ECc9SwM4Q503k3Vg67mzLtbEutf2Dhj2uwVg0eBSHXdWw9YpflYINoZJb6RHynpvsDBByptcKbCYr1M4auALQYkAkmh5fQAUo9nvaj2hn9Q1njVCn1HVhjqpVVh/LOjtiPQP9rdWn9/oWfF6XjLQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773815917; c=relaxed/simple; bh=V0QPsgA2lvfcvMZR1KL9KFDEMp4ES2b7Ktui3iFbX8U=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bWDbqLqUaIgPBzdm4y9AQJ6yY50mC+uE8g/CIbtKH3rqS4rw3fja0/wIJDxMGeDqwRWM7DD8SwEWkEqEnuq5n1p7N9iCKYRPsYl8rdB6IBEGCE77g2SolryIOE5KDb6cX+IRGk+KWlNLMZmVuK6RQx+g34f1/W+Zy0EVSd4LW+Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=asrmicro.com; spf=pass smtp.mailfrom=asrmicro.com; arc=none smtp.client-ip=210.13.118.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=asrmicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=asrmicro.com Received: from spam.asrmicro.com (localhost [127.0.0.2] (may be forged)) by spam.asrmicro.com with ESMTP id 62I6SnQ9069842 for ; Wed, 18 Mar 2026 14:28:49 +0800 (GMT-8) (envelope-from hongjiefang@asrmicro.com) Received: from exch02.asrmicro.com (exch02.asrmicro.com [10.1.24.122]) by spam.asrmicro.com with ESMTPS id 62I6Rp3x069743 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 18 Mar 2026 14:27:51 +0800 (GMT-8) (envelope-from hongjiefang@asrmicro.com) Received: from localhost (10.1.170.248) by exch02.asrmicro.com (10.1.24.122) with Microsoft SMTP Server (TLS) id 15.0.847.32; Wed, 18 Mar 2026 14:27:53 +0800 From: Hongjie Fang To: , , , CC: , Hongjie Fang Subject: [PATCH] scsi: ufs: core: call notify callback when hibier8 enter/exit Date: Wed, 18 Mar 2026 14:27:46 +0800 Message-ID: <20260318062746.1730323-1-hongjiefang@asrmicro.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: exch01.asrmicro.com (10.1.24.121) To exch02.asrmicro.com (10.1.24.122) X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL: spam.asrmicro.com 62I6SnQ9069842 Content-Type: text/plain; charset="utf-8" Some UFS host controller may need to do notify callback when hibern8 enter/exit failed. Signed-off-by: Hongjie Fang --- drivers/ufs/core/ufshcd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 9ceb6d6d479d..02091e72f8db 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -4500,9 +4500,8 @@ int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) if (ret) dev_err(hba->dev, "%s: hibern8 enter failed. ret =3D %d\n", __func__, ret); - else - ufshcd_vops_hibern8_notify(hba, UIC_CMD_DME_HIBER_ENTER, - POST_CHANGE); + + ufshcd_vops_hibern8_notify(hba, UIC_CMD_DME_HIBER_ENTER, POST_CHANGE); =20 return ret; } @@ -4526,12 +4525,12 @@ int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) dev_err(hba->dev, "%s: hibern8 exit failed. ret =3D %d\n", __func__, ret); } else { - ufshcd_vops_hibern8_notify(hba, UIC_CMD_DME_HIBER_EXIT, - POST_CHANGE); hba->ufs_stats.last_hibern8_exit_tstamp =3D local_clock(); hba->ufs_stats.hibern8_exit_cnt++; } =20 + ufshcd_vops_hibern8_notify(hba, UIC_CMD_DME_HIBER_EXIT, POST_CHANGE); + return ret; } EXPORT_SYMBOL_GPL(ufshcd_uic_hibern8_exit); --=20 2.25.1