From: Greg Ungerer Date: Tue, 23 Aug 2016 11:46:06 +0000 (+1000) Subject: m68knommu: fix IO write size in nettel pin set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36d050d913333ea21e9728cbbc1fc07ae5be8d6c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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