Commit graph

586915 commits

Author SHA1 Message Date
Linux Build Service Account
a2440d7fa4 Merge "mhi: core: add support for subsystem restart and shutdown" 2017-04-04 03:08:07 -07:00
Linux Build Service Account
123020a779 Merge "usb: dwc3: Use high priority worker as bottom half handler" 2017-04-04 03:08:04 -07:00
Linux Build Service Account
cd2915d470 Merge "ath10k: add qmi service for snoc wlan enable and disable" 2017-04-04 03:08:02 -07:00
Linux Build Service Account
d8d96f71f3 Merge "soc: qcom: service-locator: Return in case of no matching domains found" 2017-04-04 03:08:01 -07:00
Linux Build Service Account
90a7e429e6 Merge "clk: msm: clock-gcc-8998: Update parent src for qup_spi/uart_apps clocks" 2017-04-04 03:08:01 -07:00
Linux Build Service Account
7d517eef8f Merge "CHROMIUM: usb: gadget: configfs: Fix KASAN use-after-free" 2017-04-04 03:08:00 -07:00
Jan Kara
70c8d6d632 block: Make del_gendisk() safer for disks without queues
commit 165a5e22fafb "block: Move bdi_unregister() to del_gendisk()"
added disk->queue dereference to del_gendisk(). Although del_gendisk()
is not supposed to be called without disk->queue valid and
blk_unregister_queue() warns in that case, this change will make it oops
instead. Return to the old more robust behavior of just warning when
del_gendisk() gets called for gendisk with disk->queue being NULL.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Tested-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Git-commit: 90f16fddcc2802726142b8386c65ccb89f044613
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
Change-Id: I5ae377b2ace64d7a133979e656beb0eba45abc09
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-04-04 14:12:56 +05:30
Deepak Kumar
c1de946ab2 msm: kgsl: Disable memory retention for core clock before entering SLUMBER
Memory retention is needed only for NAP state but not for SLUMBER state.
Disables memory retention for core clock before entering SLUMBER to save
power.

Change-Id: I64a5ecec6fc90d662da8d9d793860e56b0c6473f
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-04-04 14:09:52 +05:30
Sayali Lokhande
f7c5a2bbb2 mmc: core: Remove unused variable cached_ext_csd
There is one variable defined in mmc_card, which
is not being used anywhere. Also it is wrongly
being freed from mmc_remove_card and causing
"double kfree" related issues.
To handle this, remove unused cached_ext_csd variable.

Change-Id: I75f376ec787a46a2a16c38f88f444bd8ff9c86c4
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-04-04 14:08:50 +05:30
Ashay Jaiswal
7174c1763f qcom: smb-lib: disable VCONN operations for micro USB mode
VCONN is not supported in micro USB mode, thus disable
registration and operations on VCONN regulator.

While at it, disable TRY.SOURCE while disabling typeC.

CRs-Fixed: 2027962
Change-Id: Ib92564160c48f52d77815b646b4cdd5c7d23e7b3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-04-04 10:58:52 +05:30
Sabyasachi Singh
393a3e68a6 drivers/base: cpu: Add node for core control isolation
This cpu node can be used to check the isolated cores
which are made unavailable for scheduler and exempted
from waking up on interrupts or from running timers at
the given time based on the load. All the runnable tasks,
timers and hrtimers should have migrated to other online
running cores.

Change-Id: I32fed6cc131288b9c318f0dea65e2e59396225ca
Signed-off-by: Sabyasachi Singh <sssingh@codeaurora.org>
2017-04-03 16:17:39 -07:00
Skylar Chang
ad7c98a12f msm: ipa: continue probe on ipc log failure
Do not fail IPA probe function if IPC logging is not available.

Change-Id: I1ac1765e1df8cb1ea5f19a7ec639b307d867a28a
CRs-Fixed: 2028149
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-04-03 16:07:22 -07:00
Prasad Sodagudi
cba41ec800 defconfig: msm: Enable CONFIG_UID_CPUTIME flag
Enable flag CONFIG_UID_CPUTIME to have uid_cputime stats.

Change-Id: Iee6ed05b4cb4443ec1fc347b186153c416d3f136
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-04-03 15:58:11 -07:00
Abhijeet Dharmapurikar
cdd3e6733f smb138x: support usbin-usbin with external rsense
Currently smb138x only support usbin-usbin parallel architecture
where the battery current from the parallel charger flows through
the batfet of the main charger.

