Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i2c: designware: Remove an unnecessary condition

Writing also the high speed timing registers unconditionally.
The reset value for these registers is 0, so this should
always be safe.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260120130729.1679560-5-heikki.krogerus@linux.intel.com

authored by

Heikki Krogerus and committed by
Andi Shyti
51e8ce36 cfbcc20d

+3 -5
+3 -5
drivers/i2c/busses/i2c-designware-common.c
··· 392 392 regmap_write(dev->map, DW_IC_FS_SCL_HCNT, dev->fs_hcnt); 393 393 regmap_write(dev->map, DW_IC_FS_SCL_LCNT, dev->fs_lcnt); 394 394 395 - /* Write high speed timing parameters if supported */ 396 - if (dev->hs_hcnt && dev->hs_lcnt) { 397 - regmap_write(dev->map, DW_IC_HS_SCL_HCNT, dev->hs_hcnt); 398 - regmap_write(dev->map, DW_IC_HS_SCL_LCNT, dev->hs_lcnt); 399 - } 395 + /* Write high speed timing parameters */ 396 + regmap_write(dev->map, DW_IC_HS_SCL_HCNT, dev->hs_hcnt); 397 + regmap_write(dev->map, DW_IC_HS_SCL_LCNT, dev->hs_lcnt); 400 398 } 401 399 402 400 /**