From d389f9f74391fa6d4f982a4aba8d96b23300ebfd Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 2 Dec 2013 14:43:46 -0600 Subject: [PATCH] wcaxx: Add extra dummy read when checking for single fxs modules. This extra read eliminates some problems with detecting certain S100M modules. It is unclear at this time why it is necessary. Signed-off-by: Shaun Ruffell --- drivers/dahdi/wcaxx-base.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/dahdi/wcaxx-base.c b/drivers/dahdi/wcaxx-base.c index 97bd00b..6fe67ce 100644 --- a/drivers/dahdi/wcaxx-base.c +++ b/drivers/dahdi/wcaxx-base.c @@ -3610,6 +3610,10 @@ static bool check_for_single_fxs(struct wcaxx *wc, unsigned int port) result = wcaxx_init_fxs_port(wc, mod); if (!result) mod->type = NONE; + + /* It is currently unclear why this read is necessary for some of the + * S100M modules to properly function. */ + wcaxx_getreg(wc, mod, 0x00); return result; }