Support configurations where there is remote sensing or an external
rsense where the current from parallel charger directly goes to the
battery.

Change-Id: I5506190d83436bfaea3b6c98b1b311746cf85071
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-04-03 15:31:22 -07:00
Subbaraman Narayanamurthy
afe2750ef3 leds: qpnp-flash-v2: Fix pinctrl configuration
Currently pinctrl is obtained after it is used to obtain
strobe_enable and strobe_disable states. This is incorrect and
needs to be fixed. Also, when the switch device is disabled, the
pinctrl configuration for GPIO that drives the LED output is
selected only when the brightness or current is set to a non-zero
value in flash device.

To keep it simple, move the pinctrl configuration for GPIO that
drives the LED output (e.g. flash LED3) to the switch device so
that both flash and torch device need not have to control it.

Also, fix the pinctrl configuration for GPIOs that are used to
drive flash LED3 output on both 8998 and 660 for functional
correctness.

Change-Id: If6ec27dd39fd750b6d4311a5e370020961f30e08
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-04-03 13:06:30 -07:00
Subbaraman Narayanamurthy
c3cd64df0a leds: qpnp-flash-v2: Fix some issues
An out of bounds access is attempted to calculate code for
iclamp_low_ma and iclamp_mid_ma for LED3. Use the right index in
flash_node pointer to fix it.

When an error is found during probe especially before registering
a flash LED class device, unregistering flash LED class devices
is made on a flash LED class device that is not registered yet.
Fix it.

Change-Id: I2f6650eb24ecbece473abfe18a9a2e26c62c1253
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-04-03 13:06:25 -07:00
Subhash Jadavani
df018af640 ARM: dts: msm: enable SDR104 workaround for MSM8998
On MSM8998, SDR104 mode might be unstable causing CRC error on
the interface. So we need a workaround which would skip printing register
dumps on CRC errors and also downgrade bus speed mode to SDR50/DDR50 in
case of continuos CRC errors. This patch enables "qcom,sdr104-wa" property
to enable this workaround.

Change-Id: Ib2dbf974d1312c00ca22a114f0b9e8130624090c
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-03 10:48:39 -07:00
Subhash Jadavani
00b15340ab mmc: sdhci: skip printing register dumps on CRC errors
On Certain chipsets, SDR104 mode might be unstable causing CRC error on
the interface. So we need a workaround to skip printing register
dumps on CRC errors to reduce the recovery time.

Change-Id: I73986d89a080a842e01cdf88ad8d3b953755e993
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-03 10:44:48 -07:00
Asutosh Das
0cbf1d2db7 mmc: sd: reduce the bus speed in case of multiple CRC errors in SDR104
UHS-I SD cards support SDR104 mode which runs the SD card interface
clock upto 208 MHz. But we may see repeated CRC errors in SDR104
with some SDCC controllers. If this happens, this change would
reinit the card to lower speed (SDR50) hoping that CRC error
rate would reduce at lower clock speed (100MHz for SDR50).

Change-Id: I140d29fdf500bb89881a0f2c1f768fe0c5afa9d5
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-03 10:43:14 -07:00
Subhash Jadavani
a4b36d773b mmc: sdhci-msm: add SDR104 CRC workaround enablement control
On Certain chipsets, SDR104 mode might be unstable causing CRC error on
the interface. So we need a workaround which would skip printing register
dumps on CRC errors and also downgrade bus speed mode to SDR50/DDR50 in
case of continuous CRC errors. This patch adds "qcom,sdr104-wa" property
to enable this workaround if required.

Change-Id: I626d8ef45a97e8e6558e7f20be496de1f5a2a438
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-03 10:42:30 -07:00
Subhash Jadavani
0820ed5524 mmc: core: prefer SDR50 mode over DDR50 for SD card
If Ultra High Speed SD card supports both SDR50 and DDR50 modes then
this change will give preference to SDR50 over DDR50 mode as it seems
to be more reliable for board designs. While we are doing this, this
change also fixes some indentation issues in the function we are have
modified.

Change-Id: Ifa075563ec41f43584d93f669caecbaed9369e24
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-03 10:40:41 -07:00
Skylar Chang
3eb3181bd7 msm: gsi: continue probe on ipc log failure
Do not fail GSI probe function if IPC logging is not available.

