msm: smd: Add Interrupt ID to SMD DebugFS Interrupt Stats

Add support to display SMD,SMSM interrupt IDs
of each subsystem to interrupts stats debugfs entry

Change-Id: I1e8e045735a50da87f56d77785819f6e3ca1d460
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: smd_pkt: Allow multiple users of an SMD_PKT device

Add the usage reference count for every SMD_PKT device. Update the
sequence of operations in device open & close calls. This will enable
multiple user-space users of a SMD_PKT device.

Change-Id: Ic11d0c2e6908f1d82f7aef6a99a0239a92358814
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
msm: smd_pkt: Enable IPC logging in SMD_PKT driver

Log SMD_PKT driver events to an IPC logger. This will allow
debugging the SMD_PKT driver without incurring the kernel logging
overhead.

Change-Id: Ida34d6f466b347ee2e030a88f32d0b9ec23c0b98
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
msm: smd_pkt: Add new SMD channels for iWLAN

Add 9 new SMD control channels to support iWLAN feature.

Change-Id: I8a1d46275cecb0344d31014976703f56f3893093
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: bam_dmux: Add new logical channels for iWLAN feature

Add support to 9 new logical channels and
add 3 reserved entries for logical channels from 9 to 11.

Change-Id: I2209404af7fe333b92bb7dd8d87ba184052c3525
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: rmnet: Add new rmnet ports for iWLAN feature

Add 9 new rmnet ports to support iWLAN feature.

Change-Id: I4e14545c05fda46fc49d01bc644b2171b25327c1
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
msm: bam_bmux: Add in_global_reset check while rescheduling queue_rx

In modem SSR case rescheduling of queue_rx_work for every 100ms
causing system to overload by rescheduling unnecessary work and
overflow kernel meesages with rescheduling logs.
Hence block the rescheduling of queue_rx_info
by adding in_global_reset flag check during modem SSR.

CRs-Fixed: 422096
Change-Id: I14bc8d82e44231a86b58faa0158740565177653d
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
camera: Use fps divider to calculate the framelength lines.

Use the fps divider in calculation of sensor frame length
lines, so that the current fps requested is into effect.

Change-Id: I38ea5775e98e030b8be2e6895ac1a709a81cec92
CRs-fixed: 434293
Signed-off-by: Kalyani Oruganti <kalyanio@codeaurora.org>
Merge "msm: kgsl: Process all idle checks"
Merge "msm_fb: display: add satge commit without pipes queued"
Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp4_overlay_lcdc.c
Merge "msm: vidc: Add the change to prevent memory leak"
msm: wfd: Add NULL pointer check conditions

This commit adds NULL pointer checks before
dereferencing the pointer.

CRs-fixed: 440838
Change-Id: Ia51d98c503575fb7e776d087e65448d1db587700
Signed-off-by: Shobhit Pandey <cshopan@codeaurora.org>

Conflicts:
	drivers/media/video/msm_wfd/enc-subdev.c
USB: ci13xxx_udc: Don't flush and disable all endpoints during disconnect

Flushing and disabling all endpoints during disconnect in controller
driver is simply wasteful and unnecessary.  Flushing endpoints before
notifying disconnect to composite driver will have side effects too.
The active endpoints will be disabled by function drivers when they
notified about disconnect.

The current code use 100 msec timeout for flush operation.  If controller
driver flush and disable all endpoints, the worst case timeout will be
added up to several seconds.  This is leading to watch dog timeout.

CRs-Fixed: 431623
Change-Id: If6a2e87006cda367c2eb4def616e9672e13eadf5
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Merge "USB: mdm_bridge: Fix a possible freed memory access"
Conflicts:
	drivers/usb/misc/mdm_data_bridge.c
input: mpu3050: add enable/disable sysfs attribute

allow sensor HAL control the power state of gyro sensor, so that sensor is
disabled when not used.

Change-Id: Ib9f8e9761ea518534ffcd06f30de4b8f1f198687
Signed-off-by: Orkhan Karimov <okarimov@codeaurora.org>
msm_fb: display: add mdp new update method

Enable new mdp update method which requires flush bit
to be set before updating mixer cfg register for both
smart and dump panel

Change-Id: I97b9d221da574a96707748ec83dd1acff6dcb654
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:
	drivers/video/msm/mdp4_util.c
usb: ehci-msm2: Fix controller autosuspend

When the EHCI controller is removed using platform_device_del(),
the PM disable_depth counter is decremented once by the driver
core. Thus the driver's remove callback additionally calling
pm_runtime_disable() is leading to an unbalanced counter since
pm_runtime_enable() call happens only once when platform_device_add()
calls the probe callback. Fix this by removing the extraneous
pm_runtime_disable().

Change-Id: Ie76256ac50ba65022814285bf57feca109f79d6b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
usb: ehci-msm2: Fix unbalanced clock warning

The EHCI controller may be in suspend state in which its clocks
are already disabled. Fix warning given by clock subsystem when
disabling the clocks a second time when the controller's platform
device is removed by first checking if the device is suspended.

Change-Id: I3c491d0db11cc172d0e6779042c04fc726936b36
Signed-off-by: Jack Pham <jackp@codeaurora.org>
msm_fb: display: turn mdp clock on at pipe_commit

mdp clock is controlled by frame work. There has
possibility that mdp clock had been turned off while
frame update still happen. In this case update
thread may stuck at wait4vsync since there has no
mdp clcok to trigger vsync interrupt. This patch
will enable mdp clock at pipe commit when mdp clock
is tunred off so that frame update can be completed.

Change-Id: I2d31b9a4b6f0cb9dd36516a80931988e23e8a545
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_cmd.c
msm: kgsl: Don't wake up gpu on kgsl_ioctl calls if not necessary

This is Iee3db5401bdad1808a09d104e0daecfc3716cbb4 change ported
manually from the msm-3.4/msm-3.7 branch to the jb_2.5 branch.

The current code wakes up gpu on all kgsl_ioctl() calls that need
to hold device->mutex. However there are some kgsl_ioctl() calls that
don't need that. That fix introduces a bit of info to mark such
functions, and don't wake up gpu calling them to save some power.

Change-Id: I86224d2405c42e3803c7e361c02fe1d02d4cdff1
CRs-Fixed: 438932
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>

Conflicts:
	drivers/gpu/msm/adreno.c