switch: Reset device's drvdata before destroying it

dev_set_drvdata() sets the device specific driver data at
dev->p->driver_data.  However, dev is destroyed and has it's
context memory freed in device_destroy().  As a result, calling
dev_set_drvdata() causes a fault when accessing dev->p.

Change-Id: I4b1e6d17db52d0e31caf9b52e59979ff9cbb0c12
CRs-Fixed: 449732
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
ASoC: wcd9xxx: Fix mclk bit setting in codec probe

WCD9320 supports different master clock rates. Modify the
bits required for master clock alone. This is required to
avoid overwriting other bits in chip control register set
in default register settings.

Change-Id: Ic15d9afa75cd39b36abe3e9798686685d4282876
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
msm_fb: HDMI: Reset HDCP reauth flag when powering off

The software flag used for storing the HDCP reauthentication state
needs to be reset whenever the HDMI device is powered off. This is
needed to avoid a potential reauthentication attempt upon a
subsequent connection which could lead to device hang as a result
of incorrect sequence of register accesses.

CRs-Fixed: 444312
Change-Id: I6b5b08394dd96ccbc08c4ca72b6dc4b2c4dbf6be
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
msm: camera: Fix incorrect return on error case

For V2 version of CSID, we should only do early return
in error case.

Change-Id: I029df006d5f1e50fe3a36cd7e363571515f150dc
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
msm: camera: Reduce error logging for isp32

When ISP detect an error in the hardware, an error
interrupt is fired. The current code logs the error,
thus could cause watch dog bite if the hardware is not
stopped fast enough. This change aggregate errors and
print out error info periodically.

Change-Id: I490908b7375010c6e56ea58d7ced054e2a4dfa12
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
arm/dt: msm8974: change mount angle of S5K3L1YX

Mount angle of S5K3L1YX is different on 8974 v1 fluid (90 degree)
and mtp (270 degree). Create new dtsi file for camera fluid and
use mount angle property in sensor device to fix the issue

Change-Id: I6e2dd4c749e8ebede03cae5692746be117d4368e
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
arm/dt: msm: 8226: Add GPU properties

Add device specific GPU properties for MSM8226.

Change-Id: Ic0dedbad19ce05807840a70ddfc38a6bf05414bb
Signed-off-by: liu zhong <zhongl@codeaurora.org>
msm: kgsl: Support the new A305 revision

Add new GPU ID and macros for the updated A305 GPU.

Change-Id: I76072e010352221790d7e01f2ced0d884fa42366
Signed-off-by: liu zhong <zhongl@codeaurora.org>
msm: kgsl: add VBIF table for A305B

add VBIF table for A305B in MSM8226

Change-Id: I2b6b43a7658eada81bedcc693b81222b050d229e
Signed-off-by: liu zhong <zhongl@codeaurora.org>
arm/dt: msm8974: hdmi: add p-handle to hdmi tx device node

The pHandle is being added to enable MHL-HDMI interaction
through device tree. So that HDMI Tx can be programmed to
display appropriate video formats in the presence of MHL Tx.
Through this mechanism MHL driver receives a callback to
check HDMI TMDS status later during RAP message transactions.

Change-Id: I57c726cb5a583dbaafa2e1b678211a6ccce4d635
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
mdss: hdmi: configure default format

Configure the default format for HDMI Tx to
640x480p@60, which according to the HDMI Spec,
is the common format supported by all sinks.
The best-format negotiation will be initiated
from user space after reading edid data from the
sink, based on the sink capabilities.

Change-Id: I87a34b0746ca91eab4020d79dcc3d6a7764c8a99
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
Update copyright to The Linux Foundation

Change-Id: Ied4c250e796d4c23b5e2490d68a44b147942401c
Signed-off-by: Duy Truong <dtruong@codeaurora.org>
diag: Fix Buffer Overflow in Diag Driver

At certain areas in the Diag driver, there is a possibility of
out of array buffer writes thereby overflowing the buffer.
This change fixes the buffer overflow issues.

Change-Id: I761b0e6cf71ed404b69bb73e88196bc30711b0f0
CRs-Fixed: 416749
CRs-Fixed: 416991
CRs-Fixed: 416755
CRs-Fixed: 416745
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
mmc: msm_sdcc: update quirks in core reset

SDCC core version 0x38 also has the same reset quirk as version 0x2b.

Change-Id: Id4dff25a4635a1c7a802fbe9dfc5f7988f789fa6
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
Merge "arm/dt: msm: 8226: Add GPU properties"
Merge "msm: kgsl: Support the new A305 revision"
Merge "msm: kgsl: add VBIF table for A305B"
Merge "ASoC: wcd9xxx: Fix mclk bit setting in codec probe"
Merge "diag: Fix Buffer Overflow in Diag Driver"
mfd: wcd9xxx: Pass slimbus slave address type to slimbus slave driver

There are slimbus slave address differences among the different wcd9xxx
codec hardwares.  Fix core driver to pass this information to slimbus
slave driver in order to avoid slimbus slave device determines interface
type by itself.

Currently when new codec hardware support introduced the same change has
to be made in both of core and slimslave driver.
This change removes slimslave change requirement.

Change-Id: Ie36cfb1139ce2360be1bd66ddfc22b283f948561
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>