Change-Id: Icdccb9a8db637fc9c4fcff5f459831739c675173
CRs-Fixed: 2028149
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-04-03 10:38:53 -07:00
Subhash Jadavani
d0960c5f30 scsi: ufs: scale up the gear in 2 steps
Some UFS devices may stop responding after switching from HS-G1 to HS-G3.
Also, it is found that these devices work fine if we do 2 steps switch:
HS-G1 to HS-G2 followed by HS-G2 to HS-G3.
This change introduce UFS_DEVICE_QUIRK_HS_G1_TO_HS_G3_SWITCH quirk for
these devices to apply this 2 steps gear switch workaround.

Change-Id: I38eec2e1bfa842169cbfec441d900a807e715f8c
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-03 10:30:43 -07:00
Linux Build Service Account
9af69213de Merge "block: Move bdi_unregister() to del_gendisk()" 2017-04-03 06:24:50 -07:00
Linux Build Service Account
bb6316a190 Merge "icnss: Send FW CRASHED uevent only if driver is probed" 2017-04-03 06:24:48 -07:00
Linux Build Service Account
3e6592af2d Merge "msm_11ad: copy FW crash dump before starting SSR flow" 2017-04-03 06:24:47 -07:00
Linux Build Service Account
3b63b7a021 Merge "scsi: ufs: Abort gating if clock on request is pending" 2017-04-03 06:24:46 -07:00
Linux Build Service Account
46b41403c3 Merge "regulator: qpnp-lcdb: Add a WA to toggle SC before module_enable" 2017-04-03 06:24:45 -07:00
Linux Build Service Account
f87be11d38 Merge "Revert "input: synaptics_dsx: remove array declaration in write function"" 2017-04-03 06:24:44 -07:00
Linux Build Service Account
787f4b3b7d Merge "ARM: dts: msm: Update KTM boot mitigation config for msm8996pro" 2017-04-03 06:24:43 -07:00
Linux Build Service Account
606c597c2b Merge "msm: mdss: fix validation checks for qseed3 params" 2017-04-03 06:24:42 -07:00
Linux Build Service Account
8e837415f8 Merge "msm: mdss: configure gpio to enable backlight" 2017-04-03 06:24:42 -07:00
Linux Build Service Account
7cb9e91f79 Merge "msm: mdss: Add support to read BL level for userspace" 2017-04-03 06:24:41 -07:00
Linux Build Service Account
c13fd2afea Merge "input: touchscreen: remove synaptics v2.6 touch driver" 2017-04-03 06:24:40 -07:00
Linux Build Service Account
73379d1786 Merge "icnss: pre-alloc memory leak check on probe failure and remove" 2017-04-03 06:24:39 -07:00
Linux Build Service Account
bfd4560254 Merge "msm: camera: isp: Use single tasklet for dual vfe" 2017-04-03 06:24:38 -07:00
Linux Build Service Account
eeae91e332 Merge "msm: camera: isp: Set the clock rate for camss vfe clock" 2017-04-03 06:24:37 -07:00
Linux Build Service Account
58889c53f5 Merge "msm: isp: fix bug in cfg_camif" 2017-04-03 06:24:36 -07:00
Maya Erez
c96dcaa2f5 wil6210: remove HALP voting in debugfs ioblob
debugfs ioblob function is called by the FW logs scripts
to copy the FW logs via PCIe.
As the FW logs collection is done in parallel to the operational
11AD actions, the HALP voting can take place during 11AD reset flow
and other sensitive scenarios.
To prevent that, remove HALP voting from the ioblob function.

Change-Id: I2d63bf0628f3cc88ba90063534f31b6a27b80d49
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-04-03 13:59:04 +03:00
Sarada Prasanna Garnayak
165003b66c ath10k: add qmi service for snoc wlan enable and disable
To enable WLAN ath10k snoc needs to send the host and target
copy engine info and driver operation mode to WLAN firmware.
The WLAN firmware configure the hardware component according
to the configure request send by ath10k snoc host driver.

Add QMI service to support this WLAN enable and disable
feature for the ath10k snoc WLAN driver.

Change-Id: I2648d90c1adddf72fa3977b6da52ab41b4ebd539
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-03 16:13:13 +05:30
Sarada Prasanna Garnayak
781c40f73c ath10k: register qmi service notifier for ath10k snoc
Add support to configure the bus and wlan copy engine
component. Register event notifier to communicate with
the WLAN firmware over qmi communication interface.

Define data structure and method to process the QMI service
arrive, exit, msa ready and firmware event.

