Commit Graph

603693 Commits

Author SHA1 Message Date
Wyon Bi
bd1f544337 arm64: dts: rockchip: rk3366: add power-domains for mipi-dphy node
Change-Id: I581242c5b04cfbd3d6c124455d075d8152598942
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-09-20 11:42:40 +08:00
Wyon Bi
4e400b8842 phy: rockchip-inno-mipi-dphy: add runtime pm support
Change-Id: I06c311a282e2bd97c51e551306b999dbdedcdce5
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-09-20 11:40:52 +08:00
Wyon Bi
05949ca09c arm64: dts: rockchip: rk3368: add power-domains for mipi-dphy node
Change-Id: I7e4e03628efc4e29f04d465ec91969953881c332
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-09-20 11:40:28 +08:00
Wyon Bi
728ba28fc0 clk: rockchip: rk3368: remove CLK_IGNORE_UNUSED flag from DPHY related clocks
This flag was in place to prevent important clocks from getting gated
while they had no users. Now that the driver supports clocks
properly, we can drop this.

Change-Id: I91d0a5c000ed7215bf55dbc871e175ac79a1cd2a
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-09-20 11:40:21 +08:00
YouMin Chen
a1ce792af5 dt-bindings: dram: add the document for rk3399_dram_timing
Change-Id: I2412fb9d75050add02746b19ee23d1717d061dca
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2017-09-20 11:31:34 +08:00
YouMin Chen
b9d770c7de PM / devfreq: rockchip_dmc: add auto_lp_dis_freq to rk3399 dram timing table
When DRAM frequency greater than or equal to this setting value,
the function of auto power-down will disable.

Change-Id: I0c7faee045ff00de0dc36adc45e21389c41aa81f
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2017-09-20 11:31:08 +08:00
YouMin Chen
4625e95606 PM / devfreq: rockchip_dmc: modify rk3399 dram default timing
Change-Id: I1af3177d78240c0767a4a71f4f085b55b2d7a2c6
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2017-09-20 11:30:58 +08:00
Alex Zhao
a7e71a03cf net: wireless: rockchip_wlan: ap6255: fix irq abnormal.
the dmesg log is like:
[11244.133855] Call trace:
[11244.133871] Exception stack(0xffffffc075cdf820 to 0xffffffc075cdf950)
[11244.133885] f820: ffffffc07b7d6040 0000008000000000 000000000169f000 ffffff80089174c4
[11244.133899] f840: 00000000804001c5 ffffff800940b1e0 0000000000000000 ffffff80091ec000
[11244.133913] f860: 0000000000000040 ffffff8008bf7000 0000000000000140 ffffff80091ec000
[11244.133924] f880: ffffff800938a830 cb88537fdc8ba653 ffffffc075cdf8e0 ffffff80080f28ec
[11244.133935] f8a0: ffffffc075cdf8b0 ffffff80080eabf0 ffffffc075cdf8e0 ffffff80080f29f8
[11244.133949] f8c0: ffffffc075cdf8e0 ffffff80080f2a28 ffffff800938a830 cb88537fdc8ba653
[11244.133963] f8e0: ffffffc07b41e400 0000000000000000 0000000000000000 0000000086098608
[11244.133975] f900: 0000000000000000 0000000000000000 00000000fffffffa ffffffc07b050580
[11244.133988] f920: ffffff80082fb318 7f7f7f7f7f7f7f7f 722d6367636c6261 7f7f7f7f7f7f7f7f
[11244.133998] f940: 0101010101010101 0000000000000010
[11244.134024] [<ffffff80089174c4>] clk_core_disable+0x18/0x18c
[11244.134039] [<ffffff80089178f0>] clk_disable+0x2c/0x40
[11244.134064] [<ffffff80083ab5a4>] rockchip_irq_gc_mask_set_bit+0x20/0x2c
[11244.134086] [<ffffff80080f7788>] irq_shutdown+0x4c/0x68
[11244.134098] [<ffffff80080f556c>] __free_irq+0x100/0x20c
[11244.134109] [<ffffff80080f5708>] free_irq+0x48/0x58
[11244.134129] [<ffffff80085c274c>] bcmsdh_oob_intr_unregister+0x8c/0xa0
[11244.134143] [<ffffff80085d1184>] dhd_bus_devreset+0x84/0x2c4
[11244.134166] [<ffffff80085a1754>] dhd_net_bus_devreset+0xc4/0x104
[11244.134190] [<ffffff80085b5aec>] wl_android_wifi_off+0xb8/0x10c
[11244.134205] [<ffffff80085a5560>] dhd_stop+0x6c/0x1d0
[11244.134227] [<ffffff80089bdb14>] __dev_close_many+0x9c/0xc0
[11244.134237] [<ffffff80089bdc5c>] __dev_close+0x38/0x68
[11244.134253] [<ffffff80089c6170>] __dev_change_flags+0xa8/0x140
[11244.134264] [<ffffff80089c6228>] dev_change_flags+0x20/0x5c
[11244.134290] [<ffffff8008a621a0>] devinet_ioctl+0x29c/0x60c
[11244.134304] [<ffffff8008a63a70>] inet_ioctl+0xc0/0xec
[11244.134327] [<ffffff80089a50f4>] sock_do_ioctl+0x30/0x5c
[11244.134341] [<ffffff80089a63c0>] sock_ioctl+0x2d8/0x314
[11244.134365] [<ffffff80081c6fb8>] do_vfs_ioctl+0x5e4/0x720
[11244.134377] [<ffffff80081c7154>] SyS_ioctl+0x60/0x88
[11244.134400] [<ffffff8008082930>] el0_svc_naked+0x24/0x28

