Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
8460b89a
Commit
8460b89a
authored
10 years ago
by
Hans de Goede
Committed by
Marek Vasut
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
usb: Make pollable int support available outside of ehci-hcd.c
Signed-off-by:
Hans de Goede
<
hdegoede@redhat.com
>
parent
8aa26b8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/usb/host/ehci-hcd.c
+1
-1
1 addition, 1 deletion
drivers/usb/host/ehci-hcd.c
include/usb.h
+9
-0
9 additions, 0 deletions
include/usb.h
with
10 additions
and
1 deletion
drivers/usb/host/ehci-hcd.c
+
1
−
1
View file @
8460b89a
...
...
@@ -1340,7 +1340,7 @@ void *poll_int_queue(struct usb_device *dev, struct int_queue *queue)
}
/* Do not free buffers associated with QHs, they're owned by someone else */
static
int
int
destroy_int_queue
(
struct
usb_device
*
dev
,
struct
int_queue
*
queue
)
{
struct
ehci_ctrl
*
ctrl
=
dev
->
controller
;
...
...
This diff is collapsed.
Click to expand it.
include/usb.h
+
9
−
0
View file @
8460b89a
...
...
@@ -129,6 +129,8 @@ struct usb_device {
unsigned
int
slot_id
;
};
struct
int_queue
;
/*
* You can initialize platform's USB host or device
* ports by passing this enum as an argument to
...
...
@@ -163,6 +165,13 @@ int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
int
submit_int_msg
(
struct
usb_device
*
dev
,
unsigned
long
pipe
,
void
*
buffer
,
int
transfer_len
,
int
interval
);
#ifdef CONFIG_USB_EHCI
/* Only the ehci code has pollable int support */
struct
int_queue
*
create_int_queue
(
struct
usb_device
*
dev
,
unsigned
long
pipe
,
int
queuesize
,
int
elementsize
,
void
*
buffer
);
int
destroy_int_queue
(
struct
usb_device
*
dev
,
struct
int_queue
*
queue
);
void
*
poll_int_queue
(
struct
usb_device
*
dev
,
struct
int_queue
*
queue
);
#endif
/* Defines */
#define USB_UHCI_VEND_ID 0x8086
#define USB_UHCI_DEV_ID 0x7112
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment