]> www.infradead.org Git - users/jedix/linux-maple.git/commit
counter: ti-eqep: enable clock at probe
authorDavid Lechner <dlechner@baylibre.com>
Fri, 21 Jun 2024 22:22:40 +0000 (17:22 -0500)
committerWilliam Breathitt Gray <wbg@kernel.org>
Sat, 22 Jun 2024 04:48:11 +0000 (13:48 +0900)
commit0cf81c73e4c6a4861128a8f27861176ec312af4e
tree0f30e53fef2ef6c29cdaa2cca1c9d7d8f19c569e
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
counter: ti-eqep: enable clock at probe

The TI eQEP clock is both a functional and interface clock. Since it is
required for the device to function, we should be enabling it at probe.

Up to now, we've just been lucky that the clock was enabled by something
else on the system already.

Fixes: f213729f6796 ("counter: new TI eQEP driver")
Reviewed-by: Judith Mendez <jm@ti.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20240621-ti-eqep-enable-clock-v2-1-edd3421b54d4@baylibre.com
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
drivers/counter/ti-eqep.c