mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
e2e2fc3cd0
Add updated patches for 6.6. DMA/cache-handling patches have been reworked / backported from upstream. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From dcc2827ed6e701a65731c05b0297745559837217 Mon Sep 17 00:00:00 2001
|
|
From: Hal Feng <hal.feng@starfivetech.com>
|
|
Date: Fri, 12 May 2023 17:33:20 +0800
|
|
Subject: [PATCH 062/116] i2c: designware: Delete SMBus functionalities
|
|
|
|
The driver didn't implement the smbus interface,
|
|
so replace the SMBus functionalities with
|
|
I2C_FUNC_SMBUS_EMUL.
|
|
|
|
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
---
|
|
drivers/i2c/busses/i2c-designware-core.h | 10 ++++------
|
|
1 file changed, 4 insertions(+), 6 deletions(-)
|
|
|
|
--- a/drivers/i2c/busses/i2c-designware-core.h
|
|
+++ b/drivers/i2c/busses/i2c-designware-core.h
|
|
@@ -18,12 +18,10 @@
|
|
#include <linux/regmap.h>
|
|
#include <linux/types.h>
|
|
|
|
-#define DW_IC_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | \
|
|
- I2C_FUNC_SMBUS_BYTE | \
|
|
- I2C_FUNC_SMBUS_BYTE_DATA | \
|
|
- I2C_FUNC_SMBUS_WORD_DATA | \
|
|
- I2C_FUNC_SMBUS_BLOCK_DATA | \
|
|
- I2C_FUNC_SMBUS_I2C_BLOCK)
|
|
+#define DW_IC_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL \
|
|
+ & ~I2C_FUNC_SMBUS_QUICK \
|
|
+ & ~I2C_FUNC_SMBUS_PROC_CALL \
|
|
+ & ~I2C_FUNC_SMBUS_PEC))
|
|
|
|
#define DW_IC_CON_MASTER BIT(0)
|
|
#define DW_IC_CON_SPEED_STD (1 << 1)
|