regmap: irq: Use one way of setting all bits in the register
Subsystems (2)
PATCH v2 1/1 regmap: irq: Use one way of setting all bits in the register
Currently there are two ways of how we represent all bits set, i.e. UINT_MAX and GENMASK(31, 0). Use the former as the single way of doing that, which is crystal clear on how we fill the unsigned int value.
---
v2: used UINT_MAX (Mark)
drivers/base/regmap/regmap-irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regmap-irq.c +1 -1
@@ -823,7 +823,7 @@ int regmap_add_irq_chip_fwnode(struct fwnode_handle *fwnode,/* Ack masked but set interrupts */ if (d->chip->no_status) {/* no status register so default to all active */ - d->status_buf[i] =GENMASK (31 ,0 ); + d->status_buf[i] =UINT_MAX ; }else { reg = d->get_irq_reg (d, d->chip->status_base, i); ret =regmap_read (map, reg, &d->status_buf[i]);
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Mark Brown
maintainerQuoted 6 lines · Andy Shevchenko
Currently there are two ways of how we represent all bits set, i.e.
UINT_MAXandGENMASK(31, 0). Use the former as the single way of doing that, which is crystal clear on how we fill the unsigned int value.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next
Thanks!
[1/1] regmap: irq: Use one way of setting all bits in the register
commit: 153dbf4adad0082d030c30d20541df2b1af52db6
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark