Commit Graph

1286346 Commits

Author SHA1 Message Date
Tao Huang
bcac4856be Merge commit 'a887a44ace2a27d86308356a7ea0db00d79f2c44' of https://android.googlesource.com/kernel/common
* commit 'a887a44ace2a27d86308356a7ea0db00d79f2c44': (3057 commits)
  ANDROID: KVM: arm64: Always check state from host_ack_unshare()
  FROMLIST: KVM: arm64: Always check the state from hyp_ack_unshare()
  UPSTREAM: f2fs: fix fiemap failure issue when page size is 16KB
  ANDROID: GKI: Update symbol list for mtk
  UPSTREAM: net/sched: stop qdisc_tree_reduce_backlog on TC_H_ROOT
  UPSTREAM: net: sched: use RCU read-side critical section in taprio_dump()
  UPSTREAM: f2fs: compress: don't redirty sparse cluster during {,de}compress
  UPSTREAM: f2fs: compress: don't {,de}compress non-full cluster
  UPSTREAM: f2fs: allow f2fs_ioc_{,de}compress_file to be interrupted
  UPSTREAM: f2fs: compress: do sanity check on cluster when CONFIG_F2FS_CHECK_FS is on
  UPSTREAM: f2fs: support SEEK_DATA and SEEK_HOLE for compression files
  ANDROID: add file for recording allowed ABI breaks
  ANDROID: GKI: update symbol list for honor
  ANDROID: vendor_hooks: add hook to record reboot reason
  BACKPORT: FROMGIT: binder: add delivered_freeze to debugfs output
  BACKPORT: FROMGIT: binder: fix memleak of proc->delivered_freeze
  FROMGIT: binder: allow freeze notification for dead nodes
  FROMGIT: binder: fix BINDER_WORK_CLEAR_FREEZE_NOTIFICATION debug logs
  ANDROID: GKI: Update symbol list for BCMSTB
  ANDROID: psi: Add vendor hooks for PSI tracing
  ...

Change-Id: I5b8cfb8bec82380db9cdd9fbe3b39708a8f92f98

Conflicts:
	arch/arm64/boot/dts/rockchip/rk356x.dtsi
	drivers/gpio/gpio-rockchip.c
	drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c
	drivers/gpu/drm/rockchip/rockchip_drm_vop.c
	drivers/gpu/drm/rockchip/rockchip_drm_vop.h
	drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
	drivers/gpu/drm/rockchip/rockchip_vop_reg.c
	drivers/media/i2c/imx335.c
	drivers/pci/controller/dwc/pcie-dw-rockchip.c
	drivers/spi/spi-rockchip.c
	drivers/spi/spidev.c
	drivers/usb/dwc3/core.c
	drivers/usb/dwc3/gadget.c
	drivers/usb/typec/tcpm/tcpm.c
2025-01-10 18:00:20 +08:00
Tao Huang
0e31ee9a8e Merge commit '8533b2249e1550b233a4836d039d64e3bb2fed7a'
* commit '8533b2249e1550b233a4836d039d64e3bb2fed7a':
  Revert "exfat: fix memory leak in exfat_load_bitmap()"

Change-Id: I1ac7f42daa4c037815402da66106c44b4c87b1bd
2025-01-10 17:52:51 +08:00
Tao Huang
8533b2249e Revert "exfat: fix memory leak in exfat_load_bitmap()"
This reverts commit 6732e1af29.

Replaced by commit 4e1813e52f ("exfat: fix memory leak in exfat_load_bitmap()").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I323d80bccfc1c1fa021d9b86433a766f7bbebe5b
2025-01-10 17:47:50 +08:00
Tao Huang
bc6135ea8c Merge commit '75588ef1335c59b72eed76a5b885f23bb9070cd1'
* commit '75588ef1335c59b72eed76a5b885f23bb9070cd1':
  clk: rockchip: rk3506: Use MUXTBL for MCLK_SAI
  video: rockchip: mpp: iep2: fix mapping conflict issue
  regulator: rk801: Use a better name for bool variable
  ARM: dts: rockchip: rk3506-rk801: Add index for switch regulator name
  ARM: dts: rockchip: Add RK3562 EVB2 devicetree
  clk: RK808: Configure 32k always on through dts
  phy: rockchip: samsung dcphy reinit c_option when rx stream on
  drm/rockchip: vop2: adjust VOP aclk mode according to line duration
  thermal: rockchip: change code table for rk3506
  drm/rockchip: vop2: fix null point at non dovi platform

