• Barry Song's avatar
    pinctrl: sirf: fix kernel panic in gpio_lock_as_irq · e291fd20
    Barry Song authored
    commit 655dada6 causes kernel panic, this patch fixes it.
    
        [    1.197816] [ffffffee] *pgd=0d7fd821, *pte=00000000, *ppte=00000000
        [    1.204070] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
        [    1.209447] Modules linked in:
        [    1.212490] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.0-rc1 #3
        [    1.218737] task: cd03c000 ti: cd040000 task.ti: cd040000
        [    1.224127] PC is at gpiod_lock_as_irq+0xc/0x64
        [    1.228634] LR is at sirfsoc_gpio_irq_startup+0x18/0x44
        [    1.233842] pc : [<c01d3990>]    lr : [<c01d1c38>]    psr: a0000193
        [    1.233842] sp : cd041d30  ip : 00000000  fp : 00000000
        [    1.245296] r10: 00000000  r9 : cd023db4  r8 : 60000113
        [    1.250505] r7 : 0000003e  r6 : cd023dd4  r5 : c06bfa54  r4 : cd023d80
        [    1.257014] r3 : 00000020  r2 : 00000000  r1 : ffffffea  r0 : ffffffea
        [    1.263526] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
        [    1.270903] Con...
    e291fd20
pinctrl-sirf.c 24.3 KB