The main function is to obtain voltage and current, currently used for
testing the input voltage and input current of the RK1820 small board on
the RK3588 to determine the current load.
Change-Id: Ibfe1babfa0a6fba11008a3b19d3c09e354b4674a
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
The memory allocated by dma_alloc_coherent can be mapped using the
matching dma_mmap_coherent interface.
Change-Id: I7289d490771a86985ec5ed19af5c3cbbfb9810c2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
During the long-term loop playback test of videos stored in the
USB flash drive, it was found that the Teclast CoolFlash drive
(idVendor=346d, idProduct=5678) disconnects abnormally, and the
serial port reports the following error messages.
[ T227] xhci-hcd xhci-hcd.7.auto: Timeout while waiting for setup device command
[ T227] usb 2-1: device not accepting address 2, error -62
[ T227] xhci-hcd xhci-hcd.7.auto: Timeout while waiting for setup device command
[ T227] usb 2-1: device not accepting address 2, error -62
[ T7577] xhci-hcd xhci-hcd.7.auto: xHCI host not responding to stop endpoint command
[ T7577] xhci-hcd xhci-hcd.7.auto: xHCI host controller not responding, assume dead
[ T7577] xhci-hcd xhci-hcd.7.auto: HC died; cleaning up
[ T227] xhci-hcd xhci-hcd.7.auto: Timeout while waiting for stop endpoint command
[ T7578] usb 2-1: USB disconnect, device number 2
[ T227] sd 1:0:0:0: [sde] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=27s
Adding this quirk to limit max_sectors to 64 sectors to avoid issue
occurring.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ie2f72a5d95e566818789f1280452cad239a57d62
Because the call:
platform_set_drvdata(pdev, am_d);
in aoa_mmap_probe() is overwritten by the subsequent call:
platform_set_drvdata(pdev, amw_d);
therefore, the am_d handle needs to be saved separately. Also, previously allocated IRQ and
platform resources must be released.
And, fix the issue where repeated insmod operations couldn't be performed due to resource usage.
After successfully executing the command `insmod rk_aoa.ko` for the first time,
executing `rmmod rk_aoa` to uninstall the file and then executing `insmod rk_aoa.ko`
again will result in the following error:
----
[ 93.352370] platform 208b0000.aoa: can't request region for resource [mem 0x208b0000-0x208b0fff]
[ 93.352401] aoa-middleware aoa_middleware: probe rockchip aoa failed: -16
[ 93.352411] aoa-middleware: probe of aoa_middleware failed with error -16
----
Furthermore, the pdev functions for aoa_drv and lp_rkdma are manually probed via
aoa_middleware and cannot be automatically released via the devm mechanism.
Therefore, you must manually allocate resources in the probe function and release
them manually in the remove function.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I454c970de620f1dc7007bf530e2e0650c81066e4
Some master device resume early but the iommu has not yet resume, which
will cause the iommu to be inaccessible.
So set LATE_SYSTEM_SLEEP_PM_OPS for iommu pm ops, which will resume early and suspend late.
Change-Id: I9424198900a56004098e8cf6c3194baa62eeda09
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
In kernel 6.1 and later versions, the property 'clk-trcm' has been updated:
rockchip,clk-trcm -> rockchip,trcm-sync-tx/rx-only
Not all products' DT have been updated to use the new property. Therefore,
still support for old property for now, and a prompt is logged to suggest
to adopt the new property.
The old property will be removed in a future version.
Log:
Deprecated property 'rockchip,clk-trcm', please use 'rockchip,trcm-sync-tx/rx-only' in DT
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I594ba932486440d6eefc65abb54516d530ad090b
Fake mode accesses memory using the DTE address as the final physical
address on page fault, ignoring reads and discard writes. This resolves
VOP mmu hang issues caused by page faults.
Change-Id: I6b37b79a425c0341e53e0c8a786767a4b7da304e
Signed-off-by: Simon Xue <xxm@rock-chips.com>
cif subdev-itf need to update sensor info in s_power, fix
mipi switch case info error issue.
Change-Id: I1ce93c31e4b3c1631dac4c86e30c65b6d4503624
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Wrong noioctl return value cause rkisp get cfg failed,
so fix it.
Change-Id: I70e310c35a565369ea760a06f45465f78a0c321b
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Fixes: 8633bf3947 ("misc: rockchip: pcie-rkep: Support continuous buffer")
Change-Id: I29bcf73f5af3d1e1a45fbb16da0b09cda9ff3f46
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>