cdrom: skip retries for ATIP read if command fails

This commit is contained in:
Brad Parker 2019-07-08 23:46:42 -04:00
parent 6e8797d2ef
commit f94a924be9

View File

@ -391,8 +391,9 @@ retry:
{
cdrom_print_sense_data(sense, sizeof(sense));
/* INQUIRY/TEST should never fail, don't retry */
if (cmd[0] != 0x0 && cmd[0] != 0x12)
/* INQUIRY/TEST should never fail, don't retry. */
/* READ ATIP seems to fail outright on some drives (BW-16D1HT) with pressed discs, skip retries. */
if (cmd[0] != 0x0 && cmd[0] != 0x12 && !(cmd[0] == 0x43 && cmd[2] == 0x4))
{
unsigned char key = sense[2] & 0xF;