Change-Id: I93cffbf170e96ccb71da53123f61c78f0ffdc98a
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2017-09-20 11:30:35 +08:00
Elaine Zhang
88a5404a22 clk: rockchip: fix up the rockchip_fractional_approximation
If frac clk parent rate is PLL rate, but still lower
than frac rate*20, not allowed fractional div.

Change-Id: I09c93e1d8f32c0a4e345057964d58505b1477204
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-09-20 10:29:37 +08:00
Elaine Zhang
a8cf408589 ARM64: dts: rockchip: rk3399: assigned clk_uart4_src parent to PPLL
clk_uart4_src default parent is 24M,does not satisfy the
fractional divider must set that denominator is 20 times
larger than numerator.

Change-Id: I21fd9866794e052414a6fdf1d64840ac2a0bb8f2
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-09-20 10:29:37 +08:00
Elaine Zhang
1b523997b3 clk: rockchip: rk3399: fix up the clk tree description for clk_uart4
slove clk_uart4 set rate error.

Change-Id: Icf8f36a5c68658ed92a1b794dc68f37c729d2646
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-09-20 10:29:37 +08:00
Finley Xiao
f6c39e35ad PM / devfreq: rockchip_dmc: Add dmc_ondemand governor
The dmc driver supports changing min_freq and max_freq according to
system status and vop bandwidth at present. But even if user changes
governor to userspace, the ddr frequency may also change constantly.

This patch adds a new dmc_ondemand governor which doesn't chang min_freq
and max_freq, it can also support changing ddr frequecy based on usage,
system status and vop bandwidth. So users can set their own frequency by
the userspace governor.

Change-Id: Ib731f29a6ded3b7f05e60cbae4f858e6beeac9da
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-09-20 09:42:56 +08:00
Finley Xiao
9836687630 PM / devfreq: rockchip_dmc: Allow to change frequency according to vop BW
There is a frequency map table between vop bandwidth and dmc, when vop
bandwidth is changed, the dmc frequency will also be changed to specified
frequency.

If new request frequency is greater than old request frequency, update dmc
target frequency immediately. If new request frequency is less than old
request frequency, only update min_freq and max_freq.

Change-Id: Ib5bf098faf5ffa72e60c34aa686431352420e69b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-09-20 09:42:23 +08:00
Finley Xiao
4a57a86932 PM / devfreq: rockchip_dmc: Fix support for optional regulators
When not using the "_optional" function, a dummy regulator may be returned
and the driver fails to set voltage.

Change-Id: Ib636572362ece234d6b5694c8832ec01daa274e1
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-09-20 09:42:09 +08:00
buluess.li
4c0c4b768e ARM: rockchip_linux_defconfig: enable PHY_ROCKCHIP_INNO_HDMI_PHY
hdmi driver need enable PHY_ROCKCHIP_INNO_HDMI_PHY

Change-Id: I4172da24bd0c3200eaa42f73707701581269527f
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2017-09-19 14:58:12 +08:00
Weiwen Chen
c314b8abdf ARM: dts: rk322x: fix clk quotes error.
This patch fix sdio/sdmmc/emmc clock-names quotes error.

Change-Id: Ia88b3e2291a53fea7cffcd37ef3a201ae34d4218
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2017-09-19 14:54:46 +08:00
Mark Yao
46a3042927 drm/rockchip: report error when fb object is invalid
Change-Id: Icfc935f6ef4daff0d670d4d94cf820d0d7cbd9bc
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-09-19 14:53:48 +08:00
Wyon Bi
79ee71ee81 clk: rockchip: rk3399: remove CLK_IGNORE_UNUSED flag from DPHY related clocks
This flag was in place to prevent important clocks from getting gated
while they had no users. Now that the DSI driver supports clocks
properly, we can drop this.

