Commit 80167598 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Felipe Balbi

usb: gadget: aspeed: Remove unused "suspended" flag

The state bit in the hub is sufficient
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 5f0625aa
...@@ -89,7 +89,6 @@ static void ast_vhub_dev_enable(struct ast_vhub_dev *d) ...@@ -89,7 +89,6 @@ static void ast_vhub_dev_enable(struct ast_vhub_dev *d)
/* Additional cleanups */ /* Additional cleanups */
d->wakeup_en = false; d->wakeup_en = false;
d->suspended = false;
d->enabled = true; d->enabled = true;
} }
...@@ -110,7 +109,6 @@ static void ast_vhub_dev_disable(struct ast_vhub_dev *d) ...@@ -110,7 +109,6 @@ static void ast_vhub_dev_disable(struct ast_vhub_dev *d)
writel(0, d->regs + AST_VHUB_DEV_EN_CTRL); writel(0, d->regs + AST_VHUB_DEV_EN_CTRL);
d->gadget.speed = USB_SPEED_UNKNOWN; d->gadget.speed = USB_SPEED_UNKNOWN;
d->enabled = false; d->enabled = false;
d->suspended = false;
} }
static int ast_vhub_dev_feature(struct ast_vhub_dev *d, static int ast_vhub_dev_feature(struct ast_vhub_dev *d,
...@@ -471,7 +469,6 @@ static const struct usb_gadget_ops ast_vhub_udc_ops = { ...@@ -471,7 +469,6 @@ static const struct usb_gadget_ops ast_vhub_udc_ops = {
void ast_vhub_dev_suspend(struct ast_vhub_dev *d) void ast_vhub_dev_suspend(struct ast_vhub_dev *d)
{ {
d->suspended = true;
if (d->driver && d->driver->suspend) { if (d->driver && d->driver->suspend) {
spin_unlock(&d->vhub->lock); spin_unlock(&d->vhub->lock);
d->driver->suspend(&d->gadget); d->driver->suspend(&d->gadget);
...@@ -481,7 +478,6 @@ void ast_vhub_dev_suspend(struct ast_vhub_dev *d) ...@@ -481,7 +478,6 @@ void ast_vhub_dev_suspend(struct ast_vhub_dev *d)
void ast_vhub_dev_resume(struct ast_vhub_dev *d) void ast_vhub_dev_resume(struct ast_vhub_dev *d)
{ {
d->suspended = false;
if (d->driver && d->driver->resume) { if (d->driver && d->driver->resume) {
spin_unlock(&d->vhub->lock); spin_unlock(&d->vhub->lock);
d->driver->resume(&d->gadget); d->driver->resume(&d->gadget);
......
...@@ -354,7 +354,6 @@ struct ast_vhub_dev { ...@@ -354,7 +354,6 @@ struct ast_vhub_dev {
struct usb_gadget_driver *driver; struct usb_gadget_driver *driver;
bool registered : 1; bool registered : 1;
bool wakeup_en : 1; bool wakeup_en : 1;
bool suspended : 1;
bool enabled : 1; bool enabled : 1;
/* Endpoint structures */ /* Endpoint structures */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment