Change will delay mapping of buffers until bus bandwidth is
requested by video driver
Change-Id: Ibb6867baf6b3e821ec3ceafcdcab1e9225a5b109
Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
Check the service availability event to indicate the signal strength
of the tuned station.
Change-Id: I7d1c1f3de13351222cfdc27bc2d80dd08aadfdf2
CRs-Fixed: 331137
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Add PMIC VBUS notification support for peripheral only mode and
allow PHY retention and power collapse. This patch also makes
changes to probe function to request PMIC ID IRQ in only OTG mode.
CRs-fixed: 330349
Change-Id: I4a5a6c50b0a3b56dcf78aea5b23499a264b3c9d5
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
The video driver should enable iommu clocks for vcodec, mdp and
rotator for content protection playback. Expose clocks to video
driver to enable for secure playback.
Change-Id: I2037cf5825d0b9cc7f37cf7fe56396163cb1db24
Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
Printing to debugfs is done from a centralized location for
all the heaps managed by ion. This architecture is not
sustainable in the long run since different heaps have different
requirements for what should be printed.
Refactor the debugfs printing for ion so that each heap is
responsible for printing its information.
Change-Id: I1dbe13432a4ab07f27ea4756c3be7fa01ad1df92
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Add error message when allocation from ion fails.
Change-Id: If2efa95c563c9f076b85958a70ea66afa3983325
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
The ion client name used for debugging were being
allocated on the stack for user space clients. This
causes the name to be garbled when later printed.
Instead, allocate the name from the heap.
Change-Id: Id299d224192f127197bef2eeb22d881b3a31795c
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Add decrement of mapping count when mapping fails
and corresponding SMI release region call.
Change-Id: I81fb7eeee9973c770a65f02236c5358ce313e3a0
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Remove duplicate logging message for failure to create
a heap. Add logging message with name, base address, and
size of each heap created.
Change-Id: Id3a3706d914ffa72b0ecd84eb98785a678ceda9a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
The SCM call message size used to protect and
unprotect memory is incorrect. The interface expects
13 bytes but 16 bytes is sent due to padding of the
message struct.
Pack the message structure to force the size of the
structure to 13 bytes.
Change-Id: Iecb7b40aa7e94454620c19cd70c3106392d2d311
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
ION has to guarantee that two of the heaps are
adjacent to each other. This is due to a limitation
in the hardware. Add code to ensure these heaps
are adjacent.
Change-Id: Icc18437a50e1d872112468d02b61ab47fd70acc9
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Embedded rmnet driver is setting skb protocol to ethernet link layer
protocol, which causes the IP stack to drop the packets if it is set
to raw IP link layer protocol mode. Hence set the SKB protocol based
on the RMNET link layer protocol mode.
Change-Id: Ife1243feec54a50c00ec833b6ed72f59bf883b94
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
During the probe for writeback panel, for MDP hardware versions
earlier than 4.3 an incorrect goto call un registers the bus scale handle
that primary panel uses. This is causing the boot failures because the
primary panel turn on sequence triggers the bus scale update request on
already unregistered handle.
Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61
Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org>
With the revert of "of/irq: of_irq_find_parent: check for parent equal to
child" (dc9372808412edb), we need another way to handle parent node equal
to the child node. This can simply be handled in of_irq_init by checking
for this condition.
Change-Id: Iab2aff3db1e3eb61982102053806c44aceb5008b
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
of_irq_init will scan the devicetree for matching interrupt controller
nodes. Then it calls an initialization function for each found controller
in the proper order with parent nodes initialized before child nodes.
Based on initial pseudo code from Grant Likely.
Changes in v4:
- Drop unnecessary empty list check
- Be more verbose on errors
- Simplify "if (!desc) WARN_ON(1)" to "if (WARN_ON(!desc))"
Changes in v3:
- add missing kfree's found by Jamie
- Implement Grant's comments to simplify the init loop
- fix function comments
Changes in v2:
- Complete re-write of list searching code from Grant Likely
Change-Id: I5ff76c3aa0f7bdf66577970dd9506336cd5712dd
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Clear driver_data after disabling endpoints
to prevent shortage of endpoints and failures
on their reallocation.
Change-Id: I2dc74799d440b2e1d5e53fc0f89decbce494d6ec
Signed-off-by: Anna Perel <aperel@codeaurora.org>
Clear control queue everytime before entering wait in msm_control as
there might be invalid payloads in the queue and this can lead to
not waiting at all and exit before the valid command completes.
Change-Id: I34991968cb6bb9c2978bcea4d8ce641894cc2453
Signed-off-by: Manogna Reddy Alle <cmalle@codeaurora.org>
MSM_SLEEP_STATS_DEVICE option is used to compile idle stats device
framework which is needed for GPU DCVS feature.
Change-Id: I9550c90054587aa4fcec40131761eeaf54da8a03
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
MDP underrun happens if combination of x + w or y + h exceeds 2048.
To handle such use cases add an offset to the source address instead.
Change-Id: I36a8b687c4e21cac9915b5bf71211c97f6b44ddd
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Perform pending backlight requests on overlay play to handle cases in
which framebuffer updates are not happening to update backlight.
Change-Id: I97a39c8fc9405f308ed684041b171bccc917154d
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Enable charger and bms devices to make sure they are probed
on 8930.
Change-Id: I4917de40a672628bab868260b280cfb580668e4e
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
ION handle check was not correct for error case,
added the proper check for ION handle to handle
the error cases properly.
Change-Id: I6bf3ce32d5b77d4f2c606fda1c511967156d62c0
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
Endianness change is no longer required for 1080p
firmware starting with Nov 30th 2011 firmware version.
Change-Id: I309d63b7efb544f80b44c6fc13955f186ece934b
Signed-off-by: Deepika Pepakayala <deepikap@codeaurora.org>
The commit 40d3e0f (clk: provide prepare/unprepare functions) provides
the config option HAVE_CLK_PREPARE for platforms that have
prepare/unprepare implementation to select. This patch adds the option
into drivers/clk/Kconfig, so that it can be actually selected.
Change-Id: I6d448486d26792bcd87a28a3ead25c063af40731
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
[sboyd@codeaurora.org: Remove CLKDEV config that isn't in 3.0]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>