staging: octeon-usb: octeon-hcd: fixed indent and ending with brace coding style issue
PATCH 1/1 staging: octeon-usb: octeon-hcd: fixed indent and ending with brace coding style issue
Fixed coding style issues
--- drivers/staging/octeon-usb/octeon-hcd.c | 96 ++++++++++++------------- 1 file changed, 46 insertions(+), 50 deletions(-)
drivers/staging/octeon-usb/octeon-hcd.c +46 -50
@@ -1258,7 +1258,7 @@ static void cvmx_usb_poll_tx_fifo(struct octeon_hcd *usb)union cvmx_usbcx_hptxsts tx_status; tx_status.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HPTXSTS (usb->index)); +CVMX_USBCX_HPTXSTS (usb->index));if (cvmx_usb_fill_tx_hw (usb, &usb->periodic, tx_status.s.ptxfspcavail)) USB_SET_FIELD32(CVMX_USBCX_GINTMSK(usb->index),
@@ -1272,7 +1272,7 @@ static void cvmx_usb_poll_tx_fifo(struct octeon_hcd *usb)union cvmx_usbcx_gnptxsts tx_status; tx_status.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_GNPTXSTS (usb->index)); +CVMX_USBCX_GNPTXSTS (usb->index));if (cvmx_usb_fill_tx_hw (usb, &usb->nonperiodic, tx_status.s.nptxfspcavail)) USB_SET_FIELD32(CVMX_USBCX_GINTMSK(usb->index),
@@ -1298,13 +1298,13 @@ static void cvmx_usb_fill_tx_fifo(struct octeon_hcd *usb, int channel)/* We only need to fill data on outbound channels */ hcchar.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCCHARX (channel, usb->index)); +CVMX_USBCX_HCCHARX (channel, usb->index));if (hcchar.s.epdir !=CVMX_USB_DIRECTION_OUT )return ;/* OUT Splits only have data on the start and not the complete */ usbc_hcsplt.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCSPLTX (channel, usb->index)); +CVMX_USBCX_HCSPLTX (channel, usb->index));if (usbc_hcsplt.s.spltena && usbc_hcsplt.s.compsplt)return ;
@@ -1313,7 +1313,7 @@ static void cvmx_usb_fill_tx_fifo(struct octeon_hcd *usb, int channel)* words. */ usbc_hctsiz.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCTSIZX (channel, usb->index)); +CVMX_USBCX_HCTSIZX (channel, usb->index));if (!usbc_hctsiz.s.xfersize)return ;
@@ -1360,7 +1360,7 @@ static void cvmx_usb_start_channel_control(struct octeon_hcd *usb,union cvmx_usbcx_hctsizx usbc_hctsiz; usbc_hctsiz.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCTSIZX (channel, usb->index)); +CVMX_USBCX_HCTSIZX (channel, usb->index));switch (transaction->stage) {case CVMX_USB_STAGE_NON_CONTROL :
@@ -1517,7 +1517,7 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,/* Clear all channel status bits */ usbc_hcint.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCINTX (channel, usb->index)); +CVMX_USBCX_HCINTX (channel, usb->index)); cvmx_usb_write_csr32(usb, CVMX_USBCX_HCINTX(channel, usb->index),
@@ -1552,7 +1552,7 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,/* Enable the channel interrupt to propagate */ usbc_haintmsk.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HAINTMSK (usb->index)); +CVMX_USBCX_HAINTMSK (usb->index)); usbc_haintmsk.s.haintmsk |=1 << channel;cvmx_usb_write_csr32 (usb,CVMX_USBCX_HAINTMSK (usb->index), usbc_haintmsk.u32);
@@ -1797,15 +1797,13 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,*/ if (pipe->transfer_dir ==CVMX_USB_DIRECTION_OUT ) {if (pipe->multi_count <2 )/* Need DATA0 */ -USB_SET_FIELD32 ( -CVMX_USBCX_HCTSIZX (channel, - usb->index), - cvmx_usbcx_hctsizx, pid,0 ); +USB_SET_FIELD32 (CVMX_USBCX_HCTSIZX (channel, + usb->index), + cvmx_usbcx_hctsizx, pid,0 );else /* Need MDATA */ -USB_SET_FIELD32 ( -CVMX_USBCX_HCTSIZX (channel, - usb->index), - cvmx_usbcx_hctsizx, pid,3 ); +USB_SET_FIELD32 (CVMX_USBCX_HCTSIZX (channel, + usb->index), + cvmx_usbcx_hctsizx, pid,3 ); } }break ;
@@ -1836,7 +1834,7 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,* Returns: Pipe or NULL if none are ready */ static struct cvmx_usb_pipe *cvmx_usb_find_ready_pipe (struct octeon_hcd *usb, -enum cvmx_usb_transfer xfer_type) +enum cvmx_usb_transfer xfer_type) {struct list_head *list = usb->active_pipes + xfer_type;u64 current_frame = usb->frame_number;
@@ -2119,17 +2117,17 @@ static void cvmx_usb_complete(struct octeon_hcd *usb,* * Returns: Transaction or NULL on failure. */ -static struct cvmx_usb_transaction *cvmx_usb_submit_transaction ( -struct octeon_hcd *usb, -struct cvmx_usb_pipe *pipe, -enum cvmx_usb_transfer type, -u64 buffer, -int buffer_length, -u64 control_header, -int iso_start_frame, -int iso_number_packets, -struct cvmx_usb_iso_packet *iso_packets, -struct urb *urb) +static struct cvmx_usb_transaction *cvmx_usb_submit_transaction (struct octeon_hcd *usb, +struct cvmx_usb_pipe *pipe, +enum cvmx_usb_transfer type, +u64 buffer, +int buffer_length, +u64 control_header, +int iso_start_frame, +int iso_number_packets, +struct cvmx_usb_iso_packet + *iso_packets, +struct urb *urb) {struct cvmx_usb_transaction *transaction;
@@ -2180,10 +2178,9 @@ static struct cvmx_usb_transaction *cvmx_usb_submit_transaction(* * Returns: A submitted transaction or NULL on failure. */ -static struct cvmx_usb_transaction *cvmx_usb_submit_bulk ( -struct octeon_hcd *usb, -struct cvmx_usb_pipe *pipe, -struct urb *urb) +static struct cvmx_usb_transaction *cvmx_usb_submit_bulk (struct octeon_hcd *usb, +struct cvmx_usb_pipe *pipe, +struct urb *urb) { return cvmx_usb_submit_transaction(usb, pipe, CVMX_USB_TRANSFER_BULK, urb->transfer_dma,
@@ -2204,10 +2201,9 @@ static struct cvmx_usb_transaction *cvmx_usb_submit_bulk(* * Returns: A submitted transaction or NULL on failure. */ -static struct cvmx_usb_transaction *cvmx_usb_submit_interrupt ( -struct octeon_hcd *usb, -struct cvmx_usb_pipe *pipe, -struct urb *urb) +static struct cvmx_usb_transaction *cvmx_usb_submit_interrupt (struct octeon_hcd *usb, +struct cvmx_usb_pipe *pipe, +struct urb *urb) { return cvmx_usb_submit_transaction(usb, pipe, CVMX_USB_TRANSFER_INTERRUPT,
@@ -2229,10 +2225,9 @@ static struct cvmx_usb_transaction *cvmx_usb_submit_interrupt(* * Returns: A submitted transaction or NULL on failure. */ -static struct cvmx_usb_transaction *cvmx_usb_submit_control ( -struct octeon_hcd *usb, -struct cvmx_usb_pipe *pipe, -struct urb *urb) +static struct cvmx_usb_transaction *cvmx_usb_submit_control (struct octeon_hcd *usb, +struct cvmx_usb_pipe *pipe, +struct urb *urb) {int buffer_length = urb->transfer_buffer_length;u64 control_header = urb->setup_dma;
@@ -2260,10 +2255,9 @@ static struct cvmx_usb_transaction *cvmx_usb_submit_control(* * Returns: A submitted transaction or NULL on failure. */ -static struct cvmx_usb_transaction *cvmx_usb_submit_isochronous ( -struct octeon_hcd *usb, -struct cvmx_usb_pipe *pipe, -struct urb *urb) +static struct cvmx_usb_transaction *cvmx_usb_submit_isochronous (struct octeon_hcd *usb, +struct cvmx_usb_pipe *pipe, +struct urb *urb) {struct cvmx_usb_iso_packet *packets;
@@ -2309,7 +2303,8 @@ static int cvmx_usb_cancel(struct octeon_hcd *usb,CVMX_SYNCW ; usbc_hcchar.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCCHARX (pipe->channel, usb->index)); +CVMX_USBCX_HCCHARX (pipe->channel, + usb->index));/* * If the channel isn't enabled then the transaction already * completed.
@@ -2605,11 +2600,12 @@ static int cvmx_usb_poll_channel(struct octeon_hcd *usb, int channel)/* Read the interrupt status bits for the channel */ usbc_hcint.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCINTX (channel, usb->index)); +CVMX_USBCX_HCINTX (channel, usb->index));if (usb->init_flags &CVMX_USB_INITIALIZE_FLAGS_NO_DMA ) { usbc_hcchar.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCCHARX (channel, usb->index)); +CVMX_USBCX_HCCHARX (channel, + usb->index));if (usbc_hcchar.s.chena && usbc_hcchar.s.chdis) {/*
@@ -2688,9 +2684,9 @@ static int cvmx_usb_poll_channel(struct octeon_hcd *usb, int channel)* transferred */ usbc_hcchar.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCCHARX (channel, usb->index)); +CVMX_USBCX_HCCHARX (channel, usb->index)); usbc_hctsiz.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HCTSIZX (channel, usb->index)); +CVMX_USBCX_HCTSIZX (channel, usb->index));/* * Calculating the number of bytes successfully transferred is dependent
@@ -3010,7 +3006,7 @@ static int cvmx_usb_poll(struct octeon_hcd *usb)union cvmx_usbcx_haint usbc_haint; usbc_haint.u32 =cvmx_usb_read_csr32 (usb, -CVMX_USBCX_HAINT (usb->index)); +CVMX_USBCX_HAINT (usb->index));while (usbc_haint.u32) {int channel;
Signature · 1 line
2.26.2
Greg KH
maintainerQuoted 7 lines · Anjandev Momi
Fixed coding style issues
Signed-off-by Anjandev Momi <[email protected]>--- drivers/staging/octeon-usb/octeon-hcd.c | 96 ++++++++++++------------- 1 file changed, 46 insertions(+), 50 deletions(-)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause.
- You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change.
- You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot