[PATCH v2] usb: gadget: Fix spinlock lockup on usb_function_deactivate

2020-12-02 Thread Sriharsha Allenki
tivate. The same lockup can happen in the usb_gadget_activate path. Fix that path as well. Reported-by: Peter Chen Link: https://lore.kernel.org/linux-usb/20201102094936.GA29581@b29397-desktop/ Tested-by: Peter Chen Signed-off-by: Sriharsha Allenki --- Changes since v1: - Updated commit text to r

[PATCH] usb: gadget: Fix spinlock lockup on usb_function_deactivate

2020-11-04 Thread Sriharsha Allenki
tivate. Reported-by: Peter Chen Link: https://lore.kernel.org/linux-usb/20201102094936.GA29581@b29397-desktop/ Tested-by: Peter Chen Signed-off-by: Sriharsha Allenki --- drivers/usb/gadget/composite.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/

Re: [PATCH] usb: typec: Prevent setting invalid opmode value

2020-10-27 Thread Sriharsha Allenki
Hi Heikki, Thanks a lot for the review. On 10/26/2020 6:35 PM, Heikki Krogerus wrote: > On Thu, Oct 22, 2020 at 03:12:14PM +0530, Sriharsha Allenki wrote: >> Setting opmode to invalid values would lead to a >> paging fault failure when there is an access to the >>

[PATCH] usb: typec: Prevent setting invalid opmode value

2020-10-22 Thread Sriharsha Allenki
Setting opmode to invalid values would lead to a paging fault failure when there is an access to the power_operation_mode. Prevent this by checking the validity of the value that the opmode is being set. Cc: Fixes: fab9288428ec ("usb: USB Type-C connector class") Signed-off-by: