diff options
author | Greg Ungerer <gerg@linux-m68k.org> | 2016-08-23 21:46:06 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2016-09-26 12:02:58 +1000 |
commit | 36d050d913333ea21e9728cbbc1fc07ae5be8d6c (patch) | |
tree | df051a73df3fb4a8fa2d12d66f0acf51299fbd6e /arch/m68k/include | |
parent | 41b39ea19087ca91729972d6497af7fdfaef7449 (diff) | |
download | talos-op-linux-36d050d913333ea21e9728cbbc1fc07ae5be8d6c.tar.gz talos-op-linux-36d050d913333ea21e9728cbbc1fc07ae5be8d6c.zip |
m68knommu: fix IO write size in nettel pin set
The pin write code that supports the UART signals is not using he correct
word write IO access method. It correctly reads the correct 16 bit
registrer, it should also write the new value back with a 16 bit write.
Fix it to use writew().
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/nettel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/nettel.h b/arch/m68k/include/asm/nettel.h index 2a7a7667d807..926375d538ec 100644 --- a/arch/m68k/include/asm/nettel.h +++ b/arch/m68k/include/asm/nettel.h @@ -92,7 +92,7 @@ static __inline__ unsigned int mcf_getppdata(void) static __inline__ void mcf_setppdata(unsigned int mask, unsigned int bits) { - write((readw(MCFSIM_PBDAT) & ~mask) | bits, MCFSIM_PBDAT); + writew((readw(MCFSIM_PBDAT) & ~mask) | bits, MCFSIM_PBDAT); } #endif |