Change-Id: I60f40af00d6d63c8e4c5e74f0abebd6271d98031
2025-01-10 17:07:20 +08:00
Finley Xiao
75588ef133 clk: rockchip: rk3506: Use MUXTBL for MCLK_SAI
Change-Id: I590ae0788ab9e064563284d157078b8a0bbcb349
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-01-10 08:50:45 +00:00
Chandler Chen
9b5850c977 video: rockchip: mpp: iep2: fix mapping conflict issue
amend extra page for some I1O1T page-fault cases
Fixes: cdc9ee0588 ("video: rockchip: mpp: fix iep2 page-fault issue")

Change-Id: I81820d8a45488bd4c578fa37f18436719afe912e
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2025-01-10 08:48:32 +00:00
Joseph Chen
77c148f147 regulator: rk801: Use a better name for bool variable
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I8c6ce6271ff13a9adfbb0b9f1d86850aa52c889e
2025-01-10 08:44:53 +00:00
Joseph Chen
7063c002ba ARM: dts: rockchip: rk3506-rk801: Add index for switch regulator name
It's used for U-Boot rk801 driver.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6f9ebc4427db097b0e3af08c672a63d2c3c42037
2025-01-10 08:44:53 +00:00
Finley Xiao
6c8f7b74b5 ARM: dts: rockchip: Add RK3562 EVB2 devicetree
Change-Id: Ie1aedbacce23218bb8a1c1ab1f5afb4fd206a777
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-01-10 07:01:21 +00:00
Shengfei Xu
ebfac24357 clk: RK808: Configure 32k always on through dts
Change-Id: I91d860c40940fb02af2226f95ff69685e65a8434
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-01-10 01:59:46 +00:00
Zefa Chen
44d8208235 phy: rockchip: samsung dcphy reinit c_option when rx stream on
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I05d4b845a8aa7493be8cb659545d6cdb3c708e7f
2025-01-09 08:17:44 +00:00
Sandy Huang
7b21f59425 drm/rockchip: vop2: adjust VOP aclk mode according to line duration
Some panel resolution is less than 2560 but pixel clock/fps is
relatively large, In this scene, VOP aclk need enter advance mode to
make sure VOP performance is enough. 4kp60 line duration is roughly
equal to 7500 ns, so we add a condition(linedur_ns < 7500) to enter
VOP aclk advance mode.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I50e15e8b05cfcf3c92704b8d96287099ce851686
2025-01-09 08:17:11 +00:00
Ye Zhang
bb0e9e5f8b thermal: rockchip: change code table for rk3506
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I489586424f6a7901933e0b1bed888ca7d5818331
2025-01-09 08:16:37 +00:00
Sandy Huang
673b576813 drm/rockchip: vop2: fix null point at non dovi platform
Fixes: a8f0dc0b74e7 ("drm/rockchip: vop2: add dolby vision supported for rk3588")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I873d10ca97dd108e1f60f2862f6d7af068a7f0b1
2025-01-08 10:54:36 +00:00
Tao Huang
359529a63b Merge commit '90d2e27567374d4589fe01336fdcad436fbcf056'
* commit '90d2e27567374d4589fe01336fdcad436fbcf056':
  clk: rockchip: rk3588: Use CLK_MUX_ROUND_CLOSEST for Audio
  gpio: rockchip: Fix rk3506 gpio4a0~4a5 mapping issue

Change-Id: Iee78483530a6efd280b433b5f1d63b3ca3b00467
2025-01-08 18:26:09 +08:00
Sugar Zhang
90d2e27567 clk: rockchip: rk3588: Use CLK_MUX_ROUND_CLOSEST for Audio
Use flag CLK_MUX_ROUND_CLOSEST to be able to round the divider
to the closest one instead than roundup.

e.g. clk_set_rate 6150144 (6144000 * 1.001)

Before:

clk_get_rate - 6144000

After:

clk_get_rate - 6150145

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic3d1ed3f4de0abf0c7e4c1027a68c2d2cb681029
2025-01-08 10:20:44 +00:00
Ye Zhang
1a5b21655b gpio: rockchip: Fix rk3506 gpio4a0~4a5 mapping issue
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: Ic34079132f95e93b9a0777d6d1ceabee0e566026
2025-01-08 10:19:34 +00:00
Tao Huang
11b1ca9712 Merge commit '0cb3359e28e136f76db7a6c2f131d489127e7db2'
* commit '0cb3359e28e136f76db7a6c2f131d489127e7db2':
  drm/bridge: synopsys: dw-hdmi-qp: Support DOVI HDR
  drm/rockchip: dw_hdmi: Add property MODE_COLOR_CAPACITY
  drm/bridge: synopsys: dw-hdmi-qp: Add property to set quant range
  arm64: dts: rockchip: rk3588: add vop aclk_dovi for dolby vision
  drm/rockchip: vop2: add dolby vision supported for rk3588
  drm/rockchip: vop2: set DRM_MODE_BLEND_PIXEL_NONE as alpha premutli
  drm/rockchip: vop: use DOVI instead of NEXT_HDR
  drm/rockchip: vop: add crtc dolby vision feature
  drm/rockchip: vop2: reset splice_win at vop2_win_disable()
  drm/rockchip: vop2: add support esmart BACKGROUND prop
  iio: dac: rockchip-flexbus-dac: Add write memory barrier
  iio: adc: rockchip-flexbus-adc: Add read memory barrier
  media: i2c: sc450ai fixes error of clk disable twice
  media: i2c: sc450ai fixes error of compile
  pwm: rockchip: Unify the process of requesting irq for PWM v1-v4
  PCI: dw: rockchip: Remove unused PORT_LOGIC_LTSSM_L2
  video: rockchip: mpp: mpp_common: Declare function as static in header
  drm/rockchip: tve: set the &rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set()

Change-Id: I9fe9d93391634d03bddb65017f99f3c0b582ea18
2025-01-07 19:29:09 +08:00
Algea Cao
0cb3359e28 drm/bridge: synopsys: dw-hdmi-qp: Support DOVI HDR
Change-Id: I72279ebf4d55b1aa53ca12bb8995881af3f0defd
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-01-07 10:37:33 +00:00
Algea Cao
03d21c720f drm/rockchip: dw_hdmi: Add property MODE_COLOR_CAPACITY
This property is used to report the supported color format for each
resolution to userspace.

Change-Id: Ib2e8c712d7590b1cff77d03eb789bc49c18d6e74
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-01-07 10:37:33 +00:00
Algea Cao
c9ee08a32f drm/bridge: synopsys: dw-hdmi-qp: Add property to set quant range
quant_range:
	flags: enum
	enums: default=0 limit=1 full=2

Change-Id: I6a4d30c2c45cf744a47f93162fd0f81bed75bc73
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-01-07 10:37:33 +00:00
Sandy Huang
d74f593005 arm64: dts: rockchip: rk3588: add vop aclk_dovi for dolby vision
The dolby core work at 1 pixel rate and the vop work at 2 pixel rate,
so the aclk_vop_doby : aclk_vop = 2 : 1 when enter dolby mode,

Non dovi mode clk tree:
aclk_vop_root            750000000
    aclk_vop             750000000
    aclk_vop_doby        750000000
    aclk_vop_div2_src    375000000

Dovi mode clk tree:
aclk_vop_root            750000000
    aclk_vop_doby        750000000
    aclk_vop_div2_src    375000000
        aclk_vop         375000000

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I649fd6263245a93c67a577262a95d23328880d06
2025-01-07 10:37:33 +00:00
Sandy Huang
16391830d3 drm/rockchip: vop2: add dolby vision supported for rk3588
The dolby vision will be supported by RK3588*-*V* SOCs,
e.g., RK3588S2-DV.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1e8cf8f0e2b1521b858704df9a88261cec038ebb
2025-01-07 10:37:33 +00:00
Sandy Huang
6cb13bd18d drm/rockchip: vop2: set DRM_MODE_BLEND_PIXEL_NONE as alpha premutli
DRM_MODE_BLEND_PIXEL_NONE usual be set at ARGB format and pixel alpha
is 0xff, no need to do blend, but vop2 platform at the following
scene, the cluster win1 and win0 do blend first, the blend result
with esmart do blend, we can't direct to close layer_mix0, because
the cluster win0 some area will do blend with esmart, so we keep
layer0 mix alpha be enabled and set as premutli mode.