Change-Id: Ibdc1210d5ec97ec53dfff9bd989b2297b070ff28
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-09-19 14:41:16 +08:00
shengfei Xu
88ed39ecdc ARM: dts: rockchip: fix rk816 node error for rk3126-evb
Change-Id: Ib1a5fc7fe565b0bf6485386b40a3f87c181bfa8e
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2017-09-19 11:28:52 +08:00
zhoupeng
0067ec165b media: rk-isp10: optimize readability of code
rk-isp10: version 0.1.a
1. To optimize the readability of the code, based on v0.1.9
2. Optimize CIF_MI_CTRL_BURST_LEN param.
3. Add check for cam_itf.type(PLTFRM_CAM_ITF_BT656_8I) on
cif_isp10_s_fmt_mp.
4. get field_flag value from cif_isp10_isp_isr.

Change-Id: I334595c01e8b418b47e0a54e6fdfcf624445ff9f
Signed-off-by: zhoupeng <benjo.zhou@rock-chips.com>
2017-09-19 11:26:52 +08:00
Meng Dongyang
2eb5cbfc4b ARM: dts: rockchip: add support of host port for rk312x
This patch add support of EHCI and OHCI controller for rk312x.

Change-Id: I2bd7056240438f8a2af6baa9f0e7b24ce85343d3
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-09-19 11:25:58 +08:00
Zhou weixin
c89d573e25 arm64: rockchip_defconfig: enable mc3230 gsensor
Change-Id: I021013b8f674d8322013adb97f7e5d9cd2f288f8
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-09-19 10:43:28 +08:00
Zhou weixin
defe62616f sensor: mc32xx: update driver for support more sensors of mc32xx series
Change-Id: I9d8bff11f91364da3cdf573505c2d265550837da
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-09-19 10:43:12 +08:00
Zhou weixin
ea78a6e98a arm64: dts: rockchip: add mc3230 node for rk3368-xikp.dts
Change-Id: I1ef11f273269d1cf272c4cce494b40318c5050f8
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-09-19 10:42:59 +08:00
Wu Liang feng
187fcbc756 ANDROID: usb: gadget: fix NULL pointer dereference in mtp_read/write
The userspace may do an invalid mtp_open operation, e.g. the
usb function is configured to ADB only mode, but the userspace
may still call mtp_open operation because of error state machine
in the userspace. In this case, if the userspace try to set usb
function as ADB + MTP next time, it will call mtp_open again
and finally fail because that mtp_lock is busy, so the fp->
private_data is uninitiated. And this will cause cdev to be
NULL pointer in mtp_read and mtp_write.

Change-Id: Id82d0914ece850cfb2b3a8cacc2930cdccb5df46
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2017-09-18 20:23:52 +08:00
Mark Yao
12dfe26a3e video/rockchip: rga2: fix power domain reference count
Change-Id: I6f3746556e5015289a30b88820b20724210c39a6
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reported-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-09-15 18:29:01 +08:00
Frank Wang
29e9ba5e2c ARM: rockchip_linux_defconfig: enable more usb related config
This patch amends usb related config for Rockchip ARM32 platforms.

Change-Id: Iea159e8ae96739b7c8f2e2745a74a8d5db2360da
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-09-15 14:13:04 +08:00
Frank Wang
fd3d29171d phy: fix Kconfig dependencies for PHY_ROCKCHIP_INNO_USB2
Rockchip Inno usb2-phy uses extcon_* methods and because of
that, it must select EXTCON as a dependency. This patch fixes it.

Change-Id: Ia2b712154e4fee567b843f38f50fbcc00c49bf1e
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-09-15 14:12:53 +08:00
Meng Dongyang
240652b6d3 ARM: dts: rockchip: enable dwc2 controller for rk3128-evb
This patch enable dwc2 controller and u2phy for rk3128.

Change-Id: I34fa8eaaf722266a1ffec124ae7aa46b4e0798d5
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-09-15 14:09:19 +08:00
Meng Dongyang
c5bbe16d4f ARM: dts: rockchip: add support of dwc2 controller for rk3128
This patch add the node of dwc2 controller and u2phy for rk3128.

Change-Id: Iafc6b71d0dda9c9e46fa925a2d21e4bf59a1adee
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-09-15 11:49:04 +08:00
Meng Dongyang
30bc22da1b phy: rockchip-inno-usb2: add support for rk3128
The rk312x use different config data which incluce control
register address and value. The patch add config data of
rk312x and match table to support rk3128.

