mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 13:41:31 +00:00
block: systemace: Added missing "else" in "ace_writew"
System ACE compact flash controller supports either 8-bit (default) or 16-bit data transfers. And in corresponding driver we need to implement read/write of 16-bit data words properly for both modes of operation. In existing code if width==8 both branches get executed which may cause unexpected behavior of SystemAce controller. Addition of "else" fixes described issue and execution is done as expected for both (8-bit and 16-bit) data bus widths. Signed-off-by: Alexey Brodkin <alexey.brodkin@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
6ad77d88e5
commit
7cde9f35d6
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ static void ace_writew(u16 val, unsigned off)
|
||||||
writeb(val, base + off);
|
writeb(val, base + off);
|
||||||
writeb(val >> 8, base + off + 1);
|
writeb(val >> 8, base + off + 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
} else
|
||||||
out16(base + off, val);
|
out16(base + off, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static u16 ace_readw(unsigned off)
|
static u16 ace_readw(unsigned off)
|
||||||
|
|
Loading…
Add table
Reference in a new issue