Commit Graph

1064520 Commits

Author SHA1 Message Date
Algea Cao
6b84df2152 drm/rockchip: dw_hdmi: Support rk3588 hdr10
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ib7618b7627fca48efe4a9812a1b60106b9e1b834
2021-12-16 19:06:51 +08:00
Li Huang
157ec69b58 video: rockchip: rga3: Update version to 1.1.7
Complete policy judgtment on rd_mode

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I1a29357e2bbbc3739cd0b0946cc3f45d46468f49
2021-12-16 16:44:22 +08:00
Li Huang
882ca19fdf video: rockchip: rga3: RGA3 support vir address with IOMMU
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I5e06e323b5e544fc62944aa1d27539af874278de
2021-12-16 16:23:28 +08:00
Andy Yan
0faa161629 arm64: dts: rockchip: Enable eDP logo for rk3588s-evb1-lp4x
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ie406e717796243ba32f6c88856b4927a167c20c4
2021-12-16 15:52:02 +08:00
Damon Ding
99e6d9420b arm64: dts: rockchip: rk3588: enable route_dsi for evb
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I98465f2f5c1a1ba8b52f848f475e3ad078f2565a
2021-12-16 15:52:02 +08:00
Andy Yan
7d8e2d7447 arm64: dts: rockchip: Add drm-logo memory-region for rk3588-android
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ic19e3c48bc4134a405968185eac20ecbf923f0f0
2021-12-16 15:52:02 +08:00
Damon Ding
88db12f927 arm64: dts: rockchip: rk3588: add route node for logo display
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Iaa015bcdcec02bcec8a1b926b761bd59494d7c29
2021-12-16 15:52:02 +08:00
Damon Ding
9e02641588 arm64: dts: rockchip: rk3588: modify driver strength for bt656 pins
According to the SI report, reduce the driver strength
from 40ohm to 50ohm.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Iffd65851dfe6ac8032764a3fb44334d5c3dcd154
2021-12-16 11:24:05 +08:00
Wang Panzhenzhuan
8159a8ebd3 media: i2c: imx415: fix get mode & change format issues
1. fix set_fmt & ioctl get mode unmatched issue.
2. need to set default vblank when change format.
3. enum all supported mode mbus_code, not just cur_mode.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ibca6481e11d8f97ce8827ff753c5f0afdf6f809c
2021-12-16 11:22:08 +08:00
Zhang Yubing
f7f93c659c phy: rockchip: usbdp: optimize phy power consumption
When usb dp phy config as USB + DP mode, the phy clk is work
and the dp lane is enabled by initial action, whether the dp
function need work or not. In the case only usb function
work, which will consume more power.

To improve this issue, we release the dp phy pll reset and
enable the dp lane when dp power on.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I678edc130ddef07f85b007577089a9689e12e2d4
2021-12-16 11:16:43 +08:00
Frank Wang
8794953a3e arm64: dts: rockchip: rk3588: add utmi clk for usbdp phy
In the current implementation, the U3 PHY init is invoked earlier than
U2 PHY by DWC3 controller. However, the DWC3 needs UTMI clock provided
by U2 PHY when U3 PHY is ready, without this dependence, the DWC3 gadget
may be abnormal while the cable switch to U2 port from U3 port.
So exporse the UTMI clock to U3 PHY to fix it simply.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Id20e65dde5bff3b5eccf8325e7010351aaa65654
2021-12-16 10:51:42 +08:00
Cai YiWei
1bedc1faa4 media: rockchip: isp: 3a params config first
Change-Id: I1ef172650a6ac3a7cd5d71d53e9adfefd0c8af1e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-12-16 10:21:21 +08:00
Cai YiWei
4db6af7632 media: rockchip: isp: lsc table from sram for isp30
Change-Id: Ibe5ab70d54e3955a92b5c45d21b75b78623abfbc
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-12-16 10:21:21 +08:00
Cai YiWei
a1c6f01928 media: rockchip: isp: fix hdrmge config error for isp30 read back mode
Change-Id: I2cb228cf507c9d5fd1246add1ab625f200c72f20
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-12-16 10:21:21 +08:00
Tao Huang
e321a068b4 net: wireless: rockchip: rkwifi: bcmdhd: Fix for rt_mutex
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c:20403:3: error: member reference base type 'void' is not a structure or union
                mutex_destroy(mtx);
                ^~~~~~~~~~~~~~~~~~
