Re: [PATCH] usb-storage: Bypass certain SCSI commands on disks with "use_192_bytes_for_3f" attribute
From: Greg KH
Date: Thu Feb 06 2025 - 09:29:37 EST
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