zpos layer
2    cluster win1[ARGB/BLEND_COVERAGE]  -->|
1    cluster win0[ARGB/BLEND_PIXEL_NONE]-->|cluster mix-->|
0    esmart[ARGB/BLEND_PIXEL_NONE]                     -->|layer0 mix

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I4ae75a9b443ea965527fd656821016acca35afe1
2025-01-07 10:37:33 +00:00
Sandy Huang
6d1b5beb2b drm/rockchip: vop: use DOVI instead of NEXT_HDR
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ib3405d2dff684e3ce1d512fccbb8b1a3bef72151
2025-01-07 10:37:33 +00:00
Sandy Huang
52e0f85d38 drm/rockchip: vop: add crtc dolby vision feature
ROCKCHIP_DRM_CRTC_FEATURE_NEXT_HDR will be instead of by
ROCKCHIP_DRM_CRTC_FEATURE_DOVI,

VOP_FEATURE_NEXT_HDR will be instead of by VOP_FEATURE_DOVI.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ifae130599bc1a966ae316de002df3a1a3fec9d5a
2025-01-07 10:37:33 +00:00
Sandy Huang
497e16fefa drm/rockchip: vop2: reset splice_win at vop2_win_disable()
We only need to ignore rk3588/rk3576 esmart pd turn on/off at
vop2_win_disable(), the following splice win reset should
be run.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I617f73786d93398965f5dcfac32f6fa76ee2e42e
2025-01-07 10:37:33 +00:00
Sandy Huang
ab24b712e1 drm/rockchip: vop2: add support esmart BACKGROUND prop
This may be used by android solid color layer, userspace can set
plane BACKGROUND prop to assigned color, the plane will display
this color and no need to access DDR.

The color value should layout as following:

Enable:
    val = BIT(31) | R << 16 | G << 8 | B;/* R/G/B can be 0 ~ 0xff */

    For example, set a pure red color:
        modetest -w 125:BACKGROUND:2164195328

Disable:
        modetest -w 125:BACKGROUND:0

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ie1e077594e385e8ddd244f7c33b6182309a5c134
2025-01-07 10:37:33 +00:00
Wesley Yao
6554f0eb7c iio: dac: rockchip-flexbus-dac: Add write memory barrier
Guarantee the data is written before flexbus starts transmission.

Change-Id: I24e7e1b9e7f0fcd57b9269746251a05801007f3e
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2025-01-07 10:00:28 +00:00
Wesley Yao
655499e285 iio: adc: rockchip-flexbus-adc: Add read memory barrier
Guarantee flexbus has completed transmission before reading.

Change-Id: I38d600a9feb1c0e586e70ec8cb581f803cf7902d
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2025-01-07 09:59:53 +00:00
Zefa Chen
072c7b2223 media: i2c: sc450ai fixes error of clk disable twice
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I87fab4101a598a99f20b936a851794049be1e269
2025-01-07 11:18:55 +08:00
Zefa Chen
d5e5e440af media: i2c: sc450ai fixes error of compile
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I7a458a0eecafc22df828727e2cd370e61860aa5b
2025-01-07 11:04:52 +08:00
Damon Ding
f73b02ad8c pwm: rockchip: Unify the process of requesting irq for PWM v1-v4
The irq for PWM v1-v3 used to be exclusively associated with oneshot
mode, but capture mode also needs interrupt, which does not depend on
CONFIG_PWM_ROCKCHIP_ONESHOT.

Change-Id: Iaf0e01ec7c5d02d2d379776cba41841d59c46d20
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-06 10:59:26 +00:00
Shawn Lin
87813ce9aa PCI: dw: rockchip: Remove unused PORT_LOGIC_LTSSM_L2
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I382233f963533d93ad582888afe728841515a18b
2025-01-03 16:22:31 +08:00
Hongjin Li
a5d7c37e04 video: rockchip: mpp: mpp_common: Declare function as static in header
Change-Id: Ia5ad136e286d0cfcfe9d3f66db16110eff15d631
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2025-01-02 19:09:47 +08:00
Damon Ding
15218ae4e6 drm/rockchip: tve: set the &rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set()
Although the previous patch helps to avoid display flashing during
the uboot/kernel logo switching, it forgot to set the
&rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set()
which is needed in later &drm_encoder_helper_funcs.enable() process.

Fixes: e3b31a037d ("drm/rockchip: tve: add .loader_protect() support for tve")
Change-Id: Ib4e81f0c9ab64c1c2db9bd19209a6f108cae70e9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-31 18:11:40 +08:00
Zorro Liu
b0a8327d5f drm/rockchip: ebc_dev: release version v7.04
improve quick repair, fix overbrushing problem

