Skip to content

Commit

Permalink
Set the standard inquiry response additional length field.
Browse files Browse the repository at this point in the history
* The standard inquiry response additional length field needs to be set to
the length in bytes of the remaining standard inquiry data (i.e. N - 5),
otherwise the kernel driver issues a warning about short inquiry response..
  • Loading branch information
iabdalkader committed Feb 25, 2022
1 parent fa895ed commit 8eeda60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/class/msc/msc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ static int32_t proc_builtin_scsi(uint8_t lun, uint8_t const scsi_cmd[16], uint8_
.is_removable = 1,
.version = 2,
.response_data_format = 2,
.additional_length = sizeof(scsi_inquiry_resp_t) - 5,
};

// vendor_id, product_id, product_rev is space padded string
Expand Down

0 comments on commit 8eeda60

Please sign in to comment.