Change-Id: Idd9a5c885cf5e291517e56232e77066eb5d97138
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-09-15 11:04:46 +08:00
Meng Dongyang
fa7692e1ca usb: dwc2: increase delay time after reset for rk312x
According DWC-OTG databook, after the CSftRst bit is cleared,
the application must wait at least 3 PHY clocks before doing
any access to the PHY domain. And longer delay is required for
some rockchip soc based platforms. But current delay time is
not long enough for rk312x and it will result in repeately
trigger of ID change interrupt of dwc2 controller. This patch
increase delay time from 50 millisecond to 80 millisecond to
make sure that dwc2 controller and PHY is synchronized.

Change-Id: I4aa5cc3a4ceb8f3e3907c0563ed56ec4a3853a2d
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-09-15 09:41:56 +08:00
Ming Lei
675e170adc UPSTREAM: block: deal with stale req count of plug list
In both legacy and mq path, req count of plug list is computed
before allocating request, so the number can be stale when falling
back to slept allocation, also the new introduced wbt can sleep
too.

This patch deals with the case by checking if plug list becomes
empty, and fixes the KASAN report of 'BUG: KASAN: stack-out-of-bounds'
which is introduced by Shaohua's patches of dispatching big request.

Change-Id: I00cdd180e44574aeb7167266b3aa04a28cf4cdc6
Fixes: 600271d900002(blk-mq: immediately dispatch big size request)
Fixes: 50d24c34403c6(block: immediately dispatch big size request)
Cc: Shaohua Li <shli@fb.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry pick from 0a6219a95f)
2017-09-15 09:40:14 +08:00
Shaohua Li
331eee6d7e UPSTREAM: blk-mq: immediately dispatch big size request
This is corresponding part for blk-mq. Disk with multiple hardware
queues doesn't need this as we only hold 1 request at most.

Change-Id: I2bf7fe5749d66e0192c08d16c4bb8d057ad8833f
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry pick from 600271d900)
2017-09-15 09:39:41 +08:00
Shaohua Li
63e2f4ea2d UPSTREAM: block: immediately dispatch big size request
Currently block plug holds up to 16 non-mergeable requests. This makes
sense if the request size is small, eg, reduce lock contention. But if
request size is big enough, we don't need to worry about lock
contention. Holding such request makes no sense and it lows the disk
utilization.

In practice, this improves 10% throughput for my raid5 sequential write
workload.

The size (128k) is arbitrary right now, but it makes sure lock
contention is small. This probably could be more intelligent, eg, check
average request size holded. Since this is mainly for sequential IO,
probably not worthy.

V2: check the last request instead of the first request, so as long as
there is one big size request we flush the plug.

Change-Id: I034ee890eb799ea2c2ee2d38f80f880398f39f91
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry pick from 50d24c3440)
2017-09-15 09:39:36 +08:00
Tao Huang
809e38acf1 FIXUP: sched: fix build for non-SMP target
Fix merge error. kernel/sched/energy.c should not build on non-SMP.

Fixes: f9ae5d202b ("Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git")
Change-Id: I5dba90ec363c02e489a48d76bb97f9f9d62827cd
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2017-09-14 19:58:20 +08:00
Shunqing Chen
901c36e88c ARM: rockchip_defconfig: enable cw2015
Change-Id: Ie5fadda97ca6c22343a82e049f132287aaf6873e
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2017-09-14 15:20:16 +08:00
Sugar Zhang
de20d58ea2 arm64: dts: rockchip: enable rk1000 and hdmi sound for rk3368-r88
Change-Id: I8d66b85ca07eed15897dffda0def9166decaa519
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-09-14 11:52:24 +08:00
Sugar Zhang
5e2f47bce0 arm64: dts: rockchip: rk3368: split i2s mclk from i2s-8ch-bus
Change-Id: I7cd8e67bc21ed3b35afb8835a270bc8f9f955aab
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-09-14 11:52:23 +08:00
Sugar Zhang
bb72a9b9fd arm64: rockchip_defconfig: enable rk1000 codec
Change-Id: I88c9c54904be11625cc7021db519c1ad22a0ba64
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-09-14 11:52:22 +08:00
Sugar Zhang
a4950d69c1 ASoC: rk1000_codec: fix coding style
Change-Id: I90bde35e48da9cba0d750866099491a9047d8972
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-09-14 11:52:21 +08:00
Sugar Zhang
36f4ee8477 ASoC: rockchip: add support for rk1000 codec
Change-Id: I025415287f8436d5672b8f1f8d81d87c8273772a
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-09-14 11:52:15 +08:00
Mark Yao
6c2b0f27fa ARM: dts: rockchip: rk322x: remove vop gamma_lut
RK322x vop not support gamma Lut

