clk: defer clk_gets on orphan clocks Orphan clocks or children of orphan clocks don't have rate information at all and can produce strange results if they're allowed to be used and the parent becomes available later on. This change, based on one from Stephen Boyd, defers __clk_create_clk() calls on orphan clocks in all regular cases. One special case that gets handled, is accessing such orphan clocks when handling assigned-clocks configurations. In the boot-defaults it may be the case that a clock is connected to an orphan parent which then might be needed to get reparented to an actually usable clock using assigned-clock-parents. In this case even orphaned clocks should be usable, but only for the set-parent case. The added of_clk_get_from_provider_with_orphans() is only available to ccf internal parts to prevent abuse. (am from https://patchwork.kernel.org/patch/7690221/) Change-Id: I2e603dab191fa8a431adebad1f9d482d52b7deeb Signed-off-by: Heiko Stuebner <heiko.stuebner@collabora.com> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
clk: rockchip: optimizing ddrclk_scpi_recalc_rate behavior Cat ddr frequency from rockchip_ddrclk_scpi_set_rate prior to rockchip_ddrclk_scpi_recalc_rate, to optimizing running time and reduce SCPI APIs usage rate. Change-Id: Iba31d33a5920816b1cc230f639ea3a9503d451c8 Signed-off-by: Tang Yun ping <typ@rock-chips.com>
clk: rockchip: support setting ddr clock via SCPI APIs On rk3368, let a mcu scaling ddr clock via SCPI (System Control and Power Interface) APIs. Change-Id: I95342b876caad991e6d1319c5e4ec793365c7981 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git * linux-linaro-lsk-v4.4-android: (434 commits) Linux 4.4.52 kvm: vmx: ensure VMCS is current while enabling PML Revert "usb: chipidea: imx: enable CI_HDRC_SET_NON_ZERO_TTHA" rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down block: fix double-free in the failure path of cgwb_bdi_init() goldfish: Sanitize the broken interrupt handler x86/platform/goldfish: Prevent unconditional loading USB: serial: ark3116: fix register-accessor error handling USB: serial: opticon: fix CTS retrieval at open USB: serial: spcp8x5: fix modem-status handling USB: serial: ftdi_sio: fix line-status over-reporting USB: serial: ftdi_sio: fix extreme low-latency setting USB: serial: ftdi_sio: fix modem-status error handling USB: serial: cp210x: add new IDs for GE Bx50v3 boards USB: serial: mos7840: fix another NULL-deref at open tty: serial: msm: Fix module autoload net: socket: fix recvmmsg not returning error from sock_error ip: fix IP_CHECKSUM handling irda: Fix lockdep annotations in hashbin_delete(). dccp: fix freeing skb too early for IPV6_RECVPKTINFO ... Conflicts: drivers/mmc/core/mmc.c drivers/usb/dwc3/ep0.c drivers/usb/host/xhci.h Change-Id: Icf331a68162ab686d01996a3f43fa2e97543f62e