mux: add support for delay after muxing
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Thu, 7 Oct 2021 13:46:39 +0000 (15:46 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 Oct 2021 19:02:42 +0000 (20:02 +0100)
commit17b5b576ff5faff99a4c8140d521cd4d7fff5c16
treec0b7b88fc7c5bea50391a4322156218ed37fdfe8
parent796e5d0b1e9baa2c80c234efd54d561e6d1cf1e7
mux: add support for delay after muxing

Hardware may require some time for the muxed analog signals to settle
after the muxing is changed.  Allow users of the mux subsystem to
specify this delay with the new mux_control_select_delay() function (and
the _try equivalent).

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Peter Rosin <peda@axentia.se>
Link: https://lore.kernel.org/r/20211007134641.13417-2-vincent.whitchurch@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/mux/core.c
include/linux/mux/consumer.h
include/linux/mux/driver.h