Openmoko Bug #2254: No usb pressed/released event with 2.6.28/2.6.29

Openmoko Public Trac bugs at docs.openmoko.org
Tue Apr 28 01:03:55 CEST 2009


#2254: No usb pressed/released event with 2.6.28/2.6.29
---------------------+------------------------------------------------------
 Reporter:  Defiant  |          Owner:  openmoko-devel                    
     Type:  defect   |         Status:  new                               
 Priority:  normal   |      Milestone:  FSO                               
Component:  unknown  |        Version:  unspecified                       
 Severity:  normal   |       Keywords:  usb event4 2.6.28 pressed released
 Haspatch:  0        |      Blockedby:                                    
Estimated:           |    Patchreview:                                    
 Blocking:           |   Reproducible:                                    
---------------------+------------------------------------------------------

Comment(by lindi):

 When I plug the wall charger to freerunner I see

 {{{
 #0  pcf50633_irq (irq=53, data=0xc79bdc00) at
 /local/lindi/neolinux/drivers/mfd/pcf50633-core.c:446
 #1  0xc007f4b8 in handle_IRQ_event (irq=53, action=0xc79cc7a0) at
 /local/lindi/neolinux/kernel/irq/handle.c:335
 #2  0xc0080b48 in handle_level_irq (irq=53, desc=0xc03927f0) at
 /local/lindi/neolinux/kernel/irq/chip.c:375
 #3  0xc0039fc4 in s3c_irq_demux_extint8 (irq=53, desc=<value optimized
 out>) at /local/lindi/neolinux/include/linux/irq.h:312
 #4  0xc002e054 in asm_do_IRQ (irq=21, regs=<value optimized out>) at
 /local/lindi/neolinux/include/linux/irq.h:312
 #5  0xc002ea38 in __irq_svc ()
 }}}

 and after that in pcf50633_irq_worker() pcf_int[] has {0x84, 0x0, 0x0,
 0x0, 0x0} which seems to correspond to

 PCF50633_INT1_USBINS    = 0x04, /* USB inserted */

 However, pcf50633_input_probe() only registers itself for the
 PCF50633_IRQ_ONKEYR and PCF50633_IRQ_ONKEYF events so that it can
 report when power button is pressed:

 Event: time 946686973.644550, type 1 (Key), code 116 (Power), value 1
 Event: time 946686973.645172, -------------- Report Sync ------------
 Event: time 946686973.884483, type 1 (Key), code 116 (Power), value 0
 Event: time 946686973.884558, -------------- Report Sync ------------

 Should that Power2 event be added back? I think I know how to add it
 if it is considered useful.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2254#comment:5>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list