alistair23-linux/drivers/usb/musb
Merlijn Wajer df6b074dbe usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers
Without pm_runtime_{get,put}_sync calls in place, reading
vbus status via /sys causes the following error:

Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa0ab060
pgd = b333e822
[fa0ab060] *pgd=48011452(bad)

[<c05261b0>] (musb_default_readb) from [<c0525bd0>] (musb_vbus_show+0x58/0xe4)
[<c0525bd0>] (musb_vbus_show) from [<c04c0148>] (dev_attr_show+0x20/0x44)
[<c04c0148>] (dev_attr_show) from [<c0259f74>] (sysfs_kf_seq_show+0x80/0xdc)
[<c0259f74>] (sysfs_kf_seq_show) from [<c0210bac>] (seq_read+0x250/0x448)
[<c0210bac>] (seq_read) from [<c01edb40>] (__vfs_read+0x1c/0x118)
[<c01edb40>] (__vfs_read) from [<c01edccc>] (vfs_read+0x90/0x144)
[<c01edccc>] (vfs_read) from [<c01ee1d0>] (SyS_read+0x3c/0x74)
[<c01ee1d0>] (SyS_read) from [<c0106fe0>] (ret_fast_syscall+0x0/0x54)

Solution was suggested by Tony Lindgren <tony@atomide.com>.

Signed-off-by: Merlijn Wajer <merlijn@wizzup.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-06 09:17:34 -08:00
..
am35x.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
blackfin.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
blackfin.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
cppi_dma.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
cppi_dma.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
da8xx.c USB: musb: da8xx: remove clock con_id 2018-01-09 16:15:19 +01:00
davinci.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
davinci.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
jz4740.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx 2017-04-18 16:48:26 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
musb_am335x.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
musb_core.c usb: musb: call pm_runtime_{get,put}_sync before reading vbus registers 2018-03-06 09:17:34 -08:00
musb_core.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_cppi41.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
musb_debug.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_debugfs.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_dma.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_dsps.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_gadget.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_gadget.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_gadget_ep0.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_host.c Revert "usb: musb: host: don't start next rx urb if current one failed" 2018-02-20 15:02:46 +01:00
musb_host.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_io.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_regs.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_trace.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_trace.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musb_virthub.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musbhsdma.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
musbhsdma.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
omap2430.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
omap2430.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
sunxi.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
tusb6010.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
tusb6010.h USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
tusb6010_omap.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
ux500.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00
ux500_dma.c USB: musb: Remove redundant license text 2017-11-07 15:45:01 +01:00