Lines Matching refs:bri
1338 struct i2c_bus_recovery_info *bri = &i2c->recovery; in i2c_pxa_init_recovery() local
1374 bri->scl_gpiod = devm_gpiod_get(dev, "scl", GPIOD_OUT_HIGH_OPEN_DRAIN); in i2c_pxa_init_recovery()
1375 if (bri->scl_gpiod == ERR_PTR(-EPROBE_DEFER)) in i2c_pxa_init_recovery()
1377 if (IS_ERR(bri->scl_gpiod)) { in i2c_pxa_init_recovery()
1379 bri->scl_gpiod); in i2c_pxa_init_recovery()
1387 gpiod_direction_output(bri->scl_gpiod, 0); in i2c_pxa_init_recovery()
1389 bri->sda_gpiod = devm_gpiod_get(dev, "sda", GPIOD_OUT_HIGH_OPEN_DRAIN); in i2c_pxa_init_recovery()
1393 gpiod_direction_output(bri->scl_gpiod, 1); in i2c_pxa_init_recovery()
1395 if (bri->sda_gpiod == ERR_PTR(-EPROBE_DEFER)) in i2c_pxa_init_recovery()
1398 if (IS_ERR(bri->sda_gpiod)) { in i2c_pxa_init_recovery()
1400 bri->sda_gpiod); in i2c_pxa_init_recovery()
1404 bri->prepare_recovery = i2c_pxa_prepare_recovery; in i2c_pxa_init_recovery()
1405 bri->unprepare_recovery = i2c_pxa_unprepare_recovery; in i2c_pxa_init_recovery()
1406 bri->recover_bus = i2c_generic_scl_recovery; in i2c_pxa_init_recovery()
1408 i2c->adap.bus_recovery_info = bri; in i2c_pxa_init_recovery()