From: "Martin K. Petersen" <mkp@kernel.org>
To: nayeoni.kim@samsung.com
Cc: linux-scsi@vger.kernel.org,
"Martin K. Petersen" <mkp@kernel.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
Bean Huo <beanhuo@micron.com>,
Bart Van Assche <bvanassche@acm.org>,
linux-kernel@vger.kernel.org,
Stanley Jhu <stanleyjhu@google.com>
Subject: Re: [PATCH] scsi: ufs: rpmb: Return -EIO instead of SCSI result on failure
Date: Sun, 29 Nov 2026 16:26:33 -0500 [thread overview]
Message-ID: <yq1fqwjib3n.fsf@mail.kernel.org> (raw)
In-Reply-To: <20261124-b4-ufs-3-rpmb-errno-v1-1-65b54643ca21@samsung.com>
> rpmb_route_frames() is documented to return a negative errno on
> failure, but ufs_sec_submit() returns the value of scsi_execute_cmd()
> as is. When a SECURITY PROTOCOL IN/OUT command fails, that value is a
> positive SCSI result such as SAM_STAT_CHECK_CONDITION or DID_ERROR <<
> 16. ufs_rpmb_route_frames() passes it up and logs it as "ret=%d".
> Since scsi_execute_cmd() sets RQF_QUIET, the sense data is not logged
> anywhere.
Applied to 7.5/scsi-staging, thanks!
--
Martin K. Petersen
prev parent reply other threads:[~2026-11-29 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 4:52 [PATCH] scsi: ufs: rpmb: Return -EIO instead of SCSI result on failure Nayeon Kim via B4 Relay
2026-11-24 4:56 ` sashiko-bot
2026-11-26 18:48 ` Bean Huo
2026-11-29 21:26 ` Martin K. Petersen [this message]
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=yq1fqwjib3n.fsf@mail.kernel.org \
--to=mkp@kernel.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=jorge.ramirez@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=nayeoni.kim@samsung.com \
--cc=stanleyjhu@google.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