Commit Graph

866771 Commits

Author SHA1 Message Date
William Wu
35f020b0e8 usb: gadget: u_audio: improve uac compatibility
Some PC USB Hosts (e.g Dell laptop) fail to send
SetInterface(AltSet=0) to stop capture/playback
when PC enter suspend or play YouTube Video.

To be compatible with these PC, add this patch to
stop capture/playback prior to start again if the
stream_state is true.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iced57de39b6b88a7c987897dcb123cf8d7cf6473
2021-12-02 18:23:54 +08:00
Zorro Liu
49cb39f8c2 drm/rockchip: ebc_dev: release version v2.18
EPD_AUTO mode support Y8 commit

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I237715cacb5f0fcadda47cdb683f6ee89986231b
2021-11-30 18:23:48 +08:00
Andy Yan
0977fab501 drm/rockchip: vop2: Make sure the primary plane type is DRM_PLANE_TYPE_PRIMARY
Some times we want change a overlay plane defined in vop2_reg
to primary plane.

Change-Id: I5f563fb258a66278255be762ebdfca21b51aabd1
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-11-30 17:25:23 +08:00
Zorro Liu
ce8d8b5887 drm/rockchip: ebc_dev: release version v2.17
fix check part buf size for regal mode
support change overlay mode lut
fix overlay refresh uncomplete
fix overlay bw framecout

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Icf5b5e5536e33d1225091abb3ce263be4057a6d6
2021-11-29 10:05:02 +08:00
Herman Chen
4b382d7e3f video: rockchip: mpp: rkvdec2: setup link mode clk
rk3568 rkvdec2 link mode should setup clock to max frequency on power on
stage and keep the frequency unchanged until power off.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2a69f6d8b0a50c399f408320ca2b9bc4539b768a
2021-11-26 17:31:31 +08:00
Zorro Liu
0a6cc0bb2f drm/rockchip: ebc_dev: release version v2.16
fix overlay mode err when system is 8bit buf

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I7867b05b9321ce300433b9c656cf3384de7afb4d
2021-11-25 11:20:52 +08:00
Zorro Liu
c5fc873857 arm64: dts: rockchip: rk3566-eink: reserve ebc framebuff size 44M
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Ic6be7988d78de4231f7325f67a55162cb15c65cc
2021-11-25 11:20:44 +08:00
Zorro Liu
d91d0c5c66 drm/rockchip: ebc_dev: release version v2.15
support 5bit waveform and ebc buf for regal mode

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Icdb2874ac062d548dc9534383f25d03e67a2b720
2021-11-25 11:20:19 +08:00
Hans de Goede
92a6441ba1 UPSTREAM: usb: typec: tcpm: Add support for altmodes
Add support for altmodes described in the usb-connector fwnode
associated with the Type-C controller by calling the new
typec_port_register_altmodes_from_fwnode() helper for this.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210409134033.105834-3-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I0d7de11b08f1c297e78c7f4cbea90b6d85f8abe5
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
(cherry picked from commit 55d8b34772)
2021-11-23 20:48:53 +08:00
Hans de Goede
99739def50 BACKPORT: usb: typec: Add typec_port_register_altmodes()
This can be used by Type-C controller drivers which use a standard
usb-connector fwnode, with altmodes sub-node, to describe the available
altmodes.

Note there are is no devicetree bindings documentation for the altmodes
node, this is deliberate. ATM the fwnodes used to register the altmodes
are only used internally to pass platform info from a drivers/platform/x86
driver to the type-c subsystem.

When a devicetree user of this functionally comes up and the dt-bindings
have been hashed out the internal use can be adjusted to match the
dt-bindings.

Currently the typec_port_register_altmodes() function expects
an "altmodes" child fwnode on port->dev with this "altmodes" fwnode having
child fwnodes itself with each child containing 2 integer properties:

1. A "svid" property, which sets the id of the altmode, e.g. displayport
altmode has a svid of 0xff01.

2. A "vdo" property, typically used as a bitmask describing the
capabilities of the altmode, the bits in the vdo are specified in the
specification of the altmode.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210409134033.105834-2-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Ib78f0b67b985751a32b6f42e79c7976f5515f6b2
Signed-off-by: zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
(cherry picked from commit 9cf9c33b76)
2021-11-23 20:20:22 +08:00
Ziyuan Xu
7e3d32f22f ARM: dts: rockchip: add rv1126-trailcamera board support
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I008bcdea18439073ad0efee8dc2c955b1d785b8d
2021-11-19 10:06:18 +08:00
Shawn Lin
e324350fe7 PCIe: rockchip: Fix uninitialized lock
intx_lock should be initialized before use.

