When we get an unknown ATAPI comand, try it even if it is not listed,

in all likelyhood just passing it through will work.
This commit is contained in:
Poul-Henning Kamp 2006-03-05 17:52:32 +00:00
parent 64de47b35e
commit 327643e3ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156318

View file

@ -3104,9 +3104,11 @@ umass_atapi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
case READ_12:
case WRITE_12:
default:
printf("%s: Unsupported ATAPI command 0x%02x\n",
printf("%s: Unsupported ATAPI command 0x%02x"
" - trying anyway\n",
USBDEVNAME(sc->sc_dev), cmd[0]);
return 0; /* failure */
memcpy(*rcmd, cmd, cmdlen);
return 1;
}
}