All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] suppress led task for KittyHawk's LCD
@ 2006-11-12  0:45 Guy Martin
  2006-11-12  2:07 ` Matthew Wilcox
  2006-11-12 14:04 ` Helge Deller
  0 siblings, 2 replies; 10+ messages in thread
From: Guy Martin @ 2006-11-12  0:45 UTC (permalink / raw)
  To: parisc-linux

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]


Hi All,

I've noticed that the LCD on my K410 is filled at a constant rate with black characters.
After some investigation, it looked like the code updating the led status was filling the LCD.

I believe there is not led support on K class but I didn't checked.

The attached patch disable the led_task, which is updating the led status, for KittyHawk hardware.

Thanks for reviewing :)

  Guy


-- 
Guy Martin
Gentoo Linux - HPPA port Lead


[-- Attachment #2: no-led-on-kittyhawk.patch --]
[-- Type: text/x-patch, Size: 1510 bytes --]

diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
index 8dac2ba..29cb1fe 100644
--- a/drivers/parisc/led.c
+++ b/drivers/parisc/led.c
@@ -56,6 +56,7 @@ #include <asm/uaccess.h>
    relatively large amount of CPU time, some of the calculations can be 
    turned off with the following variables (controlled via procfs) */
 
+static int no_led = 0;
 static int led_type __read_mostly = -1;
 static unsigned char lastleds;	/* LED state from most recent update */
 static unsigned int led_heartbeat __read_mostly = 1;
@@ -65,7 +66,7 @@ static char lcd_text[32]          __read
 static char lcd_text_default[32]  __read_mostly;
 
 
-static struct workqueue_struct *led_wq;
+static struct workqueue_struct *led_wq = NULL;
 static void led_work_func(void *);
 static DECLARE_WORK(led_task, led_work_func, NULL);
 
@@ -134,6 +135,9 @@ static int start_task(void) 
 	/* Display the default text now */
 	if (led_type == LED_HASLCD) lcd_print( lcd_text_default );
 
+	/* There is no led support on KittyHawk */
+	if (no_led) return 0;
+
 	/* Create the work queue and queue the LED task */
 	led_wq = create_singlethread_workqueue("led_wq");	
 	queue_work(led_wq, &led_task);
@@ -695,6 +699,7 @@ int __init led_init(void)
 	case 0x58B:		/* KittyHawk DC2 100 (K200) */
 		printk(KERN_INFO "%s: KittyHawk-Machine (hversion 0x%x) found, "
 				"LED detection skipped.\n", __FILE__, CPU_HVERSION);
+		no_led = 1;	/* no led support on KittyHawk */
 		goto found;	/* use the preinitialized values of lcd_info */
 	}
 

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-11-17 13:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-12  0:45 [parisc-linux] suppress led task for KittyHawk's LCD Guy Martin
2006-11-12  2:07 ` Matthew Wilcox
2006-11-12 14:44   ` Guy Martin
2006-11-12 14:04 ` Helge Deller
2006-11-12 14:50   ` Guy Martin
2006-11-12 15:05     ` Helge Deller
2006-11-13 21:54       ` Guy Martin
2006-11-16 20:55         ` Helge Deller
2006-11-16 21:04           ` Guy Martin
2006-11-17 13:02             ` Thibaut VARENE

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.