Change-Id: I1d6d892194add7477d4d7272eea377d0a22dbbfa
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-09-13 18:06:21 +08:00
Zheng Yang
dd52956a41 drm: bridge: dw-hdmi: enable ycbcr_420_allowed
Change-Id: I8920d8193ba0675b58ae156986b991ab9dc6f025
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2017-09-13 15:22:15 +08:00
Zheng Yang
32433f315a Revert "FROMLIST: drm: Parse HDMI 2.0 YCbCr 4:2:0 VDB and VCB"
This reverts commit 0088faa3f8.

Change-Id: I88009c4fc90fd57e5778ae6510cfe1789d4b12ae
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2017-09-13 15:22:15 +08:00
Zheng Yang
7a3045f9c9 drm/rockchip: hdmi: use drm_mode_is_420 instead of DRM_MODE_FLAG_420_MASK
If mode is compatible with YCbCr420 and mode->clock > 340MHz,
HDMI output YCbCr420 mode.

Change-Id: I6d9336cbe9c8766029acc97b1326d56e07acd1d5
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2017-09-13 15:22:15 +08:00
Zheng Yang
91644b7e32 drm/rockchip: hdmi: Implement get input/output bus format handling
Set HDMI controller input/output bus format according to vop bus format.

Change-Id: Ib669ee6b0ea586410c715518d0bc9c55f5a52a50
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2017-09-13 15:22:15 +08:00
Zheng Yang
8f49e6018e drm: bridge: dw-hdmi: support dynamically get input/out color info
To get input/output bus_format/enc_format dynamically, this patch
introduce following funstion in plat_data:
	- get_input_bus_format
	- get_output_bus_format
	- get_enc_in_encoding
	- get_enc_out_encoding

Change-Id: Ic703cba93fad8ceff773e1caca80759f95a9d547
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2017-09-13 15:22:15 +08:00
Shashank Sharma
c3751c08b6 UPSTREAM: drm: add helper functions for YCBCR420 handling
This patch adds helper functions for YCBCR 420 handling.
These functions do:
- check if a given video mode is YCBCR 420 only mode.
- check if a given video mode is YCBCR 420 also mode.

V2: Added YCBCR functions as helpers in DRM layer, instead of
    keeping it in I915 layer.
V3: Added handling for YCBCR-420 only modes too.
V4: EXPORT_SYMBOL(drm_find_hdmi_output_type)
V5: Addressed review comments from Danvet:
    - %s/drm_find_hdmi_output_type/drm_display_info_hdmi_output_type
    - %s/drm_can_support_ycbcr_output/drm_display_supports_ycbcr_output
    - %s/drm_can_support_this_ycbcr_output/
		drm_display_supports_this_ycbcr_output
    - pass drm_display_info instead of drm_connector for consistency
    - For drm_get_highest_quality_ycbcr_supported doc, move the variable
      description above, and then the function description.
V6: Add only YCBCR420 helpers (Ville)
V7: Addressed review comments from Ville
    - Remove cea_vic_valid() check.
    - Fix indentation.
    - Make input parameters to helpers, const.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1499960000-9232-9-git-send-email-shashank.sharma@intel.com
[vsyrjala: Fix sparse indentation warn]
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Change-Id: Ic2177fc9a7c9a3005fcdc88aa9183b429209d2e0
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
(cherry picked from commit 2570fe2586)
2017-09-13 15:18:39 +08:00
Shashank Sharma
fef8a1fc98 UPSTREAM: drm/edid: parse ycbcr 420 deep color information
CEA-861-F spec adds ycbcr420 deep color support information
in hf-vsdb block. This patch extends the existing hf-vsdb parsing
function by adding parsing of ycbcr420 deep color support from the
EDID and adding it into display information stored.

V2: Rebase
V3: Rebase
V4: Moved definition of y420_dc_modes into this patch, where its used
    (Ville)
V5: Optimize function, if(conditions) not reqd (Ville)
V6: Rebase
V7: Rebase

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1499960000-9232-8-git-send-email-shashank.sharma@intel.com
[vsyrjala: Fix sparse indentation warn]
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Change-Id: If18498dd48ac945e41883037bd83853a393e2efb
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
(cherry picked from commit e6a9a2c3dc)
2017-09-13 15:18:39 +08:00