Kernel 4.18

AmigaOne X1000 platform specific issues related to Linux only.

Kernel 4.18

Postby xeno74 » Mon May 14, 2018 6:26 pm

Preliminary information for the kernel 4.18:

Code: Select all
Because it looks neater.

Signed-off-by: Peter Rosin <peda@axentia.se>
---
 drivers/i2c/busses/i2c-pasemi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-pasemi.c b/drivers/i2c/busses/i2c-pasemi.c
index df1dbc92a024..55fd5c6f3cca 100644
--- a/drivers/i2c/busses/i2c-pasemi.c
+++ b/drivers/i2c/busses/i2c-pasemi.c
@@ -121,7 +121,7 @@ static int pasemi_i2c_xfer_msg(struct i2c_adapter *adapter,
 
    read = msg->flags & I2C_M_RD ? 1 : 0;
 
-   TXFIFO_WR(smbus, MTXFIFO_START | (msg->addr << 1) | read);
+   TXFIFO_WR(smbus, MTXFIFO_START | i2c_8bit_addr_from_msg(msg));
 
    if (read) {
       TXFIFO_WR(smbus, msg->len | MTXFIFO_READ |
--
2.11.0
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3659
Joined: Fri Mar 23, 2012 8:58 am

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: Google [Bot] and 1 guest