./include/linux/mutex_rt.h:53:48: note: expanded from macro 'mutex_destroy'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I087fb3469769b6e0c23f5e937514be3452f2197a
2021-12-15 15:29:28 +08:00
Jianqun Xu
383018f42d ANDROID: dma-buf: system_heap: allocate from dma32_pool for dma32* heap
The system_dma32 heap should allocate pages with GFP_DMA32, from
dma32_pool.
Fixes: 8880c05e5a ("ANDROID: dma-buf: system_heap: support to allocate pages with GFP_DMA32")

Change-Id: I3e9f123b653cd50873cd8dd40d31c46968ad4a43
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-12-15 14:30:52 +08:00
Jon Lin
6e1577e8cc spi: rockchip: terminate dma transmission when slave abort
After slave abort, all DMA should be stopped, or it will affect the
next transmission:

[   31.693877] Unable to handle kernel paging request at virtual address ffffff8105a2a7c0
[   31.694643] Mem abort info:
[   31.694898]   ESR = 0x96000045
[   31.695179]   EC = 0x25: DABT (current EL), IL = 32 bits
[   31.695653]   SET = 0, FnV = 0
[   31.695931]   EA = 0, S1PTW = 0
[   31.696218] Data abort info:
[   31.696485]   ISV = 0, ISS = 0x00000045
[   31.696832]   CM = 0, WnR = 1
[   31.697112] swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000000142f000
[   31.697713] [ffffff8105a2a7c0] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[   31.698502] Internal error: Oops: 96000045 [#1] SMP
[   31.698943] Modules linked in:
[   31.699235] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W         5.10.43 #8
[   31.699895] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[   31.700455] pstate: 60400089 (nZCv daIf +PAN -UAO -TCO BTYPE=--)
[   31.701000] pc : rockchip_spi_slave_abort+0x150/0x18c
[   31.701456] lr : rockchip_spi_slave_abort+0x78/0x18c

Change-Id: I486211d1b96125bae18b6f1a51e1e425da5e847f
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-12-15 11:14:40 +08:00
Guochun Huang
b8571e2321 drm/panel: simple: Add support for dcs backlight
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Id9380a16c1db606f30032259a3bbba0884731c97
2021-12-15 11:10:54 +08:00
Herman Chen
aba99662aa video: rockchip: mpp: rkvenc2: Fix slab-out-of-bounds on reboot
When the device is ccu device nothing should be done on shutdown.

[  231.948040][    T1] ==================================================================
[  231.948818][    T1] BUG: KASAN: slab-out-of-bounds in rkvenc_shutdown+0x44/0x138
[  231.949531][    T1] Read of size 8 at addr ffffff840424dd28 by task init/1
[  231.950178][    T1]
[  231.950443][    T1] CPU: 3 PID: 1 Comm: init Not tainted 5.10.66 #21
[  231.951053][    T1] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[  231.951706][    T1] Call trace:
[  231.952048][    T1]  dump_backtrace+0x0/0x278
[  231.952498][    T1]  show_stack+0x1c/0x2c
[  231.952928][    T1]  dump_stack_lvl+0xf0/0x140
[  231.953389][    T1]  print_address_description+0x88/0x38c
[  231.953934][    T1]  __kasan_report+0x144/0x2ac
[  231.954398][    T1]  kasan_report+0x54/0x84
[  231.954831][    T1]  __asan_load8+0xc8/0xcc
[  231.955264][    T1]  rkvenc_shutdown+0x44/0x138    还是 drivers/video/rockchip/mpp/mpp_rkvenc2.c:1689
[  231.955736][    T1]  platform_drv_shutdown+0x3c/0x50
[  231.956242][    T1]  device_shutdown+0x264/0x308
[  231.956719][    T1]  kernel_restart+0x54/0x13c
[  231.957174][    T1]  __arm64_sys_reboot+0x19c/0x264
[  231.957674][    T1]  el0_svc_common+0x100/0x248
[  231.958136][    T1]  do_el0_svc+0x3c/0xb8
[  231.958551][    T1]  el0_svc+0x14/0x24
[  231.958946][    T1]  el0_sync_handler+0x88/0xec
[  231.959407][    T1]  el0_sync+0x1a8/0x1c0
[  231.959805][    T1]
[  231.960051][    T1] Allocated by task 0:
[  231.960439][    T1] (stack is not available)

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I0c12d663d74c640d9f2686252fc8544b29a2c4f9
2021-12-15 10:41:03 +08:00
Jianqun Xu
425c2660c5 arm64: dts: rockchip: rk3588-linux: add reserved-memory
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I7fa015774b60286cf8ed3be64c47bbacd5fccba0
2021-12-14 20:05:36 +08:00
Wyon Bi
54821e8d85 drm/rockchip: dw-dp: Fix aux timeout at boot
Use the HPD state machine state in detect instead of HPD_STATUS.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I9e6b14c819fa29dd38101340e40334f050832524
2021-12-14 18:44:28 +08:00
Tao Huang
f6909c028f Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common
https://source.android.com/security/bulletin/2021-12-01
CVE-2021-33909
CVE-2021-38204
CVE-2021-0961

* tag 'ASB-2021-12-05_12-5.10': (3010 commits)
  ANDROID: workqueue: export symbol of the function wq_worker_comm()
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: vendor_hooks: Add hooks for binder proc transaction
  ANDROID: GKI: Add symbols abi for USB IP kernel modules.
  ANDROID: GKI: Fix file mode on mtk abi file
  UPSTREAM: erofs: fix deadlock when shrink erofs slab
  ANDROID: init_task: Init android vendor and oem data
  UPSTREAM: sched/core: Mitigate race cpus_share_cache()/update_top_cache_domain()
  ANDROID: Update symbol list for mtk
  UPSTREAM: erofs: fix unsafe pagevec reuse of hooked pclusters
  UPSTREAM: erofs: remove the occupied parameter from z_erofs_pagevec_enqueue()
  UPSTREAM: usb: dwc3: gadget: Fix null pointer exception
  ANDROID: fips140: support "evaluation testing" builds via build.sh
  FROMGIT: sched/scs: Reset task stack state in bringup_cpu()
  ANDROID: dma-buf: heaps: fix dma-buf heap pool pages stat
  ANDROID: ABI: Add several spi_mem related symbols
  UPSTREAM: spi: spi-mem: add spi_mem_dtr_supports_op()
  ANDROID: gki_defconfig: enable CONFIG_SPI_MEM
  ANDROID: ABI: Add several iio related symbols
  ANDROID: ABI: Update symbol list for IMX
  ...

Change-Id: I09cddc92fa34553b944e62cc5cbbba94a84e5437

Conflicts:
	arch/arm/boot/dts/rk322x.dtsi
	arch/arm64/boot/dts/rockchip/rk3399.dtsi
	drivers/dma-buf/heaps/system_heap.c
	drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
	drivers/gpu/drm/rockchip/rockchip_drm_vop.c
	drivers/gpu/drm/rockchip/rockchip_lvds.c
	drivers/gpu/drm/rockchip/rockchip_vop_reg.c
	drivers/mtd/nand/spi/core.c
	drivers/pci/controller/pcie-rockchip-host.c
	drivers/soc/rockchip/Kconfig
	drivers/usb/dwc3/core.c
	drivers/usb/dwc3/core.h
2021-12-14 17:09:02 +08:00
Jianqun Xu
da7b445d87 Revert "dma-buf: dma-heap set device max_segment_size to DMA_BIT_MASK(32)"
This reverts commit 146b4dc1de.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I976eab106bf18eb18be3ae861c2b2f46c6a4869e
2021-12-14 16:53:56 +08:00
shengfei Xu
516e6f7a0e arm64: dts: rockchip: adjust the power supply based on the hardware for rk3588 boards
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I2f0bd82ac41313ba2a09fb91ce595824a47d0957
2021-12-14 16:52:42 +08:00
Jon Lin
4e7395fe28 arm64: dts: rockchip: rk3588: Fix FSPI io to ds level 2
55ohm is the recommended value after hardware signal test.

Change-Id: Iddb2d9eabfc5abb79662e25f40f5b332864aed15
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-12-14 16:20:51 +08:00
Tao Huang
e895d63eb4 video: rockchip: rga3: Add missing sentinel to rga2_dt_ids
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9d748d1104e79477e63d685f2e636d5c7358bc6d
2021-12-14 15:54:19 +08:00
Wang Jie
7b2bc9c4c0 usb: typec: tcpm: register partner altmodes only when the data role is in host mode
Insert the self-powered Type-C device(support specification Revision 3.0),
after the Type-C PD chip cc detection is completed, the power role and
data role on the port side are sink and device(ufp)respectively.
After the power supply negotiation is completed, before the self-powered
Type-C device initiates the DR_swap request, the port side initiates VDM
Message communication. The process is as follows:
(1) The port side sends Discover Identity, Discover SVIDs, Discover Modes
    Command in turn, and receives the ACK corresponding to the command on
    the device side. The tcpm framework calls tcpm_register_partner_altmodes()
    to register the partner altmode;
(2) After registering partner altmode, dp driver will start dp->work, and
    call the tcpm framework callback function in this work to initiate Enter
    Modes Command;
(3) After the port side receives the DR_swap request initiated by the Type-C
    device and processes it, the port side data role switches to host (dfp),
    then the tcpm framework initiates vdm message communication again, that is,
    the restart process (1) Repeat registration of partner altmode, Then print
    stack information:
    [   31.786238][  T193] Call trace:
    [   31.786251][  T193]  dump_backtrace+0x0/0x1d0
    [   31.786257][  T193]  show_stack+0x14/0x20
    [   31.786266][  T193]  dump_stack_lvl+0xcc/0xf0
    [   31.786272][  T193]  dump_stack+0x14/0x50
    [   31.786280][  T193]  sysfs_warn_dup+0x60/0x78
    [   31.786286][  T193]  sysfs_do_create_link_sd.isra.2+0xe0/0xe8
    [   31.786292][  T193]  sysfs_create_link+0x20/0x40
    [   31.786300][  T193]  typec_probe+0x90/0x100
    [   31.786308][  T193]  really_probe+0x20c/0x3e8
    [   31.786315][  T193]  driver_probe_device+0x54/0xb8
    [   31.786324][  T193]  __device_attach_driver+0x90/0xc0
    [   31.786334][  T193]  bus_for_each_drv+0x70/0xc8
    [   31.786347][  T193]  __device_attach+0xec/0x150
    [   31.786357][  T193]  device_initial_probe+0x10/0x18
    [   31.786369][  T193]  bus_probe_device+0x94/0xa0
    [   31.786381][  T193]  device_add+0x45c/0x750
    [   31.786388][  T193]  device_register+0x1c/0x28
    [   31.786394][  T193]  typec_register_altmode+0x1ec/0x308
    [   31.786400][  T193]  typec_partner_register_altmode+0xc/0x18
    [   31.786406][  T193]  tcpm_pd_rx_handler+0x16f8/0x1748
    [   31.786413][  T193]  kthread_worker_fn+0xd8/0x190
    [   31.786418][  T193]  kthread+0x124/0x150
    [   31.786424][  T193]  ret_from_fork+0x10/0x18
    [   31.786434][  T193] typec_displayport port0-partner.1: failed to create symlinks
    [   31.786443][  T193] typec_displayport: probe of port0-partner.1 failed with error -17

According to the PD2.0 and PD3.0 protocol specifications(see Section 6.4.4.2),
the Enter Mode Command can be started only when the data role is host(DFP) mode.
Therefore, when the port is in device(ufp) mode, the tcpm framework does not
register partner altmode.

Fixes: 2b5787ea0b ("usb: typec: tcpm: Raise vdm_sm_running flag only when VDM SM is running")
Change-Id: I76874be36179391d8008502ba4722f5e4c9eee70
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2021-12-14 15:36:46 +08:00
Wu Liangqing
85334b4309 arm64: dts: rockchip: bringup rk3588-evb6
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I91144f51d45edcf0c1159eabed0e42e83fdc2820
2021-12-14 15:36:08 +08:00
Shunqian Zheng
92dc058075 arm64: dts: rockchip add imx415 dtsi for rk3588 evb1
Add dts for imx415 sensor on rk3588 evb1 board.

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Change-Id: If9d0c579a55e6f8cc6f659c6b62d1c745011ba32
2021-12-14 15:34:47 +08:00
Greg Hackmann
80018840e0 ANDROID: arm64: process: dump memory around registers when displaying regs
A port of 8608d7c441 to ARM64.  Both the
original code and this port are limited to dumping kernel addresses, so
don't bother if the registers are from a userspace process.

Change-Id: Idc76804c54efaaeb70311cbb500c54db6dac4525
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-12-14 15:32:52 +08:00
Li Huang
82db72bb71 video: rockchip: rga3: solve csc register config differences on rga2 & rga3
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I41466c510304bb21db9a24e51fe4b5e717c17525
2021-12-14 15:29:55 +08:00
Li Huang
a85c852d62 video: rockchip: rga3: Fixup wrong uv & rb swap
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I9e99a5fd15dd15d9963fcc44d511e412ff56037e
2021-12-14 15:29:48 +08:00
Lian Xu
0c0743db3c arm64: dts: rockchip: rk3588s: add more clk for fec_mmu
Change-Id: I13f136d4a756db9a5ccb0d0c48cb24a7e0ee3589
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
2021-12-14 15:26:55 +08:00
Ruslan Bilovol
e29b836b17 UPSTREAM: usb: gadget: f_uac1: validate input parameters
[ Upstream commit a59c68a6a3 ]

Currently user can configure UAC1 function with
parameters that violate UAC1 spec or are not supported
by UAC1 gadget implementation.

This can lead to incorrect behavior if such gadget
is connected to the host - like enumeration failure
or other issues depending on host's UAC1 driver
implementation, bringing user to a long hours
of debugging the issue.

Instead of silently accept these parameters, throw
an error if they are not valid.

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Link: https://lore.kernel.org/r/1614599375-8803-5-git-send-email-ruslan.bilovol@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2993c5f99161149ac126d55baf54c954279483ff
2021-12-14 15:23:34 +08:00
Ruslan Bilovol
7be2400013 UPSTREAM: usb: gadget: f_uac2: validate input parameters
[ Upstream commit 3713d5ceb0 ]

Currently user can configure UAC2 function with
parameters that violate UAC2 spec or are not supported
by UAC2 gadget implementation.

This can lead to incorrect behavior if such gadget
is connected to the host - like enumeration failure
or other issues depending on host's UAC2 driver
implementation, bringing user to a long hours
of debugging the issue.

Instead of silently accept these parameters, throw
an error if they are not valid.

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Link: https://lore.kernel.org/r/1614599375-8803-4-git-send-email-ruslan.bilovol@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Change-Id: Ic6b7e292b60e838c53aab989d1f8b16798dc15e7
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-12-14 15:23:34 +08:00
Pawel Laszczak
5c12b3fe97 UPSTREAM: usb: f_uac2: adds support for SS and SSP
Patch adds support of SS and SSP speed.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20210310105216.38202-1-pawell@gli-login.cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 187332233
(cherry picked from commit f8cb3d556b)
Change-Id: I6689c8df4a17fcf561a65dc16d509e26f088c142
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-12-14 15:23:34 +08:00
Tao Huang
30d7263f53 Revert "usb: gadget: f_uac2: fix some issues for Windows recognized"
This reverts commit 60767d93e5.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iad20e1a9fc04a7d32106450d24fc222da9e0ac9b
2021-12-14 15:23:34 +08:00
Tao Huang
7326f04ea1 Revert "usb: gadget: f_uac1: add iad descriptor"
This reverts commit 2ae1313983.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2d38a7647a4523eeabbebc1aa7782b8204b752b4
2021-12-14 15:23:34 +08:00
Tao Huang
f6bf4fa1ed Revert "FROMLIST: usb: gadget: f_uac1: Fix endpoint reading"
This reverts commit d390fcf2f7.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I96f63c724254ac46dab01360341e71587e9bb2ea
2021-12-14 15:23:34 +08:00
Tao Huang
e12828d267 Revert "FROMLIST: usb: gadget: f_uac*: Reduce code duplication"
This reverts commit 70267887d6.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4487188e9b1d19332c041b6a4385854fd6b05f14
2021-12-14 15:23:34 +08:00
Tao Huang
1e50aec536 Revert "FROMLIST: usb: gadget: f_uac*: Support multiple sampling rates"
This reverts commit 37ed8f4607.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id61128a4036dbc8384bc60da8f8a586b9b697800
2021-12-14 15:23:34 +08:00
Tao Huang
1b310c9a83 Revert "usb: gadget: u_audio: add uevent for set_alt and set_srate"
This reverts commit ac1ed698c3.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I55f6981af82caa899d0029d177586d1172cc7d26
2021-12-14 15:23:34 +08:00
Tao Huang
b257b2f8eb Revert "usb: gadget: f_uac: add volume and mute feature unit"
This reverts commit c55a0ab282.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I95029eaf2894edaa63f03ac59d41a4bd1173581f
2021-12-14 15:23:34 +08:00
Tao Huang
a657331532 Revert "usb: gadget: f_uac: add pktsize calculating at setting playback srate"
This reverts commit be3429e9b2.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If5b42dc3390f919306b7f3aeb9d2f93125d09c2c
2021-12-14 15:23:34 +08:00
Tao Huang
7303e5112d Revert "usb: gadget: u_audio: add uevent for ppm compensation"
This reverts commit be7c4cf14b.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I0516a0b4c36b4808e86adf152d7faa44af60c077
2021-12-14 15:23:34 +08:00
Tao Huang
eeb4eec9a5 Revert "usb: gadget: f_uac1: finalize wMaxPacketSize according to bandwidth"
This reverts commit 71a43ff15c.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Idf2a548afd303d97a14310792492d93931259a79
2021-12-14 15:23:34 +08:00
Tao Huang
f2795d3dcf Revert "UPSTREAM: usb: f_uac2: adds support for SS and SSP"
This reverts commit c3fa37174e.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I565f8a0120ef89adb906ea1556f2668b89d58710
2021-12-14 15:23:34 +08:00
Tao Huang
6ddbc288b9 Revert "usb: gadget: f_uac2: make compatible for windows os"
This reverts commit e360c65d23.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic9643aba5addbc8cd83d205825fa19e51f3770d9
2021-12-14 15:23:34 +08:00
Tao Huang
cb7c9a7464 Revert "usb: gadget: f_uac1: adds support for SS and SSP"
This reverts commit 306637c8e1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4850614d227c8be0f8cac4e3364317e14cb4cf53
2021-12-14 15:23:34 +08:00
William Wu
9aa2f569c9 arm64: dts: rockchip: rk3588-evb: Only add u2 phy node for hs boards
The rk3588-evb5-lp4 and rk3588s-evb2-lp5 only support Type-C
usb 2.0 high speed device, and their usb 3.0 phys are disabled
by default. So these boards can only use usb 2.0 phy node.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I7f76774001445d0c5470c10f65995be489b62db6
2021-12-14 15:17:05 +08:00