[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2025020649-say-maturing-c061@gregkh>
Date: Thu, 6 Feb 2025 06:50:40 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: WangYuli <wangyuli@...ontech.com>
Cc: stern@...land.harvard.edu, linux-usb@...r.kernel.org,
usb-storage@...ts.one-eyed-alien.net, linux-kernel@...r.kernel.org,
zhanjun@...ontech.com, guanwentao@...ontech.com,
chenlinxuan@...ontech.com, Xinwei Zhou <zhouxinwei@...ontech.com>,
Xu Rao <raoxu@...ontech.com>,
Yujing Ming <mingyujing@...ontech.com>
Subject: Re: [PATCH] usb-storage: Bypass certain SCSI commands on disks with
"use_192_bytes_for_3f" attribute
On Thu, Feb 06, 2025 at 01:41:07PM +0800, WangYuli wrote:
> @@ -369,6 +370,13 @@ static int queuecommand_lck(struct scsi_cmnd *srb)
> return SCSI_MLQUEUE_HOST_BUSY;
> }
>
> + if (srb->cmnd[0] == MODE_SENSE && sdev->use_192_bytes_for_3f == 1 &&
> + srb->cmnd[2] == 0x3f && srb->cmnd[4] != 192) {
> + srb->result = DID_ABORT << 16;
> + done(srb);
> + return 0;
> + }
> +
Please always run scripts/checkpatch.pl on your changes before sending
them out so you don't get a grumpy maintainer asking why you didn't run
scripts/checkpatch.pl on your patch :(
thanks,
greg k-h
Powered by blists - more mailing lists