Change-Id: I34926bdcb4ee20f1f0f6c54b5638b31e783698a7
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-12-31 10:02:31 +00:00
Daniel Scally
16212a1953 UPSTREAM: usb: gadget: uvc: Correct documentation formatting
The documentation table added in a36afe7804 ("usb: gadget: uvc: Add
new enable_interrupt_ep attribute") was incorrect, resulting in a new
warning when compiling the documentation.

Correct the formatting to resolve the warning.

Fixes: a36afe7804 ("usb: gadget: uvc: Add new enable_interrupt_ep attribute")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230206151131.863960-1-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 41070a7027)
Change-Id: I0aa0b5bc6585f22271f84c3feb8b52b975a5dc59
2024-12-30 11:41:12 +00:00
Daniel Scally
1931620540 BACKPORT: usb: gadget: uvc: Disable interrupt endpoint by default
The f_uvc code includes an interrupt endpoint against the VideoControl
interface. According to section 2.4.2 of the UVC specification however
this endpoint is optional in at least some cases:

"This endpoint is optional, but may be mandatory under certain
conditions"

The conditions enumerated are whether...

1. The device supports hardware triggers
2. The device implements any AutoUpdate controls
3. The device implements any Asynchronous controls

As all of those things are implementation dependent, this endpoint
might be unnecessary for some users. Further to that it is unusable
in the current implementation as there is no mechanism within the
UVC gadget driver that allows data to be sent over that endpoint.
Disable the interrupt endpoint by default, but check whether the
user has asked for it to be enabled in configfs and continue to
generate it if so.

Change-Id: If7389f94d406d0c6f79229afbe9b63bee80ca74e
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-4-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 130c4dcbe8)
2024-12-30 11:41:12 +00:00
Daniel Scally
d89f283a38 UPSTREAM: usb: gadget: uvc: Add new enable_interrupt_ep attribute
Add a new attribute to the default control config group that allows
users to specify whether they want to enable the optional interrupt
endpoint for the VideoControl interface.

Change-Id: Ia5490d50bf2298572e8527a7879daa6b6dff2173
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-3-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a36afe7804)
2024-12-30 11:41:12 +00:00
Daniel Scally
1d12d80a1c BACKPORT: usb: gadget: uvc: Rename uvc_control_ep
The f_uvc code defines an endpoint named "uvc_control_ep" but it
is configured with a non-zero endpoint address and has its
bmAttributes flagged as USB_ENDPOINT_XFER_INT - this cannot be the
VideoControl interface's control endpoint, as the default endpoint
0 is used for that purpose. This is instead the optional interrupt
endpoint that can be contained by a VideoControl interface. There
is also a Class-specific VC Interrupt Endpoint Descriptor and a
SuperSpeed companion descriptor that are also for the VC interface's
interrupt endpoint but are named as though they are for the control
endpoint.

Rename the variables to make that clear.

Change-Id: Iee00e91954dcd67fbec867e067c7e528bfb2c217
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-2-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 3078212caf)
2024-12-30 11:41:12 +00:00
Tao Huang
372399b9e3 Merge commit '030cb99b13449feb69088c5b47eed93702ced442'
Merge made by the 'ours' strategy.

* commit '030cb99b13449feb69088c5b47eed93702ced442':
  UPSTREAM: usb: gadget: uvc: Correct documentation formatting
  BACKPORT: usb: gadget: uvc: Disable interrupt endpoint by default
  UPSTREAM: usb: gadget: uvc: Add new enable_interrupt_ep attribute
  BACKPORT: usb: gadget: uvc: Rename uvc_control_ep

Change-Id: Ia0c0227af9bd7f2d8511bb66176ec360d340b545
2024-12-30 19:30:48 +08:00
Tao Huang
1cea1858f7 Merge commit '0c8f2934ce385712a00f1f264ac2bfac6a071487'
* commit '0c8f2934ce385712a00f1f264ac2bfac6a071487':
  ARM: rv1106_defconfig: Enable CONFIG_ROCKCHIP_MPP_OSAL
  video: rockchip: mpp_osal: ROCKCHIP_MPP_OSAL remove chip id
  input: touchscreen: gsl_point_id: Add gsl_point_id.h
  drm/rockchip: drv: add more info about iommu_reserve_map
  Input: gt1x - Fix -Wmissing-prototypes warnings
  mtd: spi-nor: Make spi_nor_wait_till_ready_with_msleep() static

