projects
/
openwrt
/
staging
/
chunkeey.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wrong bit shifting for the cfrdy function, will always return cf-mips busy
[openwrt/staging/chunkeey.git]
/
target
/
linux
/
adm5120
/
files
/
drivers
/
block
/
rb1xx
/
ata.c
diff --git
a/target/linux/adm5120/files/drivers/block/rb1xx/ata.c
b/target/linux/adm5120/files/drivers/block/rb1xx/ata.c
index c73d21958a0853cdf3deef784ba8f0fe1cbbd1a6..55df75e8641ab6c473ea0e2dca2b7034f5ff6ddd 100644
(file)
--- a/
target/linux/adm5120/files/drivers/block/rb1xx/ata.c
+++ b/
target/linux/adm5120/files/drivers/block/rb1xx/ata.c
@@
-69,7
+69,7
@@
static inline u8 rareg(unsigned reg, struct cf_mips_dev* dev)
static inline int cfrdy(struct cf_mips_dev *dev)
{
- return (SW_READ_REG(GPIO_CONF0) & (1 <<
ADM5120_GPIO_PIN4
));
+ return (SW_READ_REG(GPIO_CONF0) & (1 <<
12
));
}
static inline void prepare_cf_irq(struct cf_mips_dev *dev)