mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From 030f6a60e073e524261ba0c1ab011be880b5c8d7 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Mon, 29 Jan 2024 17:50:56 +0000
|
|
Subject: [PATCH 0862/1002] Revert "i2c: designware: Look for *CNT values in
|
|
DT"
|
|
|
|
This reverts commit 78bb16b5d255f7ca88cf79388caa8f1b3f4aa681.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/i2c/busses/i2c-designware-platdrv.c | 18 ------------------
|
|
1 file changed, 18 deletions(-)
|
|
|
|
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
|
|
index 47dfa136f02b..855b698e99c0 100644
|
|
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
|
|
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
|
|
@@ -132,18 +132,9 @@ static int mscc_twi_set_sda_hold_time(struct dw_i2c_dev *dev)
|
|
return 0;
|
|
}
|
|
|
|
-static void dw_i2c_read_of_cnt(struct device_node *np, const char *name, u16 *pval)
|
|
-{
|
|
- u32 val;
|
|
-
|
|
- if (!of_property_read_u32(np, name, &val))
|
|
- *pval = (u16)val;
|
|
-}
|
|
-
|
|
static int dw_i2c_of_configure(struct platform_device *pdev)
|
|
{
|
|
struct dw_i2c_dev *dev = platform_get_drvdata(pdev);
|
|
- struct device_node *np = pdev->dev.of_node;
|
|
|
|
switch (dev->flags & MODEL_MASK) {
|
|
case MODEL_MSCC_OCELOT:
|
|
@@ -155,15 +146,6 @@ static int dw_i2c_of_configure(struct platform_device *pdev)
|
|
break;
|
|
}
|
|
|
|
- dw_i2c_read_of_cnt(np, "snps,ss_hcnt", &dev->ss_hcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,ss_lcnt", &dev->ss_lcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,fs_hcnt", &dev->fs_hcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,fs_lcnt", &dev->fs_lcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,fp_hcnt", &dev->fp_hcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,fp_lcnt", &dev->fp_lcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,hs_hcnt", &dev->hs_hcnt);
|
|
- dw_i2c_read_of_cnt(np, "snps,hs_lcnt", &dev->hs_lcnt);
|
|
-
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
2.44.0
|
|
|