This feature adds support to maintain the SSR state machine
and ath10k core restart handler for the ath10k snoc driver.

Change-Id: I594611a104ef4eef499270996990a278e151101c
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-03 15:22:01 +05:30
Jan Kara
5d9a2c9e5e block: Move bdi_unregister() to del_gendisk()
Commit 6cd18e711d "block: destroy bdi before blockdev is
unregistered." moved bdi unregistration (at that time through
bdi_destroy()) from blk_release_queue() to blk_cleanup_queue() because
it needs to happen before blk_unregister_region() call in del_gendisk()
for MD. SCSI though will free up the device number from sd_remove()
called through a maze of callbacks from device_del() in
__scsi_remove_device() before blk_cleanup_queue() and thus similar races
as described in 6cd18e711d can happen for SCSI as well as reported by
Omar [1].

Moving bdi_unregister() to del_gendisk() works for MD and fixes the
problem for SCSI since del_gendisk() gets called from sd_remove() before
freeing the device number.

This also makes device_add_disk() (calling bdi_register_owner()) more
symmetric with del_gendisk().

[1] http://marc.info/?l=linux-block&m=148554717109098&w=2

Tested-by: Lekshmi Pillai <lekshmicpillai@in.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Tested-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Git-commit: 165a5e22fafb127ecb5914e12e8c32a1f0d3f820
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
Change-Id: I006db1a645adffb79d6b2f46f5ccc94fa21dfd0a
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-04-03 14:47:02 +05:30
Anurag Chouhan
e79dfec9b2 icnss: Send FW CRASHED uevent only if driver is probed
If host driver fails to probed for the first time, and SSR/PDR
get triggered, as part of PD down uevent is sent to host driver
which inturn set recovery in progress which never gets reset
and the next time on FW Ready host driver is not able
to probe successfully
To fix this add a check if driver is probed or not
before sending the uevent.

Change-Id: Idceab059821c0b0e2a8806ad9fee5b6c75aec8c7
CRs-fixed: 2027920
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
2017-04-03 13:17:39 +05:30
Devi Sandeep Endluri V V
465a977133 msmcortex: Enable PPP related defconfigs
Enabled PPP related configs for VPN functionality
to work on msm8998.

CRs-Fixed: 2019475
Change-Id: Ib8d0a98ef4219f2ab33008a4da3e93f22e85f538
Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
2017-04-03 13:16:32 +05:30
Ashish Garg
98d825f520 ARM: dts: msm: add support for sharp wuxga split link panel
Add required panel sequences and timings to support the
sharp wuxga split link panel.

Change-Id: I78c38f25902874a6628e168855f23962cadb8960
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-04-03 00:17:11 -07:00
Anurag Chouhan
c1f5dcc5e8 icnss: Send FW Down indication to WLAN host driver
If FW is down irrespective of crash, a uevent
is sent to wlan host driver to indicate FW is down.

Change-Id: I9fe2a2a11178f72ea27150d74d93a1e411eac030
CRs-fixed: 2027902
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
2017-04-03 12:18:37 +05:30
Sarada Prasanna Garnayak
3915a67448 ath10k: Add support for WCN3990 QMI service
The ath10k snoc driver is a client to WLAN firmware service
started at Q6. Initial control messages to WLAN firmware is
exchanged through QMI interface. This change also adds
the APIs required for WLAN driver to enable and disable
WLAN at firmware.

CRs-Fixed: 2016532
Change-Id: I0572c70db4c693e0d03ed1ad930841a92e60c340
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-02 23:33:32 -07:00
Shantanu Jain
2edf1e036b Revert "input: synaptics_dsx: remove array declaration in write function"
This reverts commit bcde95e2e6 ("input: synaptics_dsx: remove array
declaration in write function").

Change-Id: I49d05213a473d35bd6ab7fb4149f69ec56f18a8b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-04-03 11:14:12 +05:30
Linux Build Service Account
f9aee28de6 Merge "drivers: cpuidle: Minimize round off errors in wake up time" 2017-04-02 22:02:29 -07:00
Asutosh Das
319152bac1 scsi: ufs: Abort gating if clock on request is pending
This change attempts to abort gating of clocks if a
request to turn-on clocks is pending.
This would in turn avoid turning OFF and back ON the
clocks.

CRs-fixed: 2002742
Change-Id: I3d80ed503d4ddb29ac613b11e5e93f84c8362978
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2017-04-03 10:19:59 +05:30