public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb3a70
)
ubee: devhd silly bug
author
Alan Cox
<alan@linux.intel.com>
Sun, 29 Apr 2018 22:14:53 +0000
(23:14 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 29 Apr 2018 22:14:53 +0000
(23:14 +0100)
Kernel/platform-ubee/devhd.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-ubee/devhd.c
b/Kernel/platform-ubee/devhd.c
index
47dacd6
..
c8907c4
100644
(file)
--- a/
Kernel/platform-ubee/devhd.c
+++ b/
Kernel/platform-ubee/devhd.c
@@
-74,7
+74,7
@@
static uint8_t hd_waitready(void)
do {
st = hd_status;
tick++;
- } while (!(st & 0x40) &&
!
tick);
+ } while (!(st & 0x40) && tick);
return st;
}
@@
-137,7
+137,7
@@
static int hd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
/* Get rid of port 58 selector */
minor &= 0x7F;
- /* Reserve low bits fo
r
future partition tables */
+ /* Reserve low bits fo
r
future partition tables */
minor >>= 4;
while (ct < udata.u_nblock) {