ARM: dts: msm: support qseecom bus scaling in msm8974

To support qseecom bus scaling, ab & ib values are changed to set four
bandwidth levels: "INACTIVE, LOW, MEDIUM and HIGH" with corresponding
bus bandwidth of {0M, 0M, 150M, 492M}; and the flag of support-bus-scaling
is also set.

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
msm: platform: qpnp-clkdiv: fix potential null pointer dereference

Add a return statement in the spmi resource null check in
qpnp_clkdiv_probe().  This is needed in order to avoid
dereferencing a null pointer in a subsequent statement.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
misc: qpnp-misc: Handle IRQ check for PMICs other than PM8941

The SPMI MISC peripheral found in PM8226 and PMA8084 PMIC chips
also supports interrupts.  Update the qpnp-misc driver to return
the correct output of 1 from qpnp_misc_irqs_available() when
running on a system which utilizes PM8226 or PMA8084.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
misc: isa1200: correct overdrive enablement bit shift

Overdrive enablement bit sits at 6th bit of control register 0.
Current shifting overwrites overdrive high bit.

Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
usb: usb_bam: set activity state upon hsic consumer request

In the original design, upon hsic consumer request, the hsic core was
resumed, but the hsic bam state stayed in inactivity, waiting for a
packet to arrive through the bam pipes in order to get back to activity
state, ask for the hsic producer and notify the USB class driver.

However, since the resume of the hsic core upon hsic consumer request,
the USB class driver is notified about the resume by the ehci resume
callback. Therefore if we will wait for activity state the USB class
driver will get also the activity indication after the resume. On both
indications the class driver set a pm runtime vote. Therefore this
scenario lead to a double pm runtime vote that will prevent hsic suspend
from that point on.

Fix this by enter to activity state right when getting hsic consumer
request, therefore requesting the hsic producer and wait for inactivity
timer interrupt from the bam instead of activity wakeup interrupt.

Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>