linux-next: manual merge of the usb-gadget tree with Linus' tree
Hi all,
Today's linux-next merge of the usb-gadget tree got a conflict in:
drivers/usb/cdns3/gadget.c
between commit:
f616c3bda47e ("usb: cdns3: Fix dequeue implementation.")
from Linus' tree and commit:
4f1fa63a6dc2 ("usb: cdns3: Add streams support to cadence USB3 DRD driver")
from the usb-gadget tree.
I have no idea how to handle this, so I just dropped the usb-gadget tree for today - it clearly needs to be rebased on Linus' tree anyway (it has a few shared patches that are different commits and there are further changes to this file in Linus' tree as well. rebasing onto (or merging with) v5.5-rc6 may be useful.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 12 lines · Stephen Rothwell
Today's linux-next merge of the usb-gadget tree got a conflict in:
drivers/usb/cdns3/gadget.cbetween commit:
f616c3bda47e("usb: cdns3: Fix dequeue implementation.")from Linus' tree and commit:
4f1fa63a6dc2("usb: cdns3: Add streams support to cadence USB3 DRD driver")
Quoted 7 lines
from the usb-gadget tree.
I have no idea how to handle this, so I just dropped the usb-gadget tree for today - it clearly needs to be rebased on Linus' tree anyway (it has a few shared patches that are different commits and there are further changes to this file in Linus' tree as well. rebasing onto (or merging with) v5.5-rc6 may be useful.
For today's renesas-drivers, I'm using the attached conflict resolution.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
drivers/usb/cdns3/gadget.c +0 -0
@@@ -1145,37 -1436,56 +1436,64 @@@ static void cdns3_transfer_completed(st request =cdns3_next_request (&priv_ep->pending_req_list); priv_req =to_cdns3_request (request); + trb = priv_ep->trb_pool + priv_ep->dequeue; + +/* Request was dequeued and TRB was changed to TRB_LINK. */ + if (TRB_FIELD_TO_TYPE(trb->control) == TRB_LINK) { +trace_cdns3_complete_trb (priv_ep, trb); +cdns3_move_deq_to_next_trb (priv_req); + } + -/* Re-select endpoint. It could be changed by other CPU during -* handling usb_gadget_giveback_request. -*/ -cdns3_select_ep (priv_dev, priv_ep->endpoint.address); + if (!request->stream_id) { +/* Re-select endpoint. It could be changed by other CPU +* during handling usb_gadget_giveback_request. +*/ +cdns3_select_ep (priv_dev, priv_ep->endpoint.address); -if (!cdns3_request_handled (priv_ep, priv_req)) - goto prepare_next_td; +if (!cdns3_request_handled (priv_ep, priv_req)) + goto prepare_next_td; - trb = priv_ep->trb_pool + priv_ep->dequeue; -trace_cdns3_complete_trb (priv_ep, trb); + trb = priv_ep->trb_pool + priv_ep->dequeue; +trace_cdns3_complete_trb (priv_ep, trb); + +if (trb != priv_req->trb) +dev_warn (priv_dev->dev, +"request_trb=0x%p, queue_trb=0x%p\n" , + priv_req->trb, trb); -if (trb != priv_req->trb) -dev_warn (priv_dev->dev, -"request_trb=0x%p, queue_trb=0x%p\n" , - priv_req->trb, trb); + request->actual =TRB_LEN (le32_to_cpu (trb->length)); +cdns3_move_deq_to_next_trb (priv_req); +cdns3_gadget_giveback (priv_ep, priv_req,0 ); - request->actual =TRB_LEN (le32_to_cpu (trb->length)); -cdns3_move_deq_to_next_trb (priv_req); -cdns3_gadget_giveback (priv_ep, priv_req,0 ); +if (priv_ep->type !=USB_ENDPOINT_XFER_ISOC && +TRBS_PER_SEGMENT ==2 ) +break ; + } else { +/* Re-select endpoint. It could be changed by other CPU +* during handling usb_gadget_giveback_request. +*/ +cdns3_select_ep (priv_dev, priv_ep->endpoint.address); + + trb = priv_ep->trb_pool; +trace_cdns3_complete_trb (priv_ep, trb); -if (priv_ep->type !=USB_ENDPOINT_XFER_ISOC && -TRBS_PER_SEGMENT ==2 ) +if (trb != priv_req->trb) +dev_warn (priv_dev->dev, +"request_trb=0x%p, queue_trb=0x%p\n" , + priv_req->trb, trb); + + request->actual +=TRB_LEN (le32_to_cpu (trb->length)); + +if (!request->num_sgs || + (request->num_sgs == (priv_ep->stream_sg_idx +1 ))) { + priv_ep->stream_sg_idx =0 ; +cdns3_gadget_giveback (priv_ep, priv_req,0 ); + }else { + priv_ep->stream_sg_idx++; +cdns3_ep_run_stream_transfer (priv_ep, request); + }break ; + } } priv_ep->flags &= ~EP_PENDING_REQUEST ;
Pawel Laszczak
maintainerHi,
It's looks like the same issue reported by Stephen Rothwell some days ago.
As I know, the first version of patch "usb: cdns3: Add streams support to cadence USB3 DRD driver" was generated by Jayshri based on Felipe repository
(https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/log/?h=next - branch next).
I don't know why, but there is a lack of "usb: cdns3: Fix dequeue implementation.". It's looks like from some reasons Felipe missed this patch in his next repo.
The latest version "[PATCH v2] usb: cdns3: Add streams support to cadence USB3 DRD driver" has been created based on top of linux-next.git master branch.
In my opinion Felipe has to revert the 4f1fa63a6dc2 ("usb: cdns3: Add streams support to cadence USB3 DRD driver") commit then should apply f616c3bda47e ("usb: cdns3: Fix dequeue implementation.") and again apply
new version of "usb: cdns3: Add streams support to cadence USB3 DRD driver" patch .
Regards,
Pawell
Quoted 36 lines
Hi Stephen,
Quoted 12 lines · Stephen Rothwell
Today's linux-next merge of the usb-gadget tree got a conflict in:
drivers/usb/cdns3/gadget.cbetween commit:
f616c3bda47e("usb: cdns3: Fix dequeue implementation.")from Linus' tree and commit:
4f1fa63a6dc2("usb: cdns3: Add streams support to cadence USB3 DRD driver")Quoted 7 lines
from the usb-gadget tree.
I have no idea how to handle this, so I just dropped the usb-gadget tree for today - it clearly needs to be rebased on Linus' tree anyway (it has a few shared patches that are different commits and there are further changes to this file in Linus' tree as well. rebasing onto (or merging with) v5.5-rc6 may be useful.
For today's renesas-drivers, I'm using the attached conflict resolution.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Geert,
Quoted 2 lines · On Tue, 14 Jan 2020 09:41:57 +0100 Geert Uytterhoeven <[email protected]>…
For today's renesas-drivers, I'm using the attached conflict resolution.
Thanks, I will use your resolution from now on.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi,
Quoted 14 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the usb-gadget tree got a conflict in:
drivers/usb/cdns3/gadget.cbetween commit:
f616c3bda47e("usb: cdns3: Fix dequeue implementation.")from Linus' tree and commit:
4f1fa63a6dc2("usb: cdns3: Add streams support to cadence USB3 DRD driver")
Quoted 7 lines
from the usb-gadget tree.
I have no idea how to handle this, so I just dropped the usb-gadget tree for today - it clearly needs to be rebased on Linus' tree anyway (it has a few shared patches that are different commits and there are further changes to this file in Linus' tree as well. rebasing onto (or merging with) v5.5-rc6 may be useful.
I'll rebase on top of Greg's tree
Signature · 1 line
balbi