Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5e828ac3
Commit
5e828ac3
authored
Mar 24, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Mar 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: storage: add logging to reset
- add logging to reset
parent
d4da2538
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
drivers/usb/storage/scsiglue.c
drivers/usb/storage/scsiglue.c
+4
-9
No files found.
drivers/usb/storage/scsiglue.c
View file @
5e828ac3
...
...
@@ -209,17 +209,11 @@ static int usb_storage_device_reset( Scsi_Cmnd *srb )
return
result
;
}
/* This resets the device port
, and simulates the device
* disconnect/reconnect for all drivers which have claimed
* interfaces, including ourself
. */
/* This resets the device port
*/
/* It refuses to work if there's more than one interface in
this device, so that other users are not affected
. */
/* This is always called with scsi_lock(srb->host) held */
/* FIXME: This needs to be re-examined in the face of the new
* hotplug system -- this will implicitly cause a detach/reattach of
* usb-storage, which is not what we want now.
*
* Can we just skip over usb-storage in the while loop?
*/
static
int
usb_storage_bus_reset
(
Scsi_Cmnd
*
srb
)
{
struct
us_data
*
us
;
...
...
@@ -244,6 +238,7 @@ static int usb_storage_bus_reset( Scsi_Cmnd *srb )
US_DEBUGP
(
"usb_reset_device returns %d
\n
"
,
result
);
}
else
{
result
=
-
EBUSY
;
US_DEBUGP
(
"cannot reset a multiinterface device. failing to reset.
\n
"
);
}
US_DEBUGP
(
"bus_reset() complete
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment