]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:33:56 +0000 (09:33 +0200)
commit8fd89aa382a5a147b780cc5ebd12c58838e71c4c
treee72ea582dcecf9e67607e2123954c8618740d015
parentda6c6adba557b5be54156aa2670fb874b8fb1a80
counter: ti-eqep: enable clock at probe

[ Upstream commit 0cf81c73e4c6a4861128a8f27861176ec312af4e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/counter/ti-eqep.c