Change-Id: I6cf2b3ed6e87180c2e712edb61953c75b0c0b7e6
2024-12-30 19:30:06 +08:00
Daniel Scally
030cb99b13 UPSTREAM: usb: gadget: uvc: Correct documentation formatting
The documentation table added in a36afe7804 ("usb: gadget: uvc: Add
new enable_interrupt_ep attribute") was incorrect, resulting in a new
warning when compiling the documentation.

Correct the formatting to resolve the warning.

Fixes: a36afe7804 ("usb: gadget: uvc: Add new enable_interrupt_ep attribute")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230206151131.863960-1-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 41070a7027)
Change-Id: I0aa0b5bc6585f22271f84c3feb8b52b975a5dc59
2024-12-30 11:29:21 +00:00
Daniel Scally
2033b1cec5 BACKPORT: usb: gadget: uvc: Disable interrupt endpoint by default
The f_uvc code includes an interrupt endpoint against the VideoControl
interface. According to section 2.4.2 of the UVC specification however
this endpoint is optional in at least some cases:

"This endpoint is optional, but may be mandatory under certain
conditions"

The conditions enumerated are whether...

1. The device supports hardware triggers
2. The device implements any AutoUpdate controls
3. The device implements any Asynchronous controls

As all of those things are implementation dependent, this endpoint
might be unnecessary for some users. Further to that it is unusable
in the current implementation as there is no mechanism within the
UVC gadget driver that allows data to be sent over that endpoint.
Disable the interrupt endpoint by default, but check whether the
user has asked for it to be enabled in configfs and continue to
generate it if so.

Change-Id: If7389f94d406d0c6f79229afbe9b63bee80ca74e
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-4-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 130c4dcbe8)
2024-12-30 11:29:21 +00:00
Daniel Scally
4adb1f5af5 UPSTREAM: usb: gadget: uvc: Add new enable_interrupt_ep attribute
Add a new attribute to the default control config group that allows
users to specify whether they want to enable the optional interrupt
endpoint for the VideoControl interface.

Change-Id: Ia5490d50bf2298572e8527a7879daa6b6dff2173
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-3-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a36afe7804)
2024-12-30 11:29:21 +00:00
Daniel Scally
e3e2d315d4 BACKPORT: usb: gadget: uvc: Rename uvc_control_ep
The f_uvc code defines an endpoint named "uvc_control_ep" but it
is configured with a non-zero endpoint address and has its
bmAttributes flagged as USB_ENDPOINT_XFER_INT - this cannot be the
VideoControl interface's control endpoint, as the default endpoint
0 is used for that purpose. This is instead the optional interrupt
endpoint that can be contained by a VideoControl interface. There
is also a Class-specific VC Interrupt Endpoint Descriptor and a
SuperSpeed companion descriptor that are also for the VC interface's
interrupt endpoint but are named as though they are for the control
endpoint.

Rename the variables to make that clear.

Change-Id: Iee00e91954dcd67fbec867e067c7e528bfb2c217
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230130105045.120886-2-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 3078212caf)
2024-12-30 11:29:21 +00:00
cww
0c8f2934ce ARM: rv1106_defconfig: Enable CONFIG_ROCKCHIP_MPP_OSAL
Signed-off-by: cww <cww@rock-chips.com>
Change-Id: Ia577a53deee86d688ad7283cfd2e36c2a17e821a
2024-12-30 11:28:41 +00:00
Weiwen Chen
7e4e4b574b video: rockchip: mpp_osal: ROCKCHIP_MPP_OSAL remove chip id
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I45176834553654cadcd026ab73ea9c0695bd7c01
2024-12-30 11:28:41 +00:00
Tao Huang
56ee595148 input: touchscreen: gsl_point_id: Add gsl_point_id.h
drivers/input/touchscreen/gsl_point_id.c:2187:6: warning: no previous prototype for 'gsl_ReportPressure' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:2209:6: warning: no previous prototype for 'gsl_TouchNear' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:2317:6: warning: no previous prototype for 'gsl_DataInit' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:2595:14: warning: no previous prototype for 'gsl_version_id' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:2601:14: warning: no previous prototype for 'gsl_mask_tiaoping' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:2647:6: warning: no previous prototype for 'gsl_alg_id_main' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:2697:5: warning: no previous prototype for 'gsl_obtain_gesture' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:3001:6: warning: no previous prototype for 'gsl_GestureExtern' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:3076:14: warning: no previous prototype for 'gsl_GestureBuffer' [-Wmissing-prototypes]
drivers/input/touchscreen/gsl_point_id.c:549:5: warning: no previous prototype for 'abs' [-Wmissing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I85aba64c02e93734df77e806b96f264bf91e244b
2024-12-30 19:11:07 +08:00