fix-hdq-timeout-overflow.patch
authorAndy Green <andy@openmoko.com>
Wed, 4 Mar 2009 07:38:10 +0000 (07:38 +0000)
committerAndy Green <agreen@octopus.localdomain>
Wed, 4 Mar 2009 07:38:10 +0000 (07:38 +0000)
Reported-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andy Green <andy@openmoko.com>
drivers/power/hdq.c

index 8b1aee8..d806236 100644 (file)
@@ -128,7 +128,7 @@ int hdq_fiq_handler(void)
                }
                /* read the next byte */
                hdq_priv.hdq_bit = 8; /* 8 bits of data */
-               hdq_priv.hdq_ctr = 3000 / HDQ_SAMPLE_PERIOD_US;
+               hdq_priv.hdq_ctr = 2500 / HDQ_SAMPLE_PERIOD_US;
                hdq_priv.hdq_state = HDQB_WAIT_RX;
                hdq_priv.pdata->gpio_dir_in();
                break;