Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195860
b: refs/heads/master
c: 1449c5d
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and David Woodhouse committed Feb 25, 2010
1 parent 3376db9 commit 402ad76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 53f2b1c86a1fa1414be93571062ac4c263fa9fbc
refs/heads/master: 1449c5d0e8f25af6c903797a636696901122e4e8
2 changes: 1 addition & 1 deletion trunk/include/linux/mtd/cfi.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static inline uint32_t cfi_build_cmd_addr(uint32_t cmd_ofs,
* and 32bit devices on 16 bit busses
* set the low bit of the alternating bit sequence of the address.
*/
if (((type * interleave) > bankwidth) && ((uint8_t)cmd_ofs == 0xaa))
if (((type * interleave) > bankwidth) && ((cmd_ofs & 0xff) == 0xaa))
addr |= (type >> 1)*interleave;

return addr;
Expand Down

0 comments on commit 402ad76

Please sign in to comment.