PD#SWPL-173442
Problem:
Memory leakage
open usb 2.0 camera fail:SH-20175
Solution:
related host 011
Verify:
t3
Change-Id: I3bd52c35f2aef31f3cb4dbb2eb50f97962d0b032
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-171027
Problem:
Command completion event does not match command,
since when xhci_abort_cmd_ring and
the other command enqueue at the same time
casue to wait_for_completion stuck:
xhci-hcd xhci-hcd.2.auto:
ERROR mismatched command completion event
SET ADDRESS, command->status=25
xhci-hcd xhci-hcd.2.auto:
Timeout while waiting for setup device command
address--E: hub_port_init, 4952
address--S: hub_port_init, 4950
que:CMD-TRB=000000000bd71186, deq=000000000bd71186
xhci_cleanup_command_queue, 1672
SET ADDRESS, command->status=25
xhci-hcd xhci-hcd.2.auto:
Timeout while waiting for setup device command
address--E: hub_port_init, 4952
usb 6-1: device not accepting address 67, error -62
que:CMD-TRB=00000000063428ae, deq=00000000063428ae
irq:CMD-TRB=00000000063428ae, deq=000000000bd71186
xhci-hcd xhci-hcd.2.auto:
Command completion event does not match command
xhci-hcd xhci-hcd.2.auto:
ERROR mismatched command completion event
Solution:
when xhci_complete_del_and_free_cmd must dequeue the command
Verify:
t5m
Change-Id: I401fba241bf5e0f22a680c684853ec1ec2124fe4
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-170453
Problem:
1.When UAC dequeue ISOC OUT,the mdelay will block ISOC IN transfer.
Solution:
1.dequeue do not delay in ISOC mode.
Verify:
AV400
Change-Id: I05bc712fecdc7d47e069191aed9efe2e804d5d8c
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
PD#SWPL-170131
Problem:
T5m usb bus resume timeout.
Solution:
fix usb bus resume timeout.
Verify:
T903D4
Change-Id: Id0deb5af437d70a294424b2033deb7b846947e52
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
PD#SWPL-165147
Problem:
kernel5.15 STD for General Drivers - usb
Solution:
udc
Add thaw&pm_nb in crg_udc.c
host
Modify phy-aml-crg-drd-usb3.c, remove "return" in init.
STR: crg_suspend -> crg_resume
STD: crg_suspend -> crg_shutdown -> hw power off-> crg_resume
Since the regs lose content when powered off, phy init should be
done again. This is test to be compatible with the STR flow.
otg
Add freeze/thaw/restore methods in phy-aml-crg-drd-otg.c
Fix init/exit broken flag by introducing self-recorded flags
in crg-drd.c&crg_udc.c.
Verify:
a311d2_an400
Change-Id: I686463fd3a4167bd216aa29bfdd5c8e8c2358faa
Signed-off-by: dian.shao <dian.shao@amlogic.com>
PD#SWPL-165169
Problem:
plug-in usb3.0 u-disk and suspend, change another usb 3.0 u-disk,
and then resume, xhci died:
xhci-hcd-meson xhci-hcd-meson.0.auto:
Abort failed to stop command ring: -110
xhci-hcd-meson xhci-hcd-meson.0.auto:
xHCI host controller not responding, assume dead
xhci-hcd-meson xhci-hcd-meson.0.auto:
HC died; cleaning up
xhci-hcd-meson xhci-hcd-meson.0.auto:
Unsuccessful disable slot 1 command, status 25
Solution:
disable port before disable slot
Verify:
CRG IP
Change-Id: Ife1f374c849cfe16482ae151d57c6d6e7dc23c9d
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-165972
Problem:
The the portnum of u3phy recorded in the host controller
is not zero when the phy is switched to the pcie.
Solution:
Modify xhci code.
Verify:
sc2_ah212
Change-Id: I0e9e5fce6a51edb835a02f965dd91edabd31ddce
Signed-off-by: dian.shao <dian.shao@amlogic.com>
PD#SWPL-155224
Problem:
irq: nobody cared (try booting with the irqpoll option)
handlers:
[<0000000065ca241a>] usb_hcd_irq
Disabling IRQ #usb
Solution:
usb interrupt is coming,
but the op_regs->status register equals 0, if exit directly,
it may cause the status to remain at 0 and cause xhci to
falsely hang.
Verify:
t3x
Change-Id: I9b643c13b364ab86bb38384551bcb5008680c1ec
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-158524
Problem:
CTS-V usb accessory test unplug&plug too
quickly leading to the racing between unbind
and setup.
Solution:
Add udc_async_callbacks().
Verify:
t7.
Change-Id: I5c4f362583b1e9e3d385fbad0b36da3b92d38eee
Signed-off-by: dian.shao <dian.shao@amlogic.com>
PD#SWPL-149974
Problem:
Too many judgments in xhci_queue_isoc_tx, these could
cause to failure to open camera
Solution:
change
Verify:
sm1
Change-Id: I592bf554e930319c6801af081922272230bac522
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-149407
Problem:
const variables cannot be assigned a value after definition.
Solution:
initialize kprob symbols at definition time.
Verify:
t7c.
Change-Id: I9741da633db166750e51f0580f2bc6c02bb821e7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-142854
Problem:
move xhci and dwc3 code to common_drivers
Solution:
move xhci and dwc3 code to common_drivers
Verify:
all
Change-Id: I9351b3cb5bf515b89c8e9c62a7070947a6a18968
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-146713
Problem:
data read from udisk on otg usb port is error
Solution:
set u2drd wr_outstanding as 0
Verify:
be311
Change-Id: I12a5e155f73526f31afd0f4ae48b9ee031fe2450
Signed-off-by: qi duan <qi.duan@amlogic.com>
PD#SWPL-141703
Problem:
The dwc pcd dma unmap direction is wrong for
control transfer.
Solution:
Fix the direction.
Verify:
Local.
Change-Id: I47516c69ef9f42600baa986b1852f4ca5b7f7672
Signed-off-by: dian.shao <dian.shao@amlogic.com>
PD#SWPL-140857
Problem:
linux-meson compile warning while use gcc > 7.5
Solution:
Fixed some code styles
Verify:
local build server
Change-Id: Ia1f47cfa32291602747d7c0788a6362cf48af023
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
PD#SWPL-139422
Problem:
IDT test failed with replacing GKI
Solution:
using kprobe method to solve problem
Verify:
oppen
Change-Id: Iccdbb2d0a8529a43b2df638b2423ce21580319be
Signed-off-by: qi duan <qi.duan@amlogic.com>
This reverts commit 16e98f321b.
SWPL-139422: USB owner submits these patches themselves
Change-Id: I1128ff5da7f97165925dd5fd1bad056e8d3ab010
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
PD#SWPL-139422
Problem:
IDT test failed with replacing gki
Solution:
using the kprobe method to solve this problem
Verify:
oppen
Change-Id: I0d640fd1d171f1303a34265a54fd790444a21c90
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
PD#SWPL-136723
Problem:
The cts test reports crg udc related panics originated from recent
regression. The new version of the crg_udc_alloc_request() is not
serialized, when concurrently called, the race condition occurs thus
the used flag is damaged.
Solution:
Protect used flag by atomic operations.
Verify:
a31d2_an400
Change-Id: Iab1e55c60247776a5d7a6b9ac3feb5e5ff4a845c
Signed-off-by: dian.shao <dian.shao@amlogic.com>