[hatari-devel] MODE SENSE patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] MODE SENSE patch
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Wed, 9 Mar 2022 17:46:29 +0100
- Authentication-results: strato.com; dkim=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1646844390; s=strato-dkim-0002; d=seimet.de; h=Message-ID:Subject:To:From:Date:Cc:Date:From:Subject:Sender; bh=OKPXuruDJxiYBhNUnxQl9pihk0eqWrwcsBeCAOpsOMI=; b=o2AFGmflVR9QmwSESg6aHyEpwkgemp3EU2AquDhxXhlHTy1gfGMrM17uN0iW6chASr /1K3Sx4ON+iwbtF1IRA40jI81ZaqyJURhvT2cZZTi/eUfPMy6OVuh1VMKkxv0oZcoAEK JGUpY0G+LXYffOHdYJZ31VvR/EGTIXoL5ECJP8bBlnSLeC/W/B+K2eClsIeK5WQfh47J nyxq6C1Hq1inzPuP/d2vJ3bYzyhQGJrgx74rideLyhanKR7et4aZ4NYzx7f/EA0PRYxM RSfLtAiTwscpWF3oP2HKhqFEfpQe9+g6s9yg2B0DycXxFzZ6o5DR47g5wWK8oKG10TFE khwA==
Hi,
The attached patch improves MODE SENSE a bit, by at least returning one
page instead of none when all are requested.
Best regards
Uwe
PS: I would appreciate feedback on the REPORT LUNS patch I posted about 2
weeks ago.
diff --git a/src/hdc.c b/src/hdc.c
index e6f3488c..24e4f256 100644
--- a/src/hdc.c
+++ b/src/hdc.c
@@ -390,6 +390,7 @@ static void HDC_Cmd_ModeSense(SCSI_CTRLR *ctr)
break;
case 0x04:
+ case 0x3f:
HDC_CmdModeSense0x04(dev, ctr);
break;