Re: [PATCH resend] rt5208: Fix a sleep-in-atomic bug in xd_copy_page

2017-06-05 Thread Greg KH
On Mon, Jun 05, 2017 at 09:26:35AM +0800, Jia-Ju Bai wrote: > Last patch lacks code explanation, and it is included in this patch. That should go below the --- line, as a 'v2' patch. Please fix it up so I don't have to hand-edit this and resend. Please read Documentation/SubmittingPatches for

Re: [PATCH resend] rt5208: Fix a sleep-in-atomic bug in xd_copy_page

2017-06-05 Thread Greg KH
On Mon, Jun 05, 2017 at 09:26:35AM +0800, Jia-Ju Bai wrote: > Last patch lacks code explanation, and it is included in this patch. That should go below the --- line, as a 'v2' patch. Please fix it up so I don't have to hand-edit this and resend. Please read Documentation/SubmittingPatches for

[PATCH resend] rt5208: Fix a sleep-in-atomic bug in xd_copy_page

2017-06-04 Thread Jia-Ju Bai
Last patch lacks code explanation, and it is included in this patch. The driver may sleep under a spin lock, and the function call path is: rtsx_exclusive_enter_ss (acquire the lock by spin_lock) rtsx_enter_ss rtsx_power_off_card xd_cleanup_work xd_delay_write

[PATCH resend] rt5208: Fix a sleep-in-atomic bug in xd_copy_page

2017-06-04 Thread Jia-Ju Bai
Last patch lacks code explanation, and it is included in this patch. The driver may sleep under a spin lock, and the function call path is: rtsx_exclusive_enter_ss (acquire the lock by spin_lock) rtsx_enter_ss rtsx_power_off_card xd_cleanup_work xd_delay_write