diff options
author | Sang-Hun Lee <sanlee@nvidia.com> | 2012-05-15 16:04:41 -0700 |
---|---|---|
committer | Manish Tuteja <mtuteja@nvidia.com> | 2012-05-25 01:06:40 -0700 |
commit | 37c6b17cce927f36ee18b06d97b881865eb7ae26 (patch) | |
tree | d3aada0dcf236da583f5769315f1da8f1602620d | |
parent | 18b635cafa822eda4eac4d98f91c9984589d0c8d (diff) |
tegra: usb: disable interrupts when locking
Problem description:
- tegra_udc_irq uses udc->lock
- Some functions running in the process context was not disabling
interrupts when locking udc->lock
- If a function gets interrupted by tegra_udc_irq after locking
udc->lock, a deadlock occurs, as tegra_udc_irq would also try to
lock
Fix description:
- Use an interruption disabling variant of spin_lock
Bug 983958
Change-Id: Ib774847212da64f1f727a207a4821860ffa7b4a8
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/104680
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>
Tested-by: Manish Tuteja <mtuteja@nvidia.com>
0 files changed, 0 insertions, 0 deletions