OSDN Git Service

pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sat, 8 Sep 2018 23:21:06 +0000 (01:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:27:30 +0000 (09:27 +0100)
commit0497878b6b3f4330a8b644c1625f8b586ce40cd0
tree8d3b019e492f2ab1256caad9a6c22d7a54dc4ece
parent85b89ccf86cececb3e562b071d078a3cf50a54cc
pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges

commit 95691e3eddc41da2d1cd3cca51fecdfb46bd85bc upstream.

Currently, "disable_clkrun" yenta_socket module parameter is only
implemented for TI CardBus bridges.
Add also an implementation for Ricoh bridges that have the necessary
setting documented in publicly available datasheets.

Tested on a RL5C476II with a Sunrich C-160 CardBus NIC that doesn't work
correctly unless the CLKRUN protocol is disabled.

Let's also make it clear in its description that the "disable_clkrun"
module parameter only works on these two previously mentioned brands of
CardBus bridges.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Cc: stable@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/ricoh.h
drivers/pcmcia/yenta_socket.c