Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev

* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
[libata] revert new check-ready Status register logic

+3 -6
+3 -6
include/linux/libata.h
··· 1384 1384 1385 1385 static inline int ata_check_ready(u8 status) 1386 1386 { 1387 - /* Some controllers report 0x77 or 0x7f during intermediate 1388 - * not-ready stages. 1389 - */ 1390 - if (status == 0x77 || status == 0x7f) 1391 - return 0; 1387 + if (!(status & ATA_BUSY)) 1388 + return 1; 1392 1389 1393 1390 /* 0xff indicates either no device or device not ready */ 1394 1391 if (status == 0xff) 1395 1392 return -ENODEV; 1396 1393 1397 - return !(status & ATA_BUSY); 1394 + return 0; 1398 1395 } 1399 1396 1400 1397