lkml.org 
[lkml]   [2023]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 2/8] i2c: sprd: Add I2C driver to use 'reset framework' function
From
Le 17/08/2023 à 11:45, Huangzheng Lai a écrit :

> This patch adds the 'reset framework' function for I2C drivers, which
> resets the I2C controller when a timeout exception occurs.
...
> + if (i2c_dev->rst != NULL) {
if (i2c_dev->rst) {
> + ret = reset_control_reset(i2c_dev->rst);
> + if (ret < 0)
> + dev_err(i2c_dev->dev, "i2c soft reset failed, ret = %d\n", ret);
> + }

--

Yann

\
 
 \ /
  Last update: 2023-08-17 16:09    [W:0.151 / U:1.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site