summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2019-05-21phy: rockchip-emmc: Allow to set drive impedance via DTS.Christoph Muellner
The rockchip-emmc PHY can be configured with different drive impedance values. Currenlty a value of 50 Ohm is hard coded into the driver. This patch introduces the DTS property 'drive-impedance-ohm' for the rockchip-emmc phy node, which uses the value from the DTS to setup the drive impedance accordingly. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
2019-05-21Revert "phy: rockchip-emmc: lower drive impedance to 33 ohm"Christoph Muellner
This reverts commit d9bb659938cfeec97b01edf303f416d82f3adbea. Reason is, that the change will be replaced by the upstream patch series for this issue. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
2019-05-21phy: rockchip-emmc: lower drive impedance to 33 ohmJakob Unterwurzacher
Improves signal integrity on the RK3399-Q7 Puma. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2018-12-11mtd: spi-nor: add GigaDevice gd25lq32Jakob Unterwurzacher
This is the 1.8V version of the gd25q32.
2018-05-09spi: rockchip: configure gpios from cs-gpiosKlaus Goger
SPI core provides the functionality to have GPIO based chip selects but assumes that the pins are already configured by the platform. Configure GPIO style pins in rockchip_spi_setup so they can be used later on. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2018-05-09spi: Add Flag to Enable Slave Select with GPIO Chip Select.Thor Thayer
Some SPI masters require slave selection before the transfer can begin [1]. The SPI framework currently selects the chip using either 1) the internal CS mechanism or 2) the GPIO CS, but not both. This patch adds a new master->flags define to indicate both the GPIO CS and the internal chip select mechanism should be used. Tested On: Altera CycloneV development kit Compile tested for build errors on x86_64 (allyesconfigs) [1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39) Signed-off-by: Thor Thayer <tthayer@opensource.altera.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2018-05-09spi: rockchip: Set GPIO_SS flag to enable Slave Select with GPIO CSJeffy Chen
The rockchip spi still requires slave selection when using GPIO CS. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
2018-05-09Revert "spi: rockchip: set higher io driver when sclk higher than 24MHz"Jakob Unterwurzacher
Causes a kernel panic on the RK3399-Q7 "Puma". See https://github.com/rockchip-linux/kernel/issues/79 for details. This reverts commit 7e4349ec9d70dbcfe7f78125700d2685539ea1bd.
2018-05-09can: ucan: add driver for Theobroma Systems UCAN devicesJakob Unterwurzacher
The UCAN driver supports the microcontroller-based USB/CAN adapters from Theobroma Systems. There are two form-factors that run essentially the same firmware: * Seal: standalone USB stick ( https://www.theobroma-systems.com/seal ) * Mule: integrated on the PCB of various System-on-Modules from Theobroma Systems like the A31-µQ7 and the RK3399-Q7 ( https://www.theobroma-systems.com/rk3399-q7 ) The USB wire protocol has been designed to be as generic and hardware-indendent as possible in the hope of being useful for implementation on other microcontrollers. Signed-off-by: Martin Elshuber <martin.elshuber@theobroma-systems.com> Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2018-05-09rtc: isl1208: set uie_unsupportedJakob Unterwurzacher
The isl1208 emulation on puma / rk3399-q7 does not support interrupts at all, but has no way to announce that fact to the kernel. This causes problems in user-space: # hwclock -r -D [...] select() to /dev/rtc to wait for clock tick timed out...synchronization failed Set the uie_unsupported flag unconditionally in the driver until we get a way to configure it through a device tree property. Fixes the problems with hwclock. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2018-05-09brcmfmac: sleep workaround for AP6255 "Gopher" Wifi moduleJakob Unterwurzacher
Disable sleep for now as the Gopher module does not seem to wake up again. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2018-05-09drm/rockchip: increase vop selection message priorityJakob Unterwurzacher
As the VOPs have different capabilities, which vop was selected is usually interesting to the user. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2018-05-09drm/rockchip: dw-hdmi: downgrade "failed to set" message to infoJakob Unterwurzacher
hdmi works fine, and looking at what properties are actually failing (see below) indicates that they are not essential. Downgrade the message level from "error" to "info". [ 10.545924] [drm:dw_hdmi_rockchip_set_property] failed to set rockchip hdmi connector property hdmi_color_depth_capacity [ 10.557993] [drm:dw_hdmi_rockchip_set_property] failed to set rockchip hdmi connector property hdmi_output_mode_capacity [ 10.570473] [drm:dw_hdmi_rockchip_set_property] failed to set rockchip hdmi connector property brightness [ 10.581221] [drm:dw_hdmi_rockchip_set_property] failed to set rockchip hdmi connector property contrast [ 10.591810] [drm:dw_hdmi_rockchip_set_property] failed to set rockchip hdmi connector property saturation [ 10.602415] [drm:dw_hdmi_rockchip_set_property] failed to set rockchip hdmi connector property hue [ 10.708193] rockchip-dp ff970000.edp: Link Training Clock Recovery success [ 10.717607] rockchip-dp ff970000.edp: Link Training success!
2018-05-09brcmfmac: add support for BCM43455 with modalias sdio:c00v02D0dA9BFJakob Unterwurzacher
BCM43455 is a more recent revision of the BCM4345. Some of the BCM43455 got a dedicated SDIO device ID which is currently not supported by brcmfmac. Adding the new sdio_device_id to brcmfmac is enough to get the BCM43455 supported because the chip itself is already supported (due to BCM4345 support in the driver). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Tested-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Upstream commit a62a77881b1b6708ffeddd9bf0529494f7b199e3
2018-05-09Input: add driver for Silead touchscreensRobert Dolca
This driver adds support for Silead touchscreens. It has been tested with GSL1680 and GSL3680 touch panels. It supports ACPI and device tree enumeration. Screen resolution, the maximum number of fingers supported and firmware name are configurable. Signed-off-by: Robert Dolca <robert.dolca@intel.com> Signed-off-by: Daniel Jansen <djaniboe@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: silead - remove some dead code buf[0] is an unsigned char. touch_nr is an int. The test for negative here doesn't make sense so I have removed it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: silead - use devm_gpiod_get The silead code is using devm_foo for everything (and does not free any resources). Except that it is using gpiod_get instead of devm_gpiod_get (but is not freeing the gpio_desc), change this to use devm_gpiod_get so that the gpio will be properly released. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: silead_gsl1680 - document firmware-name, fix implementation The driver has supported touchscreen-fw-name to specify the firmware to load since it has been merged, but this was omitted from the dt-binding documentation. During review of adding touchscreen-fw-name to the binding documentation it was brought up that there is a standard property name called "firmware-name" for this, which should be used. Since there are no users of touchscreen-fw-name yet, this commit adds documentation of "firmware-name" to the dt-binding documentation and switches the driver over to use this. This commit also makes the driver add a "silead/" prefix to the firmware name from dt before calling request_firmware. That the firmware files are stored under /lib/firmware/silead under Linux is an implementation detail and does not belong in devicetree. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: silead_gsl1680 - use "silead/" prefix for firmware loading The silead touch-controller ICs use a different firmware per digitizer / tablet model. So there are going to be quite a few of then and they really should be under a separate subdir. This commit prefixes the default firmware names with "silead/" just like we are already doing for devicetree specified firmware names. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: silead - add OF device ID table The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:<device>. But this could change in the future so the correct approach is to have an OF device ID table if the devices are registered via OF. As pointed by Hans de Goede, there's no mssl1680 and this is just used in some ACPI systems to identify the gsl1680 chip. So isn't included in the OF device ID table since a DT should use the proper device name instead. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Input: back-port silead.c: pos[i] handling/assignment Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Input: back-port silead.c: invert_x/y & swap_xy Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Input: silead: retry firmware load If we get ENOENT when trying to load the firmware, this can just mean that the rootfs is not mounted yet. Return EPROBE_DEFER so the probe is retried later. To prevent an infinite probe loop when the firmware does not exist at all, the retries are capped to 10. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2018-04-28Revert "clk: rockchip: rk3399: Fix clk_cifout and clk_cifout_src"Finley Xiao
This reverts commit 44822b10317558fc14d41962a7781d4267cd1592. Change-Id: I4cc331caf0e6cd853099a770f438276762a219f3 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-27drm/rockchip: add a debug node to dump buf from applicationShixiang Zheng
dump path: /data/vop_buf debug nod: d/dri/0/ff900000.vop/vop_dump/dump echo dump > dump to dump one frame echo dumpon > dump to start vop keep dumping echo dumpoff > dump to stop keep dumping echo dumpn > dump n is the number of dump times if fd err -3 try rm -r /data/vopbuf echo dump1 > dump can fix it if fd err -28 save needed data try rm -r /data/vopbuf Change-Id: Id5fefa428db1b5669ceae418cd8bddfa52e52f61 Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-04-27media: i2c: ov5695: initialize sensor driver after io_domainHu Kejun
Change-Id: Ia0d754d941ba9bda874efe787a985f00cf1be779 Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-04-27BACKPORT: usb: gadget: add tracepoints to the gadget APIWilliam Wu
This new set of tracepoints will help all gadget drivers and UDC drivers when problem appears. Note that, in order to be able to add tracepoints to udc-core.c we had to rename that to core.c and statically link it with trace.c to form udc-core.o. This is to make sure that module name stays the same. Change-Id: I23eb801151a75629a8a2f6e7d9203f58281ed3d2 Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: William Wu <william.wu@rock-chips.com> (cherry picked from commit 5e42d710a108c23c104e083900d4ba9398e418b0)
2018-04-27UPSTREAM: usb: gadget: move gadget API functions to udc-coreFelipe Balbi
instead of defining all functions as static inlines, let's move them to udc-core and export them with EXPORT_SYMBOL_GPL, that way we can make sure that only GPL drivers will use them. As a side effect, it'll be nicer to add tracepoints to the gadget API. While at that, also fix Kconfig dependencies to avoid randconfig build failures. Change-Id: I3fcc99c0730608076cfa8624908e58b7ee6f1bef Acked-By: Sebastian Reichel <sre@kernel.org> Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: William Wu <william.wu@rock-chips.com> (cherry-picked from commit 5a8d651a2bde01e00caf78496390d6ae46df80af)
2018-04-27iommu/rockchip: support rk_iommu_map_sg for iommu opsSimon Xue
Impletement rk_iommu_map_sg for rk_iommu_ops, which only flush TLB once after each sg been mapped, that speed up the map operation. Change-Id: Ief123ad363018d2b3227066c07338ccbd75c9d84 Signed-off-by: Simon Xue <xxm@rock-chips.com>
2018-04-27regulator: tps549b22: add TI TPS549b22 supportXiaoDong Huang
Change-Id: I7550fc9f78a30b5d8ff705403ad91cfd8727fad6 Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-04-26PM / devfreq: rockchip_dmc: Adjust struct rockchip_dmcfreq in suspend.Tony Xie
Change-Id: If9761fe64d7edef6e218dee591f523679e154199 Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-04-26PM / devfreq: rockchip_dmc: Update cpu dma latency when change frequencyFinley Xiao
Change-Id: Ia063ce7da2f68ffac4068f4f8136acf178a28918 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-04-26PM / devfreq: rockchip_dmc: support wait_complete.Tony Xie
Change-Id: Ie3f173f632068f261b84a204bbd36b26b10e1981 Signed-off-by: Tony Xie <tony.xie@rock-chips.com> Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-04-26uvcvideo: add quirk for dev parent with broken auto suspendWilliam Wu
If the parent of uvc device has a quirk for broken auto-suspend function (e.g. rk3328 usb 3.0 root hub), we also need to disable auto-suspend for the uvc device. Change-Id: Ida8d05a411f49f39e13cad3ec837a56598b4a630 Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-04-26usb: dwc3: rockchip: fix usb peripheral connection failWilliam Wu
This patch fix the issue that usb peripheral fails to connect to PC after resume from deep sleep. In my test case, I use a rk3399 sapphire excavator board, and test usb as follows: - Let the system enter deep sleep without usb connection. - During deep sleep, connect the Type-C0 of rk3399 with PC usb port. - Press power key to wakeup system, and check if the PC can detect usb. Without this patch, the usb enumeration often fail with the error log "dwc3 fe800000.dwc3: failed to enable ep0out". It's because that after system resume, the dwc3 pm resume and dwc3 pm runtime resume are running asynchronously. If dwc3 runtime resume before pm resume, the dwc3_resume_common() maybe called twice, and cause ep enable failure. This patch use the suspend flag of dev to wait until the dwc3 core resume from PM suspend successfully before do dwc3 pm runtime resume. Change-Id: I6a67ad636630699569e16346ac167b785b800f85 Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-04-25input: touchscreen: add the ABS_X and ABS_Y report for gt1xCaesar Wang
As the linux platform used the udev/mdev userspace mechanisms, It needed the ABS_X and ABS_Y when the input event as the touchscreen. Otherswise the userspace will identify as the keyboard. Change-Id: I892ed37252d49c5457fe1f25fdd14dabce6ff9cf Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-04-25clk: rockchip: rk3368: set true clk for spdifXinhuang Li
the mux_spdif_8ch_p is composed of spdif_8ch_src not spdif_8ch_pre Change-Id: I7dd40e35078b2d012af2c777de763d14e93c3d4e Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-04-24clk: rockchip: rk3288: remove the flag ROCKCHIP_PLL_SYNC_RATE for GPLLFinley Xiao
If pwm regulator is enabled in uboot, the rate of pclk_pwm can't be changed, otherwise the voltage may be abnormal. The gpll is the parent clock of pclk_pwm, its rate also can't be changed. Change-Id: I493de867ec6d0f8308a03f5ad6fe2244bbae7d11 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-24drm/rockchip: vop: ignore crtc close when crtc is disabledSandy Huang
when in suspend state, the crtc clock is disabled, if we do reboot at this time, the following call will lead to system panic: ->rockchip_drm_platform_shutdown() ->vop_crtc_close() Change-Id: I1989d0da4d033d608d59587385da288789d9c2c1 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-04-24mfd: rk808: Set only resetting pmic register for 817&809.Tony Xie
If the system needs hold register values when system will reboot. need to set only resetting pmic register for 817&809 forcedly. Change-Id: Ib4b850c86ec3079cd7e374bc96460ee1532854a2 Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-04-24soc: rockchip: rk_fiq_debugger: better console thread printTao Huang
- Print by message other than by byte. Make messages more readable. - Sleep while block other than busy loop. Reduce cpu usage while print a lot of messages. - Show how many messages dropped. Let people know that the messages are not complete. - Wake up console_task when needed. Reduce unneeded call wake_up_process. Change-Id: I508d2f5b6671695413b01bc167d768ec9b614934 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-04-23MALI: bifrost: RK: There are a few modifications in some 'Kbuild' and ↵lihuang
'Kconfig' files. A new config MALI_BIFROST_FOR_LINUX is introduced to specify which directory of Birfrost to use. Change-Id: I1f4a01e963073c68238b08f930b196aa799b8e17 Signed-off-by: Putin Lee <putin.li@rock-chips.com>
2018-04-23MALI: bifrost: RK: add separate src dir of Bifrost driver for RK Linux devicelihuang
The version of Bifrost DDK used in RK Linux device is different from the one used in Android platforms. It might be convenient to have a separate src directory for it. The new directory drivers/gpu/arm/bifrost_for_linux is copied from drivers/gpu/arm/bifrost of commit 25c5dc5a92y. It's on DDK r8p0-01rel0 Change-Id: I3b8b4f071104faf988e56b9b61d41378831943bb Signed-off-by: Putin Lee <putin.li@rock-chips.com>
2018-04-23usb: fix error of reference count of epMeng Dongyang
The reference count of endpoints is same with the interface number in the quirk case of USB_QUIRK_AUTO_SUSPEND. This will result in a break of unregister interface cycle. As a result, the device only unregister the first interface when disconnect. This patch use "j" instead of "i" to solve this problem. Fixes: f092c995c31e ("USB: core: flush pending URBs for unusual USB3 core when disable device") Change-Id: I7aba63c0d38768cb956394a702bb61ae3f3250ba Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2018-04-19drm/rockchip: vop: config dclk invert from grf registerSandy Huang
Some platform like rk3288,rk3368,px30, we need to config grf register to invert dclk polarity when connector is rgb or lvds. Change-Id: I9ef9ce09f050ee42c0543d415a9baac1f50a0848 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-04-19drm/rockchip: vop: add support dclk invert configSandy Huang
Since some special hardware or panel need to invert dclk, so we add dclk invert config at dts display timing node: dts sample: display-timings { timing0: timing0 { ... pixelclk-active = <1>; ... } } Change-Id: I64f053ecda0f607bdd6fd392a0922489502ac274 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-04-19regulator: of: Use regulator-init-microvolt as early minimumFinley Xiao
Change-Id: If491089520b3228484357e08482ae0e955b1226a Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-19regulator: core: Fix min_uV and max_uV error of regulator_release_early_min_voltFinley Xiao
Fixes: 6882654464ae4 ("regulator: core: Add support to limit min_uV during system startup") Change-Id: Ie281f77d9e36cd8bc72b075bb7b18b9cb0eb7ec5 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-18firmware: rockchip_sip: Export the sip_smc_vpu_reset APIZhangbin Tong
Change-Id: Id5afcc8d9afc7e5e1cb188a5d4b7a8f1de3f46e8 Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-04-18PM / devfreq: rockchip_dmc: Add support for rk3308Finley Xiao
Change-Id: Iff7deff76a02360021aacaeaa0d509593f88fb2d Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-18PM / devfreq: rockchip_dmc: Adjust voltage according to opp table when probeFinley Xiao
If dmc node doesn't contain 'system-status-freq' and auto-freq is disabled, devfreq feature won't be added and only to adjust voltage according to opp table. Change-Id: Iaf9d9f61938babff2e08719e2285a8554cfa9389 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-18clk: rockchip: rk3308: Add sclk_ddrcFinley Xiao
Change-Id: I5cbec62ab78623c1adcb79ac8990e3620223de23 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-18regulator: core: Add support to limit min_uV during system startupFinley Xiao
Now a regulator device can supply multiple consumers at the same time, if a consumer starts and set a low voltage, another consumer doesn't start in kernel but has been set a high frequency in bootloader will abort. This patch Adds support to limit min_uV during kernel startup to make sure the voltage can suit the needs of all consumers. Change-Id: Ibd16a8e44916798021e2470c90a8e3488df206f4 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-17wifi: add marvell 88W8977 wifi module driverQiang Wu
Change-Id: Ia1e254e2c084621141d837be385d9198962be1cd Signed-off-by: Qiang Wu <xianlee.wu@rock-chips.com>
2018-04-17video: rockchip: vpu: Support default freq for rk3288wZhouJing
Change-Id: Ic9e5adfbb129a5af731ce6bf49d4d197e80e9c6d Signed-off-by: Zhou Jing <tracy.zhou@rock-chips.com>
2018-04-17drm/rockchip: inno-hdmi-phy: Get inno hdmi phy config from dtsAlgea Cao
Setting inno phy config table in dts. According to tmds clock range, phy config data can be chosen. We can also filter some video modes which tmds clock out of range we set. Change-Id: I666c825921877fe2cdf45c2ccd1415815a4b7715 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-04-17drm/rockchip: update crtc->primary->fb only for hotplug device.Sandy Huang
For hotplug device the crtc->primary->fb should be equal to fb_helper->fb, otherwise the following path will return false and lead to connect state error: ->hotplug ->output_poll_changed() ->drm_fb_helper_hotplug_event() ->drm_fb_helper_is_bound() after user space beging, the above path can return false, because sometimes user space wants everything disabled, don't steal the display if there's a master, so we set crtc->primary->fb point to the original fb when drm_open. Change-Id: I5343978ce602324dbdc3125b6b98a7b4233149ab Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-04-17drm/rockchip: update rockchip_drm_platform_shutdownSandy Huang
The reason to implement shutdown is for the fake shutdown on the box product. but after implement this function, panel will still display overlay plane for about two second when power off. so we directly close crtc instead of rockchip_drm_sys_suspend() when shutdown. Change-Id: I60ed3e541e022ad828fd535828fe264aabd40ecb Signed-off-by: Sandy Huang <hjc@rock-chips.com>