]> git.infradead.org Git - users/hch/misc.git/commit
i3c: dw: Add some functions for reusability
authorAniket <aniketmaurya@google.com>
Mon, 8 Jul 2024 06:21:02 +0000 (06:21 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 26 Jul 2024 12:21:30 +0000 (14:21 +0200)
commiteffd21743c39a6535f204812006054fa172e4313
tree1e60badc7fe263298d772a7ca4379e9fe1a17817
parent4e89bc48e66a9aef46a705943d3f81bffb3a2288
i3c: dw: Add some functions for reusability

Separate logic for setting intr/thld registers in a func.
Also modify enable function to take care of setting all fields in DEVICE_CTRL.
These functions can be reused later for power management.

Signed-off-by: Aniket <aniketmaurya@google.com>
Link: https://lore.kernel.org/r/20240708062103.3296587-3-aniketmaurya@google.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c