At the start of the thread we are changing the address limit, restoring it
to the default while exiting.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/gadget/function/f_mass_storage.c
b
After the worker thread is launched, bind function is doing further
configuration. In case of failure stop the thread.
Signed-off-by: Sanjay Singh Rawat
---
history:
v3: - handled Michal's comment; used existing function to change state and
exit thread.
- tested for f_mass_stor
After the worker thread is launched, bind function is doing further
configuration. Stop the thread in case of failure. Also use
kthread_run to encapsulate thread creation and launch.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 11 ++-
1 file
As the bind configuration is not complete during thread
creation, defering the thread wake to end of bind.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/function
After the worker thread is launched, bind function is doing further
configuration. In case of failure stop the thread.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget
This patch set handles storage thread in error case.
Sanjay Singh Rawat (2):
usb: gadget: f_mass_storage: stop thread in bind failure case
usb: gadget: f_mass_storage: defer storage thread wakeup
drivers/usb/gadget/function/f_mass_storage.c | 12
1 file changed, 8 insertions
On 6/6/2015 3:22 PM, Michal Nazarewicz wrote:
On Fri, Jun 05 2015, Sanjay Singh Rawat wrote:
As the bind configuration is not complete during thread
creation, defering the thread wake to end of bind.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 5
(needed by patch-4) : moved fsg_common structure to header
file, as code is dereferencing common->thread_task.
Sanjay Singh Rawat (4):
usb: gadget: f_mass_storage: stop thread in bind failure case
usb: gadget: mass-storage: defer storage thread wakeup
usb: gadget: move common storage gad
After the worker thread is launched, bind function is doing further
configuration. In case of failure stop the thread.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget
struct fsg_common is used in multiple files, moving it to header
file from the source file.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 70
drivers/usb/gadget/function/f_mass_storage.h | 68 ++-
2
As the configuration is not complete at the time of thread
creation, defering the thread wakeup till the end.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 5 +++--
drivers/usb/gadget/legacy/acm_ms.c | 3 +++
drivers/usb/gadget/legacy
We are launching the mass-storage thread during the function configuration
phase, in case of failure adding function to stop the thread.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/legacy/acm_ms.c | 2 ++
drivers/usb/gadget/legacy/mass_storage.c | 1 +
drivers/usb/gadget
: freeing file-storage thread in configuration error case.
- added patch-3 (needed by patch-4) : moved fsg_common structure to
header
file, as code is dereferencing common->thread_task.
Sanjay Singh Rawat (2):
usb: gadget: f_mass_storage: stop thread in bind failure case
After the worker thread is launched, bind function is doing further
configuration. In case of failure stop the thread.
Signed-off-by: Sanjay Singh Rawat
Acked-by: Michal Nazarewicz
---
drivers/usb/gadget/function/f_mass_storage.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions
As the configuration is not complete at the time of thread
creation, defering the file-storage thread wakeup till the end.
Also stop the thread in case of failure during configuration.
Signed-off-by: Sanjay Singh Rawat
---
drivers/usb/gadget/function/f_mass_storage.c | 75
15 matches
Mail list logo