Ticket #315 (closed defect: fixed)
Kernel OOPS when controlling Vibrator
| Reported by: | mickey@… | Owned by: | laforge@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | kernel | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
#define GTA01_GPIO_VIBRATOR_ON S3C2410_GPG11
is right for GTA01v3 and GTA01v3
for GTA01Bv2 and GTA01Bv3 we need to use S3C2410_GPB10
Attachments
Change History
comment:1 Changed 6 years ago by mickey@…
- Summary changed from Vibrator GPIO in gta01.h is wrong to Vibrator GPIO in gta01.h needs updating
comment:2 Changed 6 years ago by laforge@…
and for GTA01Bv4 it is yet another GPIO ;)
I'm working on a patch.
comment:4 Changed 6 years ago by laforge@…
- Status changed from assigned to closed
- Resolution set to fixed
Committed revision 1584.
comment:5 Changed 6 years ago by mickey@…
- Status changed from closed to reopened
- Resolution fixed deleted
- Summary changed from Vibrator GPIO in gta01.h needs updating to Kernel OOPS when controlling Vibrator
Kernel 2.6.20.4-moko8 (r1637)
<4> <1>Unable to handle kernel paging request at virtual address 5655b384
<1>pgd = c50d8000
<1>[5655b384] *pgd=00000000
<4>Internal error: Oops: 5 #3
<4>Modules linked in: rfcomm ohci_hcd hidp l2cap bluetooth
<4>CPU: 0
<4>PC is at s3c2410_gpio_setpin+0x20/0x44
<4>LR is at 0xf6400004
<4>pc : [<c002e4e0>] lr : [<f6400004>] Not tainted
<4>sp : c5791ed8 ip : c02b6700 fp : c5791ee8
<4>r10: c6701740 r9 : c5791f80 r8 : c5701b34
<4>r7 : 00000002 r6 : 00000002 r5 : c030f424 r4 : 20000013
<4>r3 : 20000093 r2 : 00000000 r1 : 00000001 r0 : c02b6718
<4>Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment user
<4>Control: C000317F
<4>Table: 350D8000 DAC: 00000015
<4>Process echo (pid: 1198, stack limit = 0xc5790250)
<4>Stack: (0xc5791ed8 to 0xc5792000)
<4>1ec0: c5609000 c5791ef8
<4>1ee0: c5791eec c01afb50 c002e4d0 c5791f1c c5791efc c01af1e0 c01afb40 c5609001
<4>1f00: 00000002 c5701b20 4001b000 00000000 c5791f2c c5791f20 c0177b18 c01af168
<4>1f20: c5791f58 c5791f30 c00baf30 c0177af8 c6701740 4001b000 c5791f80 00000002
<4>1f40: c0023004 c5790000 401fa000 c5791f7c c5791f5c c007e7d8 c00bae1c ffffffff
<4>1f60: c6701740 00000000 00000000 00000004 c5791fa4 c5791f80 c007eee0 c007e72c
<4>1f80: 00000000 00000000 00000000 00000002 4001b000 401fa634 00000000 c5791fa8
<4>1fa0: c0022e60 c007eea4 00000002 4001b000 00000001 4001b000 00000002 00000000
<4>1fc0: 00000002 4001b000 401fa634 00000002 00000000 00000000 401fa000 00000000
<4>1fe0: 00000000 beadccec 40144d90 4018ffc4 60000010 00000001 7bef7bef 7bef7bef
<4>Backtrace:
<4>[<c002e4c0>] (s3c2410_gpio_setpin+0x0/0x44) from [<c01afb50>]
(gta01led_vib_set+0x20/0x24)
<4> r4 = C5609000
<4>[<c01afb30>] (gta01led_vib_set+0x0/0x24) from [<c01af1e0>]
(led_brightness_store+0x88/0x94)
<4>[<c01af158>] (led_brightness_store+0x0/0x94) from [<c0177b18>]
(class_device_attr_store+0x30/0x3c)
<4> r7 = 00000000 r6 = 4001B000 r5 = C5701B20 r4 = 00000002
<4>[<c0177ae8>] (class_device_attr_store+0x0/0x3c) from [<c00baf30>]
(sysfs_write_file+0x124/0x188)
<4>[<c00bae0c>] (sysfs_write_file+0x0/0x188) from [<c007e7d8>]
(vfs_write+0xbc/0x198)
<4>[<c007e71c>] (vfs_write+0x0/0x198) from [<c007eee0>] (sys_write+0x4c/0x7c)
<4> r7 = 00000004 r6 = 00000000 r5 = 00000000 r4 = C6701740
<4>[<c007ee94>] (sys_write+0x0/0x7c) from [<c0022e60>] (ret_fast_syscall+0x0/0x2c)
<4> r6 = 401FA634 r5 = 4001B000 r4 = 00000002
<4>Code: e3843080 e121f003 e59fe020 e3c0c01f (e79e30ac)
Changed 6 years ago by alphaone@…
- Attachment vibrator-bv3-resource.patch added
Set gpio to the correct one when device is a gta01bv2/3
Changed 6 years ago by alphaone@…
- Attachment to_vpriv-fix.patch added
Fix to_vpriv function to return the correct pointer to driver_data
