From: Johan Hovold Date: Thu, 11 May 2017 09:41:20 +0000 (+0200) Subject: USB: serial: mct_u232: fix big-endian baud-rate handling X-Git-Tag: v3.2.93~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b1af6c5c26c204edb75b9dad5aab2208a7a6a6;p=pandora-kernel.git USB: serial: mct_u232: fix big-endian baud-rate handling commit 26cede343656c0bc2c33cdc783771282405c7fb2 upstream. Drop erroneous cpu_to_le32 when setting the baud rate, something which corrupted the divisor on big-endian hosts. Found using sparse: warning: incorrect type in argument 1 (different base types) expected unsigned int [unsigned] [usertype] val got restricted __le32 [usertype] Fixes: af2ac1a091bc ("USB: serial mct_usb232: move DMA buffers to heap") Reviewed-by: Greg Kroah-Hartman Acked-By: Pete Zaitcev Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed