Loading drivers/usb/gadget/s3c2410_udc.c +60 −64 Original line number Diff line number Diff line Loading @@ -685,10 +685,9 @@ static void s3c2410_udc_handle_ep0_idle(struct s3c2410_udc *dev, s3c2410_udc_clear_ep0_opr(base_addr); if (dev->req_std) { if (!s3c2410_udc_get_status(dev, crq)) { if (!s3c2410_udc_get_status(dev, crq)) return; } } break; case USB_REQ_CLEAR_FEATURE: Loading Loading @@ -803,16 +802,14 @@ static void s3c2410_udc_handle_ep0(struct s3c2410_udc *dev) case EP0_IN_DATA_PHASE: /* GET_DESCRIPTOR etc */ dprintk(DEBUG_NORMAL, "EP0_IN_DATA_PHASE ... what now?\n"); if (!(ep0csr & S3C2410_UDC_EP0_CSR_IPKRDY) && req) { if (!(ep0csr & S3C2410_UDC_EP0_CSR_IPKRDY) && req) s3c2410_udc_write_fifo(ep, req); } break; case EP0_OUT_DATA_PHASE: /* SET_DESCRIPTOR etc */ dprintk(DEBUG_NORMAL, "EP0_OUT_DATA_PHASE ... what now?\n"); if ((ep0csr & S3C2410_UDC_EP0_CSR_OPKRDY) && req ) { if ((ep0csr & S3C2410_UDC_EP0_CSR_OPKRDY) && req) s3c2410_udc_read_fifo(ep, req); } break; case EP0_END_XFER: Loading Loading @@ -860,9 +857,8 @@ static void s3c2410_udc_handle_ep(struct s3c2410_ep *ep) return; } if (!(ep_csr1 & S3C2410_UDC_ICSR1_PKTRDY) && req) { if (!(ep_csr1 & S3C2410_UDC_ICSR1_PKTRDY) && req) s3c2410_udc_write_fifo(ep, req); } } else { udc_write(idx, S3C2410_UDC_INDEX_REG); ep_csr1 = udc_read(S3C2410_UDC_OUT_CSR1_REG); Loading @@ -875,11 +871,10 @@ static void s3c2410_udc_handle_ep(struct s3c2410_ep *ep) return; } if ((ep_csr1 & S3C2410_UDC_OCSR1_PKTRDY) && req) { if ((ep_csr1 & S3C2410_UDC_OCSR1_PKTRDY) && req) s3c2410_udc_read_fifo(ep, req); } } } #include <mach/regs-irq.h> Loading Loading @@ -1486,9 +1481,9 @@ static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) } s3c2410_udc_disable(udc); } } else } else { return -EOPNOTSUPP; } return 0; } Loading Loading @@ -2030,7 +2025,8 @@ static int s3c2410_udc_remove(struct platform_device *pdev) } #ifdef CONFIG_PM static int s3c2410_udc_suspend(struct platform_device *pdev, pm_message_t message) static int s3c2410_udc_suspend(struct platform_device *pdev, pm_message_t message) { s3c2410_udc_command(S3C2410_UDC_P_DISABLE); Loading Loading
drivers/usb/gadget/s3c2410_udc.c +60 −64 Original line number Diff line number Diff line Loading @@ -685,10 +685,9 @@ static void s3c2410_udc_handle_ep0_idle(struct s3c2410_udc *dev, s3c2410_udc_clear_ep0_opr(base_addr); if (dev->req_std) { if (!s3c2410_udc_get_status(dev, crq)) { if (!s3c2410_udc_get_status(dev, crq)) return; } } break; case USB_REQ_CLEAR_FEATURE: Loading Loading @@ -803,16 +802,14 @@ static void s3c2410_udc_handle_ep0(struct s3c2410_udc *dev) case EP0_IN_DATA_PHASE: /* GET_DESCRIPTOR etc */ dprintk(DEBUG_NORMAL, "EP0_IN_DATA_PHASE ... what now?\n"); if (!(ep0csr & S3C2410_UDC_EP0_CSR_IPKRDY) && req) { if (!(ep0csr & S3C2410_UDC_EP0_CSR_IPKRDY) && req) s3c2410_udc_write_fifo(ep, req); } break; case EP0_OUT_DATA_PHASE: /* SET_DESCRIPTOR etc */ dprintk(DEBUG_NORMAL, "EP0_OUT_DATA_PHASE ... what now?\n"); if ((ep0csr & S3C2410_UDC_EP0_CSR_OPKRDY) && req ) { if ((ep0csr & S3C2410_UDC_EP0_CSR_OPKRDY) && req) s3c2410_udc_read_fifo(ep, req); } break; case EP0_END_XFER: Loading Loading @@ -860,9 +857,8 @@ static void s3c2410_udc_handle_ep(struct s3c2410_ep *ep) return; } if (!(ep_csr1 & S3C2410_UDC_ICSR1_PKTRDY) && req) { if (!(ep_csr1 & S3C2410_UDC_ICSR1_PKTRDY) && req) s3c2410_udc_write_fifo(ep, req); } } else { udc_write(idx, S3C2410_UDC_INDEX_REG); ep_csr1 = udc_read(S3C2410_UDC_OUT_CSR1_REG); Loading @@ -875,11 +871,10 @@ static void s3c2410_udc_handle_ep(struct s3c2410_ep *ep) return; } if ((ep_csr1 & S3C2410_UDC_OCSR1_PKTRDY) && req) { if ((ep_csr1 & S3C2410_UDC_OCSR1_PKTRDY) && req) s3c2410_udc_read_fifo(ep, req); } } } #include <mach/regs-irq.h> Loading Loading @@ -1486,9 +1481,9 @@ static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) } s3c2410_udc_disable(udc); } } else } else { return -EOPNOTSUPP; } return 0; } Loading Loading @@ -2030,7 +2025,8 @@ static int s3c2410_udc_remove(struct platform_device *pdev) } #ifdef CONFIG_PM static int s3c2410_udc_suspend(struct platform_device *pdev, pm_message_t message) static int s3c2410_udc_suspend(struct platform_device *pdev, pm_message_t message) { s3c2410_udc_command(S3C2410_UDC_P_DISABLE); Loading