Thread (2 messages) 2 messages, 2 authors, 2021-06-21

Re: [PATCH] i2c: mediatek: Isolate speed setting via dts for special devices

From: Tzung-Bi Shih <hidden>
Date: 2021-06-21 02:18:04
Also in: linux-i2c, linux-mediatek, lkml

On Sat, Jun 19, 2021 at 5:23 PM [off-list ref] wrote:
In the commit be5ce0e97cc7 ("i2c: mediatek: Add i2c ac-timing adjust
support"), the I2C timing calculation has been revised to support
ac-timing, revised to support ac-timing adjustment, however that will
break on some I2C components. As a result we want to introduce a new
setting "default-adjust-timing" so those components can choose to use the
old (default) timing algorithm.
Could you provide a proper "Fixes" tag.
quoted hunk ↗ jump to hunk
@@ -544,6 +558,7 @@ static void mtk_i2c_init_hw(struct mtk_i2c *i2c)
                                       OFFSET_HS_STA_STO_AC_TIMING);
                }
        }
+       mtk_i2c_writew(i2c, ext_conf_val, OFFSET_EXT_CONF);
This looks like another fix.  Could you separate this into another
patch or explain more why it needs to be in the patch?
quoted hunk ↗ jump to hunk
@@ -1284,6 +1355,8 @@ static int mtk_i2c_parse_dt(struct device_node *np, struct mtk_i2c *i2c)
        i2c->have_pmic = of_property_read_bool(np, "mediatek,have-pmic");
        i2c->use_push_pull =
                of_property_read_bool(np, "mediatek,use-push-pull");
+       i2c->default_timing_adjust =
+               of_property_read_bool(np, "mediatek,default-timing-adjust");
Need a DT-binding document patch for the newly added property.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help