File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,7 @@ int sdw_slave_read_prop(struct sdw_slave *slave)
344
344
struct device * dev = & slave -> dev ;
345
345
struct fwnode_handle * port ;
346
346
int nval ;
347
+ int ret ;
347
348
348
349
device_property_read_u32 (dev , "mipi-sdw-sw-interface-revision" ,
349
350
& prop -> mipi_revision );
@@ -366,8 +367,11 @@ int sdw_slave_read_prop(struct sdw_slave *slave)
366
367
device_property_read_u32 (dev , "mipi-sdw-clockstopprepare-timeout" ,
367
368
& prop -> clk_stop_timeout );
368
369
369
- device_property_read_u32 (dev , "mipi-sdw-slave-channelprepare-timeout" ,
370
- & prop -> ch_prep_timeout );
370
+ ret = device_property_read_u32 (dev , "mipi-sdw-peripheral-channelprepare-timeout" ,
371
+ & prop -> ch_prep_timeout );
372
+ if (ret < 0 )
373
+ device_property_read_u32 (dev , "mipi-sdw-slave-channelprepare-timeout" ,
374
+ & prop -> ch_prep_timeout );
371
375
372
376
device_property_read_u32 (dev ,
373
377
"mipi-sdw-clockstopprepare-hard-reset-behavior" ,
You can’t perform that action at this time.
0 commit comments