summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2017-07-11Merge "mmc: core: Select HS mode in device first and then in the host"Linux Build Service Account
2017-07-11Merge "power: reset: msm: Restore disabling SDI during reset"Linux Build Service Account
2017-07-10Merge "cnss2: Bypass SMMU stage-1 by default"Linux Build Service Account
2017-07-10mmc: core: Select HS mode in device first and then in the hostSayali Lokhande
While switching from hs400 to hs200 mode, high speed mode timing should be selected in the device before changing the clock frequency in the host. But current implementation, (mmc_hs400_to_hs200) first updates the frequency in the host and then updates mode in the device. This is a spec violation. Hence update the sequence to comply with the spec. Change-Id: I0694edac9dd005ec68add9cc38bbe6fa4245ed48 Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-07-10Merge "i2c-msm-v2: Avoid accessing unassigned memory"Linux Build Service Account
2017-07-09i2c-msm-v2: Avoid accessing unassigned memoryShrey Vijay
Memory translation fault occurs when incorrect memory is accessed. To avoid translation fault, do not access message memory which is not initialized. Change-Id: Id5e89350a4bc51021964ee63286ea69040f1b32a Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2017-07-10power: reset: msm: Restore disabling SDI during resetNeeraj Upadhyay
This reverts commit b67bb93f565e ("power: reset: Do not disable SDI during reset"), to restore the original behavior of disabling SDI during reset. Change-Id: I6ad0472dc5d766ffea2a942fc226fb742fe44242 Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-07-09drm/msm: add input validation before setting HDR infoframeAbhinav Kumar
Move the input validation for the connector's HDR support before calling the API to set the infoframe rather than within the API itself. This helps to avoid redundant checks and logging. Change-Id: If21562920edb1613a73b5e18ab258a57e46c1d7b Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-07-07Merge "icnss: Use fixed memory region for WLAN MSA0 memory"Linux Build Service Account
2017-07-07Merge "msm: mdss: information leak during buffer copy from userspace"Linux Build Service Account
2017-07-07Merge "msm: mdss: Increase fbmem buf ref count before use"Linux Build Service Account
2017-07-07Merge "mdss: dp: avoid notifying DP connect during AUX timeout cases"Linux Build Service Account
2017-07-07Merge "msm: mdss: Put smmu interface errors under pr_err"Linux Build Service Account
2017-07-07Merge "msm: mdss: Fix possible integer overflow"Linux Build Service Account
2017-07-07Merge "soc: qcom: ipc_router_mhi_xprt: Do not defer MHI open and close work"Linux Build Service Account
2017-07-07cnss2: Bypass SMMU stage-1 by defaultYue Ma
Bypass SMMU stage-1 till it is fully supported by WLAN driver and device. Change-Id: I186345c20f9b71171bba6acc8c5eaa689e39b51c CRs-fixed: 2071634 Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-07cnss2: Fix issues when migrating to msm-4.4 kernelYue Ma
Fix the issues during migrating CNSS2 platform driver to msm-4.4 kernel. Change-Id: Ifcef708fa9394ad54c92a26a397ec60631e74ef2 CRs-fixed: 2071634 Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-07net: cnss2: Add snapshot of CNSS2 driverYue Ma
This is a snapshot of the CNSS2 driver and associated files as of msm-3.18 commit c1bbe6d5e136 ("cnss2: Fix kernel checkpatch issues"). Change-Id: Ia77d3abe3f86e4dbeac8d55ea2e0120bed480126 CRs-fixed: 2071634 Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-07Merge "icnss: Show rejuvenation info in ICNSS stats report"Linux Build Service Account
2017-07-07Merge "pwm: pwm-qpnp: Ignore changing period setting if it's not requested"Linux Build Service Account
2017-07-07Merge "msm: sensor: Fix to validate the settings size in flash"Linux Build Service Account
2017-07-07Merge "msm: camera: Unlock rwlock before returning."Linux Build Service Account
2017-07-07Merge "diag: Add proper checks to fix possible out-of-bound issue"Linux Build Service Account
2017-07-07icnss: Use fixed memory region for WLAN MSA0 memoryHardik Kantilal Patel
During first time boot up WLAN Platform driver allocate 1 MB MSA0 Memory region. This region may be adjacent to other regions that also requires access control, due to that TZ will merge the two sections into one single resource group. During this Q6 will lose access to memory region causing a NOC Error. To avoid use fixed memory region for WLAN MSA0 memory. CRs-Fixed: 2066025 Change-Id: Ie878e010954524bbe48a29d6ad6f2f53848ab25e Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2017-07-07msm: sensor: Fix to validate the settings size in flashSamyukta Mogily
The size of the settings copied from userspace, is directly checked in msm_cci_data_queue with CCI_I2C_MAX_WRITE. This might cause out of bound access in function msm_cci_data_queue as the max size is MAX_I2C_REG_SET. Hence adding check on the size in flash driver itself. Change-Id: Ifac358be9f4b4ff60d14c20e02886c2d044e7f52 Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
2017-07-07msm: camera: Unlock rwlock before returning.Trishansh Bhardwaj
put_buf and buf_done are not unlocking rwlock in error case. Change-Id: Ie10afa15f332cf7bd38be69ea8b99b163b125e66 Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2017-07-07pwm: pwm-qpnp: Ignore changing period setting if it's not requestedFenglin Wu
It's not necessary to reprogram PWM period setting if only changing PWM duty cycle. Change-Id: I366e17a5e2f18c09ab0850d00ec08a35e0f1cb9f Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2017-07-06Merge "regulator: core: fix a possible race in disable_work handling"Linux Build Service Account
2017-07-06Merge "cnss_utils: Zero out cnss_utils priv structure during initalization"Linux Build Service Account
2017-07-06Merge "spcom: avoid race condition when handling commands"Linux Build Service Account
2017-07-06Merge "msm: ADSPRPC: Avoid multiple hypervisor assign calls for a buffer"Linux Build Service Account
2017-07-06Merge "iio: rradc: Update thermistor scaling"Linux Build Service Account
2017-07-06Merge "mmc: core: Use PF_MEMALLOC flag for clock scaling context"Linux Build Service Account
2017-07-06Merge "msm: kgsl: Fix a dead loop issue while changing gpu frequency"Linux Build Service Account
2017-07-06Merge "msm: kgsl: Make sure regulators are ON before GPU clocks are forced on"Linux Build Service Account
2017-07-06icnss: Show rejuvenation info in ICNSS stats reportYuanyuan Liu
This is a debug enhance feature. It shows rejuvenation info in ICNSS stats report, which makes it easier to track the reason for every rejuvenation. CRs-Fixed: 2072253 Change-Id: I6d133b4b182943ed745d7587bd1ec23858c29750 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-07-06regulator: core: fix a possible race in disable_work handlingTirupathi Reddy
A race condition between queueing and processing the disable_work instances results in having a work instance in the queue and the deferred_disables variable of regulator device structure having a value '0'. If no new regulator_disable_deferred() call later from clients, the deferred_disables variable value remains '0' and hits BUG() in regulator_disable_work() when the queued instance scheduled for processing the work. The race occurs as below: Core-0 Core-1 ..... /* deferred_disables = 2 */ ..... ..... /* disable_work is queued */ ..... ..... ..... regulator_disable_deferred: regulator_disable_work: mutex_lock(&rdev->mutex); ..... rdev->deferred_disables++; mutex_lock(&rdev->mutex); mutex_unlock(&rdev->mutex); ..... queue_delayed_work(...) count =rdev->deferred_disables; ..... rdev->deferred_disables = 0; ..... ..... ..... mutex_unlock(&rdev->mutex); ..... ..... ..... return; ..... ..... /* No new regulator_disable_deferred() calls from clients */ /* The newly queued instance is scheduled for processing */ ..... ..... regulator_disable_work: ..... mutex_lock(&rdev->mutex); BUG_ON(!rdev->deferred_disables); /* deferred_disables = 0 */ The race is fixed by removing the work instance that is queued while processing the previous queued instance. Cancel the newly queued instance from disable_work() handler just after reset the deferred_disables variable to value '0'. Also move the work queueing step before mutex_unlock in regulator_disable_deferred(). Also use mod_delayed_work() in the pace of queue_delayed_work() as queue_delayed_work() always uses the delay requested in the first call when multiple consumers call regulator_disable_deferred() close in time and does not guarantee the semantics of regulator_disable_deferred(). CRs-Fixed: 2064610 Change-Id: Iacaddc5e2f5c9998c4d038bdc10c4587cbf4812e Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-07-06cnss_utils: Zero out cnss_utils priv structure during initalizationYuanyuan Liu
Zero out cnss_utils priv structure during initalization to make sure it starts cleanly. CRs-Fixed: 2072421 Change-Id: I72caa5fb7e1df16b018165d277cd3a404b81c304 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-07-06Merge "crypto: Change format specifier %p to %pK"Linux Build Service Account
2017-07-06Merge "msm: ipa: Fix the problem with nested sleeping primitives"Linux Build Service Account
2017-07-06Merge "msm: camera: isp: fixes incorrect RDI empty frame handling"Linux Build Service Account
2017-07-06spcom: avoid race condition when handling commandsAmir Samuelov
The spcom allows only one owner per channel, so only one app can open() a channel char device at a time. However, the channel owner process might share the channel file descriptor (fd) with other threads, that might write() concurrently a command to spcom, that can cause a race. Add a mutex to "serialize" handling of the commands. Change-Id: Ief9c6c48a862444dfff66d14d2317568cd6e81e6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-07-06msm: ADSPRPC: Avoid multiple hypervisor assign calls for a bufferSathish Ambley
Access to dma shared buffer is set at device probe, avoid making multiple hypervisor assign calls for the same buffer. Change-Id: I91f7dd0bca109fa774af49159bdec57b8acd65b2 Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org> Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
2017-07-06Merge "drm/msm: add default value for plane enum property"Linux Build Service Account
2017-07-06Merge "regulator: core: remove some dead code"Linux Build Service Account
2017-07-05Merge "drm/msm: Add timestamp counter"Linux Build Service Account
2017-07-05Merge "msm: kgsl: Add A5XX RBBM registers to pre-crash dumper list"Linux Build Service Account
2017-07-05Merge "msm: kgsl: Add a NULL check for limit pointer"Linux Build Service Account
2017-07-05Merge "compat_qcedev: Fix accessing userspace memory in kernel space"Linux Build Service Account
2017-07-05Merge "diag: Add protection while processing non-hdlc packets"Linux Build Service Account