Fixes: ee99fe07a7 ("PCIe: rockchip:  Add more legacy int support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I39586ae4f8edc1c39d78ce95af29f24bfc46b4d4
2021-11-19 09:51:18 +08:00
Kyle Tso
1ecdb89e34 UPSTREAM: usb: typec: tcpm: Get Sink VDO from fwnode
Commit a079973f46 ("usb: typec: tcpm: Remove tcpc_config
configuration mechanism") removed the tcpc_config which includes the
Sink VDO and it is not yet added back with fwnode. Add it now.

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210205033415.3320439-8-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f5d1d63e73
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
Change-Id: I5ac46e01f3c8f3f616e81097bb013a4603e8fa05
(cherry picked from commit 2ab1b9bec3)
2021-11-18 16:19:42 +08:00
Hans de Goede
870df5dbb2 UPSTREAM: usb: typec: tcpm: Remove tcpc_config configuration mechanism
All configuration can and should be done through fwnodes instead of
through the tcpc_config struct and there are no existing users left of
struct tcpc_config, so lets remove it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191114111840.40876-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
(cherry picked from commit a079973f46)
Change-Id: I7aa3c9094af653c9eaaad4cff2a8f1071d719d73
2021-11-18 16:19:42 +08:00
Yandong Lin
be32fafb08 video: rockchip: mpp: Fix mpp_iommu_refresh crash issue
1. mpp_iommu_refresh will crash after mpp_iommu_detach, cause by
iommu->domain is null.
2. After the mpp_iommu_refresh operation, there is no need to do
mpp_iommu_detach/attach operations, because the purpose is the same
for refresh iommu.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I7c39a63cac67e94b80e7df26c8962b3fed4c670e
2021-11-18 16:10:46 +08:00
Jon Lin
6d7ce2c8a0 drivers: rkflash: Support F35SQA002G
Change-Id: I5d421c084ca001f061f4bec371046cf28d814555
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-11-18 16:09:50 +08:00
Liang Chen
2e9a545670 arm64: dts: rockchip: rk3568: adjust bus-npu-opp-table
Change-Id: Ieb37cf13ddd1c9119dc12cc31b8181caf4bcfe0e
Signed-off-by: Liang Chen <cl@rock-chips.com>
2021-11-18 14:33:04 +08:00
Shawn Lin
1e8c38dae9 PCIe: rockchip: Add more legacy int support
Some vendor drivers rely on flow control by toggling
enable/disable virtual irq if using legacy interrupt.
It can certainly change the behaviour by function
drivers, but adding corresponding operations would make
RC driver more flexible.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Idf3e6a0ca9c4ebde369745713a88db53e3f72ea5
2021-11-16 17:55:27 +08:00
William Wu
eb48e694e1 phy: rockchip: inno-usb2: keep utmi clk on during charge detection
The utmi clk is provided by the USB PHY for the USB controller.
And the utmi clk is disabled if the USB PHY enter suspend mode.
The current charge detection sets the USB PHY in suspend mode
at first, then take about hundreds of milliseconds to do charge
detection, in other words, the utmi clk will be disabled hundreds
of milliseconds. It may cause the USB controller work abnormally
during the charge detection.

Actually, the conditions for charger detection is:
1. Set the utmi_opmode in non-driving mode.
2. Set the utmi_xcvrselect to FS speed.
3. Set the utmi_termselect to FS speed.
4. Enable the DP/DM pulldown resistor.

This patch adds a new chg_mode to set the PHY in charge detection
mode according to the above conditions, and set the PHY in normal
mode to keep the utmi clk at the same time.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I1cbf565d5145bdae5bc91132bc5fbff23a5cc443
2021-11-15 20:26:48 +08:00
Zorro Liu
57b68ce21a drm/rockchip: ebc_dev: release version v2.14
skip black frame when resume

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I2e0ade3213fc8323d88de51571ded7655da6406b
2021-11-15 15:40:51 +08:00
Andy Yan
c6f0b18544 drm/rockchip: vvop: send last vblank when vblank disable
Fix the warning:
[   32.660604] virtual-vop virtual-vop: [drm:vvop_vblank_simulate]
[   32.677230] virtual-vop virtual-vop: [drm:vvop_vblank_simulate]
[   32.693872] virtual-vop virtual-vop: [drm:vvop_vblank_simulate]
[   32.710535] virtual-vop virtual-vop: [drm:vvop_vblank_simulate]
[   32.716379] rockchip-drm display-subsystem:[drm:vvop_crtc_atomic_disable]
[   32.716412] rockchip-drm display-subsystem: [drm:vvop_disable_vblank]
[   32.716446] drm_atomic_helper_commit_hw_done start
[   32.716458] ------------[ cut here ]------------
[   32.716515] WARNING: CPU: 2 PID: 243 drivers/gpu/drm/drm_atomic_helper.c:2214
               drm_atomic_helper_commit_hw_done+0xe0/0x138
[   32.716539] Modules linked in: bcmdhd
[   32.716571] CPU: 2 PID: 243 Comm: HwBinder:231_1 Not tainted 4.19.193
[   32.716595] Hardware name: Rockchip RK3568 EVB1 DDR4 V10 Board (DT)
[   32.716624] pstate: 40400009 (nZcv daif +PAN -UAO)
[   32.716653] pc : drm_atomic_helper_commit_hw_done+0xe0/0x138
[   32.716679] lr : drm_atomic_helper_commit_hw_done+0xe0/0x138

Change-Id: Ia2ff790f685d4c5421a21f958a9f466179cd64a8
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-11-11 11:45:45 +08:00
Andy Yan
8d01436efc drm/rockchip: vvop: Enable hrtimer for vblank simulate
Start hrtimer when enable vblank.

Change-Id: If0f914e8da61f811347e3dabdaf8630e7aa92cb7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-11-11 11:20:59 +08:00
Wang Jie
edcb521c0a usb: typec: tcpm: add extcon notify mechanism
For Husb311, ET7303 and other PD chips, the tcpm framework is used.
In order not to modify the usb controller, usb3.0 phy and DP
driver, the extcon notify mechanism is added.

Change-Id: I02552d5a2d1d2491ff9a647ca1a85e75e295ebd2
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2021-11-11 10:42:18 +08:00
Shawn Lin
d80d78c699 mmc: dw_mmc-rockchip: Fix corner cases of tuning
We should avoid rolling the phases if 270 and 0 is both
fine in tuning. Otherwise it would chose a middle phase
laid later than 270 which isn't a good.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Fixes: 8d0e882790 ("mmc: dw_mmc-rockchip: Skip all phases bigger than 270 degrees")
Change-Id: I87bd3e957623d6a5fdf38226be65564e353b01b6
2021-11-10 16:06:55 +08:00
Shawn Lin
8a6091f292 mmc: dw_mmc-rockchip: Restore slot's clock if it's updated
slot's clock is cached before calling ->set_ios for sub-driver.
If the clock is updated by sub-driver, it's better to restore
the cached slot's clock. Or we can see a unexpected clock as the
driver didn't know the slot's clock is updated and still use the
old clock to calculate divider. So we may see a lower clock. It
theory, it's won't be a problem because any rate lower than 400k
should be fine, and we even didn't start issuing any command during
the lower clock. But still it's right to update slot's clock to reflect
the correct clock and may fix some potential unknown problems.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I06581320547bb06c306da57e141d06f9206ea585
2021-11-10 16:06:55 +08:00
XiaoTan Luo
2ab6dde5c9 arm64: dts: rockchip: rk3568-evb: fixed hdmi sound probe error
Fixes: 520474071e ("arm64: dts: rockchip: rk3568-evb:
use "rockchip,hdmi" instead of "simple-audio-card"")

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Ia43b35ebf63f312a5b5de1ad17ed2e5ddd887b62
2021-11-10 14:34:45 +08:00
Daniel Vetter
15ca5d9432 UPSTREAM: drm/file: Uncompact the feature flags
This essentially undoes

commit 39868bd766
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Oct 29 08:55:58 2013 +0000

    drm: Compact booleans within struct drm_file

We do lockless access to these flags everywhere, and it's kinda not a
great idea to mix lockless and bitfields. Aside from that gcc isn't
generating great code for these.

If this ever becomes an issue size-wise, I think we need atomic_t here
and atomic bitflag ops.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: Dave Airlie <airlied@redhat.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181102132543.16486-2-daniel.vetter@ffwll.ch
(cherry picked from commit 078b7de412)

Change-Id: I3643619209bb9e292fb1a3c273f1a52cc4a4de74
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2021-11-09 09:38:05 +08:00
Caesar Wang
45298c2d6e arm64/config: update rk3326/px30_linux_defconfig
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I50d05d0e7d6350f64fe1876e26af9e0f111a4673
2021-11-08 15:50:48 +08:00
Jianqun Xu
bcd39e1a04 drm: rockchip: gem: create sg with size according to swiotlb limit
The swiotlb limit the log of the size of each IO TLB slab by
IO_TLB_SHIFT, and limit the Maximum allowable number of contiguous slabs
to map by IO_TLB_SEGSIZE.

Since memory from rockchip gem maybe accessed by some processor only
with 32 bit address, so the gem should limit the sg size according to
the swiotlb limit.

The swiotlb limit single tlb size to IO_TLB_SEGSIZE * (1 << IO_TLB_SHIFT)

Change-Id: Ifa18068ea30e0f9277521d4efa8a55fdce5dd264
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-11-08 10:07:46 +08:00
William Wu
98a32a4b69 Revert "usb: dwc2: hcd: do not disable non-split periodic channels"
This reverts commit debf378724.
The patch a82c7abdf8 ("usb: dwc2: hcd: Fix host channel halt flow")
can fix the issue.

Change-Id: I9a014c42cf942cab22480b5faab13c802e7fd47e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2021-11-06 17:52:45 +08:00
William Wu
4ee1573943 usb: dwc2: hcd: Fix channel halt for isoc and int transfer
The parameters g_dma and g_dma_desc is used for gadget,
so let's use host_dma and dma_desc_enable instead of them.
And it needs to update the chan->halt_status for non-split
periodic channels rather than return immediately, otherwise,
the software will not release the channel when the channel
halt interrupt is triggered next time.

In addition, it only needs to wait for the core generates
a channel halted if halt_status is DWC2_HC_XFER_URB_DEQUEUE.

Fixes: a82c7abdf8 ("usb: dwc2: hcd: Fix host channel halt flow")
Change-Id: I455444af020ff751406295f21133ff6a950c04dd
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2021-11-06 17:52:18 +08:00
Steven Liu
effdc5032f arm64: dts: rockchip: rk3568: add rk3568-amp.dtsi
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I93e64854e053866b6faca68107f6a496f22aa864
2021-11-05 19:15:30 +08:00
Steven Liu
d5590a0c1e soc: rockchip: amp: support amp driver
1.Protect clock and iomux resources used by AMP.
2.Support RK3568 AMP.

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: If53e893fac916217bfa5618350b1706b742b34e7
2021-11-05 18:58:25 +08:00
Jianqun Xu
28ce07e7f1 video: rockchip: rga2 use dma-buf-cache
Change-Id: Ic1b37308b9fe5d8558ed73eb576398e0f0f05290
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-11-05 09:52:25 +08:00
XiaoTan Luo
816e197f50 arm64: dts: rockchip: rk3568-linux: enable rk809 sound for headphones jack function
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Ic9788c4c58a04828af3f50c06f7a96a1fd661cae
2021-11-04 17:27:34 +08:00
Yandong Lin
d47e486b19 video: rockchip: mpp: use dma-buf-cache func
Note:
The commit depends on the following commit:
commit 36514da674 ("dma-buf: support to cache dma-buf-attachment")

  The attachment and sg_table will be store in dma-buf-cache.
  So use dma-buf-cache api instead of dma-buf api to reduce
  the actual operation of attach/map.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I8b46c8f6a6f69ebe9854858e198d1c312a808a2f
2021-11-04 15:43:37 +08:00
Jianqun Xu
0ed46b824f drm: rockchip: do release callback if not define CONFIG_DMABUF_CACHE
When enable CONFIG_DMABUF_CACHE, the dmabuf attach will be cached by
dma-buf-cache driver.

Change-Id: Icc9c21542c2f0883e74a5b35f82e4d604509bcb3
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-11-04 09:52:06 +08:00
Elaine Zhang
3c29e3c43b clk: rockchip: rk3568: add CLK_SET_RATE_NO_REPARENT flag for clk_gmacx_rx_tx
Change-Id: If0f415b6b4f8694572e20ff3658d2f079a3190e8
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-11-04 09:52:06 +08:00
XiaoTan Luo
96166eb846 ASoC: es8311: fixed the dapm route error
SND_SOC_DAPM_AIF_OUT/SND_SOC_DAPM_AIF_IN must match the dai stream name

Fixes: 3b13f64c6d ("ASoC: es8311: add support es8311 codec driver")
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I2ed044b2ea9e518bb4bd0fa1b578a64495e9723a
2021-11-04 09:52:06 +08:00
William Wu
1d5173fc2d phy: rockchip-naneng-usb2: do apb reset during probe
It's not enough to reset the internal circuit in phy
with the phy power reset signal when probe. It also
needs to reset the apb of phy, with this patch, we
can fix the usb enumeration error on some rv1126/rv1109
products.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ib6bb0f0aeca7577ad65041a28ede57ba110b7bc0
2021-11-04 09:52:06 +08:00
XiaoTan Luo
0deaba2121 arm64: dts: rockchip: rk3568-linux: enable hdmi_sound with hdmi jack function
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I56ed59069293cd04d867f7d0facf12569b322434
2021-11-04 09:52:06 +08:00
XiaoTan Luo
520474071e arm64: dts: rockchip: rk3568-evb: use "rockchip,hdmi" instead of "simple-audio-card"
Such as Debian SDK need the HDMI connection jack status to monitor the audio devices.
if want to enable jack detection must add this config: "rockchip,jack-det;"
else if want to disable jack detection and than remove "rockchip,jack-det;"

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I4a530987b032c1bc564804f6274cb30b495ea205
2021-11-04 09:52:06 +08:00
Shawn Lin
d8f7033aa0 mmc: dw_mmc-rockchip: Improve v2 tuning
v2 tuning has a defect that if invalid space is laid
between 90 and 180, and the PVT might make the invalid
space back and forth. To overcome this weakness, we don't
need to select phase from beginning, and should directly
chose the next one against the last phase selected.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0cbeb1dba524c2e23a3719d28b868af3ed49e20b
2021-11-04 09:52:06 +08:00
Shawn Lin
8d0e882790 mmc: dw_mmc-rockchip: Skip all phases bigger than 270 degrees
Per design recommendation, it'd better not try to use any phase
which is bigger than 270. Let's officially follow this.

Change-Id: I8dee3eb648d321cc86e0926844cde528dbb5bd95
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2021-11-04 09:52:06 +08:00
Cai YiWei
abc59cba82 media: rockchip: ispp: replace iommu detach/attach
Change-Id: I1cf46cb9cba85be418f32d218dd70452c8062d42
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-11-04 09:52:06 +08:00
Cai YiWei
eac9782a73 media: rockchip: isp: replace iommu detach/attach
fix NULL Pointer when isp to reset
[ 4486.719609]  __iommu_dma_unmap+0x14/0x7c
[ 4486.719968]  iommu_dma_unmap_sg+0x64/0x90
[ 4486.720348]  __iommu_unmap_sg_attrs+0x48/0x5c
[ 4486.720745]  vb2_dma_sg_dmabuf_ops_detach+0x60/0x80
[ 4486.721192]  dma_buf_detach+0x88/0x9c

iommu_detach_device will set domain to null,
and __iommu_dma_unmap using domain but no check.

Change-Id: I3c679565c6a7e67783e1750fc4d028191a9c9fcf
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-11-04 09:52:05 +08:00
Ding Wei
ea09729690 video: rockchip: mpp: mpp_iommu_refresh via rockchip_iommu funcs
reason:
device_links_read_lock/unlock are not export symbols, thus use
rockchip_iommu_disable/enable instead.

Change-Id: I545eced499533383f6cfbdf81e696064f42b6c3e
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-11-04 09:52:05 +08:00
Wangqiang Guo
7964bdd1b1 input: sensor: accel: support 3-Axis accelerometer: da228e
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: I272c179d151acefcd54fa01cf25fc3790a141ecd
2021-11-04 09:52:05 +08:00
Wangqiang Guo
ac2e46aaa7 input: sensor: accel: support 3-Axis accelerometer: da215s
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: Ia1c00b45fb86043c730835f95543bbd01dd882ee
2021-11-04 09:52:05 +08:00
Jon Lin
4c99006d1c mtd: rawnand: rockchip: Support read_oob_raw
nanddump split read_page_raw into two operations, page read and oob read.
So read_oob_raw is necessary for getting the oob data.

Change-Id: I4e85bbdbf8cd3312fa3525f9e674c31ce20024e9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-11-04 09:52:05 +08:00