From: Ziqi Chen <quic_ziqichen@quicinc.com>
To: Avri Altman <Avri.Altman@wdc.com>,
"quic_asutoshd@quicinc.com" <quic_asutoshd@quicinc.com>,
"quic_cang@quicinc.com" <quic_cang@quicinc.com>,
"bvanassche@acm.org" <bvanassche@acm.org>,
"mani@kernel.org" <mani@kernel.org>,
"beanhuo@micron.com" <beanhuo@micron.com>,
"junwoo80.lee@samsung.com" <junwoo80.lee@samsung.com>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
"quic_nguyenb@quicinc.com" <quic_nguyenb@quicinc.com>,
"quic_nitirawa@quicinc.com" <quic_nitirawa@quicinc.com>,
"quic_rampraka@quicinc.com" <quic_rampraka@quicinc.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
Damien Le Moal <dlemoal@kernel.org>,
Hannes Reinecke <hare@suse.de>,
Peter Wang <peter.wang@mediatek.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
Andrew Halaney <ahalaney@redhat.com>,
Maramaina Naresh <quic_mnaresh@quicinc.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] scsi: ufs: core: Add ufshcd_send_bsg_uic_cmd() for UFS BSG
Date: Tue, 19 Nov 2024 14:11:13 +0800 [thread overview]
Message-ID: <7d269ee6-0b85-4f9f-93fb-08bd07b6195c@quicinc.com> (raw)
In-Reply-To: <DM6PR04MB65753A23120240123B090585FC202@DM6PR04MB6575.namprd04.prod.outlook.com>
On 11/19/2024 2:02 PM, Avri Altman wrote:
>> User layer applications can send UIC GET/SET commands via the BSG
>> framework, and if the user layer application sends a UIC SET command to the
>> PA_PWRMODE attribute, a power mode change shall be initiated in UniPro
>> and two interrupts shall be triggered if the power mode is successfully
>> changed, i.e., UIC Command Completion interrupt and UIC Power Mode
>> interrupt.
>>
>> The current UFS BSG code calls ufshcd_send_uic_cmd() directly, with which
>> the second interrupt, i.e., UIC Power Mode interrupt, shall be treated as
>> unhandled interrupt. In addition, after the UIC command is completed, user
>> layer application has to poll UniPro and/or M-PHY state machine to confirm
>> the power mode change is finished.
>>
>> Add a new wrapper function ufshcd_send_bsg_uic_cmd() and call it from
>> ufs_bsg_request() so that if a UIC SET command is targeting the
>> PA_PWRMODE attribute it can be redirected to ufshcd_uic_pwr_ctrl().
>>
>
> Fixes tag?
Thank Avri, will update new version to add Fixes tag.
>> Signed-off-by: Can Guo <quic_cang@quicinc.com>
>> Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
> With that fixed:
> Reviewed-by: Avri Altman <avri.altman@wdc.com>
>
>> ---
>> V1 -> V2: Rebased on Linux 6.13
next prev parent reply other threads:[~2024-11-19 6:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 11:14 [PATCH v2] scsi: ufs: core: Add ufshcd_send_bsg_uic_cmd() for UFS BSG Ziqi Chen
2024-11-13 18:21 ` Bean Huo
2024-11-19 6:02 ` Avri Altman
2024-11-19 6:11 ` Ziqi Chen [this message]
2024-11-19 6:40 ` Peter Wang (王信友)
2024-11-19 8:52 ` Ziqi Chen
2024-11-19 9:22 ` Peter Wang (王信友)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d269ee6-0b85-4f9f-93fb-08bd07b6195c@quicinc.com \
--to=quic_ziqichen@quicinc.com \
--cc=Avri.Altman@wdc.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=ahalaney@redhat.com \
--cc=alim.akhtar@samsung.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=dlemoal@kernel.org \
--cc=hare@suse.de \
--cc=junwoo80.lee@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=martin.petersen@oracle.com \
--cc=peter.wang@mediatek.com \
--cc=quic_asutoshd@quicinc.com \
--cc=quic_cang@quicinc.com \
--cc=quic_mnaresh@quicinc.com \
--cc=quic_nguyenb@quicinc.com \
--cc=quic_nitirawa@quicinc.com \
--cc=quic_rampraka@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox