Commit graph

576514 commits

Author SHA1 Message Date
Jack Pham
64d72675d7 usb: pd: Avoid calling SVID disconnect if not previously connected
Only call an SVID handler's disconnect function only if it was
previously connected, i.e. when the state machine had proceeded
received a successful DISCOVER_SVIDs response. This helps to
avoid excessive notification to SVID clients.

While at it, require that .connect and .disconnect callbacks
are supplied during registration. This helps to eliminate NULL
checks each time they are called.

Change-Id: I030153a6b2106a6504ed51b5cb00a27f842e2488
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-11-02 20:22:11 -07:00
Jack Pham
9d735f2278 usb: pd: Implement RX message queuing
Add a queue to store messages in the phy_msg_received() callback.
This eliminates the call to flush_work() and allows for more
robust handling of incoming messages especially if they arrive
while the usbpd_sm work function is in progress.

In particular this fixes a bug seen when a REQUEST message is
received just after sending a SRC_CAPABILITIES, but since there
may not be a previous message, flush_work() is not called, and the
end of usbpd_sm() overwrites pd->rx_msg_type and pd->rx_msg_len
to 0. As a result, when usbpd_sm() is run again, it will see no
message and proceed to SRC_HARD_RESET.

Change-Id: I4510f91e7d23ab161517c13702462da4ec8d7a2e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-11-01 15:54:59 -07:00
Linux Build Service Account
015c20d6be Merge "icnss: Shutdown Adrastea before remapping MSA0" 2016-10-31 06:59:16 -07:00
Linux Build Service Account
c0961b67cc Merge "sched/hmp: Disable interrupts when resetting all task stats" 2016-10-31 06:59:15 -07:00
Linux Build Service Account
508ca01d9d Merge "msm: ADSPRPC: Do not pass offset for secure buffers" 2016-10-31 06:59:14 -07:00
Linux Build Service Account
fd077623a3 Merge "dt-bindings: power: reset: add document for reboot-mode driver" 2016-10-31 06:59:13 -07:00
Linux Build Service Account
8e010d3830 Merge "power: reset: add reboot mode driver" 2016-10-31 06:59:13 -07:00
Linux Build Service Account
cedaa7cef6 Merge "usb: xhci-plat: Enable wakeup for the root hubs" 2016-10-31 06:59:12 -07:00
Linux Build Service Account
aae17b0582 Merge "usb: pd: Observe PSHardResetTimer for source hard reset" 2016-10-31 06:59:11 -07:00
Linux Build Service Account
9178072f99 Merge "msm: ipa3: Support IPA-USB suspend sequence without remote wake-up" 2016-10-31 06:59:10 -07:00
Linux Build Service Account
deca532c29 Merge "arm64: Implement optimised IP checksum helpers" 2016-10-31 06:59:09 -07:00
Linux Build Service Account
bbd8499b43 Merge "ARM: dts: msm: Add initial support for msmcobalt v2 QRD VR1 board" 2016-10-30 19:50:58 -07:00
Linux Build Service Account
860386bcf2 Merge "icnss: Enable PMM_TCXO_CLK before switch to cxo" 2016-10-30 00:07:04 -07:00
Sameer Thalappil
3547f54f46 icnss: Shutdown Adrastea before remapping MSA0
MSA0 is remapped to HLOS during SSR/PDR for ramdump purposes.
Remap this memory region only after Adrastea is being shutdown, otherwise
Adrastea could still try to access this region resulting in SMMU fault.

CRs-Fixed: 1082630
Change-Id: I490b5679de4cb4837f5ed5d4e40d339e12c8ecc9
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-10-28 14:34:57 -07:00
Syed Rameez Mustafa
6385a475e0 sched/hmp: Disable interrupts when resetting all task stats
Taking the pi_lock without disabling interrupts in reset_all_task_stats()
is problematic. In that an interrupt can end up waking a task which in
turn needs the pi_lock again causing a deadlock. Disable interrupts along
with taking the lock to avoid this problem.

Change-Id: If27cb2bb3fcaafa5c8435f3c2e0e4be9b8f1e987
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-10-28 12:12:41 -07:00
Sathish Ambley
1a8a029dca msm: ADSPRPC: Do not pass offset for secure buffers
The secure buffers does not allow passing offset into the buffer
and hence skip calculation of offset for secure buffers.

Change-Id: I2cd3b87aca032d4c5868cc9db35987213349a337
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-10-28 09:50:42 -07:00
Andy Yan
b336bec1bc dt-bindings: power: reset: add document for reboot-mode driver
Add device tree bindings document for reboot-mode driver.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Git-commit: 376e27e485cbe9f903369a002d07d5a01225d1d3
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Change-Id: Ic0f2a51b5af661fd23576ae5135c920b92f0cdfd
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
2016-10-27 22:47:37 -07:00
Andy Yan
56f1cc5f65 power: reset: add reboot mode driver
This driver parses the reboot commands like "reboot bootloader"
and "reboot recovery" to get a boot mode described in the
device tree , then call the write interfae to store the boot
mode in some place like special register or sram, which can
be read by the bootloader after system reboot, then the bootloader
can take different action according to the mode stored.

This is commonly used on Android based devices, in order to
reboot the device into fastboot or recovery mode.

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
Tested-by: John Stultz <john.stultz@linaro.org>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Git-commit: 4fcd504edbf7c793325511c2df8dcd083958e28a
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/

Change-Id: Id65f6b9186e7a5209542a380bae31a1d8933b931
Signed-off-by: Wufeng.jiang <wufeng.jiang@codeaurora.org>
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
2016-10-27 22:46:42 -07:00
Linux Build Service Account
ce610f2fc9 Merge "ASoC: msm: Add routes for all TDM modes" 2016-10-27 15:49:28 -07:00
Linux Build Service Account
a8a45f5fcb Merge "ASoC: msmcobalt: Add support for all TDM modes" 2016-10-27 15:49:26 -07:00
Linux Build Service Account
4578a0a555 Merge "ARM: dts: msm: fix sd card detection for msmcobalt QRD SKUK board" 2016-10-27 15:49:25 -07:00
Linux Build Service Account
dbcf7687b3 Merge "ASoC: msm: Enable Media Format converter for all resampling usecases" 2016-10-27 15:49:24 -07:00
Linux Build Service Account
dceddf2339 Merge "msm: mdss: Fix memleak in framebuffer register and remove" 2016-10-27 15:49:22 -07:00
Linux Build Service Account
d4d8e11cce Merge "msm: mdss: Correct settings when on/off happens in dest-scaler" 2016-10-27 15:49:21 -07:00
Linux Build Service Account
57054d8cd6 Merge "msm: mdss: Avoid adaptive variable refresh during dynaminc FPS" 2016-10-27 15:49:20 -07:00
Linux Build Service Account
8493ec68b0 Merge "msm: mdss: dp: remove programming of maud/naud for audio" 2016-10-27 15:49:19 -07:00
Linux Build Service Account
c2e7ee2c2a Merge "ARM: dts: msm: enable esd for jdi qhd cmd mode panel in msmcobalt" 2016-10-27 15:49:18 -07:00
Linux Build Service Account
a04b622efd Merge "qcom-charger: set optimal buck switching frequency" 2016-10-27 15:49:17 -07:00
Linux Build Service Account
66f8ffa044 Merge "ARM: dts: msm: add SLPI fw name property for msmcobalt" 2016-10-27 15:49:16 -07:00
Linux Build Service Account
8779c92e1a Merge "sensors: ssc: add support to read SLPI fw name" 2016-10-27 15:49:15 -07:00
Linux Build Service Account
e155d614ea Merge "msm: ipa: Fix the memory leak in error cases" 2016-10-27 15:49:14 -07:00
Linux Build Service Account
42d02f4156 Merge "qseecom: check buffer size when loading firmware images" 2016-10-27 15:49:13 -07:00
Linux Build Service Account
e223d02cbb Merge "leds: qpnp-flash-v2: fix safety timer configuration" 2016-10-27 15:49:12 -07:00
Linux Build Service Account
a7981f61bc Merge "msm: ipa: fix ioctl input param validation" 2016-10-27 15:49:11 -07:00
Linux Build Service Account
6600841f13 Merge "defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmfalcon" 2016-10-27 15:49:10 -07:00
Linux Build Service Account
7f8343eaa4 Merge "defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmcortex" 2016-10-27 15:49:09 -07:00
Linux Build Service Account
97d4de6ccb Merge "ASoC: msmcobalt: Fix MCLK routing on msmcobalt for WCD9340" 2016-10-27 15:49:08 -07:00
Linux Build Service Account
201f4347e2 Merge "ARM: dts: msm: Add dmic clock rate on ECPP path for msmcobalt" 2016-10-27 15:49:07 -07:00
Linux Build Service Account
10fb467dd6 Merge "soc: qcom: add support for fingerprint sensor driver" 2016-10-27 15:49:06 -07:00
Linux Build Service Account
c60241fc75 Merge "ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online" 2016-10-27 15:49:05 -07:00
Linux Build Service Account
59ba1d179c Merge "ASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence" 2016-10-27 15:49:04 -07:00
Linux Build Service Account
5df4ae6428 Merge "USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode" 2016-10-27 15:49:04 -07:00
Linux Build Service Account
094d9bc859 Merge "clk: qcom: Change clock index for mmssnoc_axi clock for MSMfalcon" 2016-10-27 15:49:03 -07:00
Linux Build Service Account
df255661d4 Merge "msm: sde: Fix SDE rotator clock disable sequence" 2016-10-27 15:49:02 -07:00
Linux Build Service Account
a893d7854b Merge "input: misc: hbtp_input: Add support for multiple AFE" 2016-10-27 15:49:01 -07:00
Linux Build Service Account
206ef38970 Merge "msm: mdss: edid: fix dtd parsing" 2016-10-27 15:49:00 -07:00
Linux Build Service Account
35021f91c8 Merge "clk: msm: clock: Remove controlling some graphics clocks in Linux" 2016-10-27 15:49:00 -07:00
Linux Build Service Account
2a676929f1 Merge "sched: Fix compilation issue with reset_hmp_stats" 2016-10-27 15:48:59 -07:00
Linux Build Service Account
77a8b4c9a8 Merge "ASoC: wcd934x: Trigger codec DSP subsystem restart" 2016-10-27 15:48:57 -07:00
Linux Build Service Account
3ff6b4cb95 Merge "usb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable" 2016-10-27 15:48:56 -07:00