* [PATCH, HP SDC] add option to disable HP SDC driver
@ 2008-07-13 16:12 Helge Deller
2008-07-14 14:30 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Helge Deller @ 2008-07-13 16:12 UTC (permalink / raw)
To: dmitry.torokhov, linux-input
Add "no_hpsdc" kernel module option to the hp_sdc driver, so that
the driver can be instructed to not enable the HP SDC port.
This is useful on some older HPPA boxes with HIL keyboard
and HIL mouse where the new HP SDC HIL drivers don't work
yet. By disabling the new hp_sdc driver users are able to use
the older hilkbd driver instead.
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/drivers/input/serio/hp_sdc.c b/drivers/input/serio/hp_sdc.c
index edfedd9..ba11d1b 100644
--- a/drivers/input/serio/hp_sdc.c
+++ b/drivers/input/serio/hp_sdc.c
@@ -105,6 +105,10 @@ EXPORT_SYMBOL(__hp_sdc_enqueue_transaction);
EXPORT_SYMBOL(hp_sdc_enqueue_transaction);
EXPORT_SYMBOL(hp_sdc_dequeue_transaction);
+static unsigned int hp_sdc_disabled;
+module_param_named(no_hpsdc, hp_sdc_disabled, bool, 0);
+MODULE_PARM_DESC(no_hpsdc, "Do not enable HP SDC driver.");
+
static hp_i8042_sdc hp_sdc; /* All driver state is kept in here. */
/*************** primitives for use in any context *********************/
@@ -980,6 +984,11 @@ static int __init hp_sdc_register(void)
unsigned char i;
#endif
+ if (hp_sdc_disabled) {
+ printk(KERN_WARNING PREFIX "HP SDC driver disabled by no_hpsdc=1.\n");
+ return -ENODEV;
+ }
+
hp_sdc.dev = NULL;
hp_sdc.dev_err = 0;
#if defined(__hppa__)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH, HP SDC] add option to disable HP SDC driver
2008-07-13 16:12 [PATCH, HP SDC] add option to disable HP SDC driver Helge Deller
@ 2008-07-14 14:30 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2008-07-14 14:30 UTC (permalink / raw)
To: Helge Deller; +Cc: linux-input
On Sun, Jul 13, 2008 at 06:12:56PM +0200, Helge Deller wrote:
> Add "no_hpsdc" kernel module option to the hp_sdc driver, so that
> the driver can be instructed to not enable the HP SDC port.
>
> This is useful on some older HPPA boxes with HIL keyboard
> and HIL mouse where the new HP SDC HIL drivers don't work
> yet. By disabling the new hp_sdc driver users are able to use
> the older hilkbd driver instead.
>
Will apply, thank you Helge.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-14 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-13 16:12 [PATCH, HP SDC] add option to disable HP SDC driver Helge Deller
2008-07-14 14:30 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).