diff options
Diffstat (limited to 'drivers/usb/host/r8a66597-hcd.c')
-rw-r--r-- | drivers/usb/host/r8a66597-hcd.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 2bf1320dc9c3..c868be65e763 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c | |||
@@ -401,7 +401,7 @@ static u8 alloc_usb_address(struct r8a66597 *r8a66597, struct urb *urb) | |||
401 | if (r8a66597->address_map & (1 << addr)) | 401 | if (r8a66597->address_map & (1 << addr)) |
402 | continue; | 402 | continue; |
403 | 403 | ||
404 | dbg("alloc_address: r8a66597_addr=%d", addr); | 404 | dev_dbg(&urb->dev->dev, "alloc_address: r8a66597_addr=%d\n", addr); |
405 | r8a66597->address_map |= 1 << addr; | 405 | r8a66597->address_map |= 1 << addr; |
406 | 406 | ||
407 | if (make_r8a66597_device(r8a66597, urb, addr) < 0) | 407 | if (make_r8a66597_device(r8a66597, urb, addr) < 0) |
@@ -426,7 +426,7 @@ static void free_usb_address(struct r8a66597 *r8a66597, | |||
426 | if (!dev) | 426 | if (!dev) |
427 | return; | 427 | return; |
428 | 428 | ||
429 | dbg("free_addr: addr=%d", dev->address); | 429 | dev_dbg(&dev->udev->dev, "free_addr: addr=%d\n", dev->address); |
430 | 430 | ||
431 | dev->state = USB_STATE_DEFAULT; | 431 | dev->state = USB_STATE_DEFAULT; |
432 | r8a66597->address_map &= ~(1 << dev->address); | 432 | r8a66597->address_map &= ~(1 << dev->address); |
@@ -819,7 +819,7 @@ static void enable_r8a66597_pipe(struct r8a66597 *r8a66597, struct urb *urb, | |||
819 | struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); | 819 | struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); |
820 | struct r8a66597_pipe *pipe = hep->hcpriv; | 820 | struct r8a66597_pipe *pipe = hep->hcpriv; |
821 | 821 | ||
822 | dbg("enable_pipe:"); | 822 | dev_dbg(&dev->udev->dev, "enable_pipe:\n"); |
823 | 823 | ||
824 | pipe->info = *info; | 824 | pipe->info = *info; |
825 | set_pipe_reg_addr(pipe, R8A66597_PIPE_NO_DMA); | 825 | set_pipe_reg_addr(pipe, R8A66597_PIPE_NO_DMA); |
@@ -898,7 +898,7 @@ static void disable_r8a66597_pipe_all(struct r8a66597 *r8a66597, | |||
898 | force_dequeue(r8a66597, pipenum, dev->address); | 898 | force_dequeue(r8a66597, pipenum, dev->address); |
899 | } | 899 | } |
900 | 900 | ||
901 | dbg("disable_pipe"); | 901 | dev_dbg(&dev->udev->dev, "disable_pipe\n"); |
902 | 902 | ||
903 | r8a66597->dma_map &= ~(dev->dma_map); | 903 | r8a66597->dma_map &= ~(dev->dma_map); |
904 | dev->dma_map = 0; | 904 | dev->dma_map = 0; |
@@ -2264,7 +2264,7 @@ static int r8a66597_bus_suspend(struct usb_hcd *hcd) | |||
2264 | struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); | 2264 | struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); |
2265 | int port; | 2265 | int port; |
2266 | 2266 | ||
2267 | dbg("%s", __func__); | 2267 | dev_dbg(&r8a66597->device0.udev->dev, "%s\n", __func__); |
2268 | 2268 | ||
2269 | for (port = 0; port < r8a66597->max_root_hub; port++) { | 2269 | for (port = 0; port < r8a66597->max_root_hub; port++) { |
2270 | struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; | 2270 | struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; |
@@ -2273,7 +2273,7 @@ static int r8a66597_bus_suspend(struct usb_hcd *hcd) | |||
2273 | if (!(rh->port & USB_PORT_STAT_ENABLE)) | 2273 | if (!(rh->port & USB_PORT_STAT_ENABLE)) |
2274 | continue; | 2274 | continue; |
2275 | 2275 | ||
2276 | dbg("suspend port = %d", port); | 2276 | dev_dbg(&rh->dev->udev->dev, "suspend port = %d\n", port); |
2277 | r8a66597_bclr(r8a66597, UACT, dvstctr_reg); /* suspend */ | 2277 | r8a66597_bclr(r8a66597, UACT, dvstctr_reg); /* suspend */ |
2278 | rh->port |= USB_PORT_STAT_SUSPEND; | 2278 | rh->port |= USB_PORT_STAT_SUSPEND; |
2279 | 2279 | ||
@@ -2295,7 +2295,7 @@ static int r8a66597_bus_resume(struct usb_hcd *hcd) | |||
2295 | struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); | 2295 | struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); |
2296 | int port; | 2296 | int port; |
2297 | 2297 | ||
2298 | dbg("%s", __func__); | 2298 | dev_dbg(&r8a66597->device0.udev->dev, "%s\n", __func__); |
2299 | 2299 | ||
2300 | for (port = 0; port < r8a66597->max_root_hub; port++) { | 2300 | for (port = 0; port < r8a66597->max_root_hub; port++) { |
2301 | struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; | 2301 | struct r8a66597_root_hub *rh = &r8a66597->root_hub[port]; |
@@ -2304,7 +2304,7 @@ static int r8a66597_bus_resume(struct usb_hcd *hcd) | |||
2304 | if (!(rh->port & USB_PORT_STAT_SUSPEND)) | 2304 | if (!(rh->port & USB_PORT_STAT_SUSPEND)) |
2305 | continue; | 2305 | continue; |
2306 | 2306 | ||
2307 | dbg("resume port = %d", port); | 2307 | dev_dbg(&rh->dev->udev->dev, "resume port = %d\n", port); |
2308 | rh->port &= ~USB_PORT_STAT_SUSPEND; | 2308 | rh->port &= ~USB_PORT_STAT_SUSPEND; |
2309 | rh->port |= USB_PORT_STAT_C_SUSPEND << 16; | 2309 | rh->port |= USB_PORT_STAT_C_SUSPEND << 16; |
2310 | r8a66597_mdfy(r8a66597, RESUME, RESUME | UACT, dvstctr_reg); | 2310 | r8a66597_mdfy(r8a66597, RESUME, RESUME | UACT, dvstctr_reg); |
@@ -2360,7 +2360,7 @@ static int r8a66597_suspend(struct device *dev) | |||
2360 | struct r8a66597 *r8a66597 = dev_get_drvdata(dev); | 2360 | struct r8a66597 *r8a66597 = dev_get_drvdata(dev); |
2361 | int port; | 2361 | int port; |
2362 | 2362 | ||
2363 | dbg("%s", __func__); | 2363 | dev_dbg(dev, "%s\n", __func__); |
2364 | 2364 | ||
2365 | disable_controller(r8a66597); | 2365 | disable_controller(r8a66597); |
2366 | 2366 | ||
@@ -2378,7 +2378,7 @@ static int r8a66597_resume(struct device *dev) | |||
2378 | struct r8a66597 *r8a66597 = dev_get_drvdata(dev); | 2378 | struct r8a66597 *r8a66597 = dev_get_drvdata(dev); |
2379 | struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597); | 2379 | struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597); |
2380 | 2380 | ||
2381 | dbg("%s", __func__); | 2381 | dev_dbg(dev, "%s\n", __func__); |
2382 | 2382 | ||
2383 | enable_controller(r8a66597); | 2383 | enable_controller(r8a66597); |
2384 | usb_root_hub_lost_power(hcd->self.root_hub); | 2384 | usb_root_hub_lost_power(hcd->self.root_hub); |