summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-05-22CG2900: changing sleep timersNitin Dhingra
Reducing the sleep timer value from 10 sec to 150ms, to put CG29XX chip to sleep. and after 50ms checking CG29XX has gone to sleep then release the wakelocks for system to go in sleep mode. This will decrease the power consumption greatly. ST-Ericsson Linux next: NA ST-Ericsson ID: 375669 ST-Ericsson FOSS-OUT ID: trivial Change-Id: I48b8b2c3962747743fc8fef5288bcd05921be8f6 Signed-off-by: Nitin Dhingra <nitin.dhingra@stericsson.com> Depends-On: I0618c5f7e507b540907546d10fd217b046484263 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43737 Reviewed-by: Hemant GUPTA <hemant.gupta@stericsson.com> Reviewed-by: QATOOLS
2012-05-22CG2900: Fix timings for CG29XX during breakNitin Dhingra
In Reference to CG29x0 low power mode control document, there are some fixes required in CG2900 protocol driver for break conditions. 1)Pre-break - 900usec - This is the minimal time before Host sending a break after it completes sending data on Tx_Host line. 2)in-break - 5msec - This is the minimal time that Host should maintain the break. 3)post-break - 200usec - This is the minimal time before Host starting sending data on Tx_Host line after it exits break. ST-Ericsson Linux next: Not Tested, ER 410756 ST-Ericsson ID: 410756 ST-Ericsson FOSS-OUT ID: trivial Signed-off-by: Nitin Dhingra <nitin.dhingra@stericsson.com> Change-Id: I0618c5f7e507b540907546d10fd217b046484263 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45521 Reviewed-by: QATOOLS Reviewed-by: Nitin DHINGRA <nitin.dhingra@stericsson.com> Tested-by: Nitin DHINGRA <nitin.dhingra@stericsson.com>
2012-05-22cg2900: Code optimizations for CG2900 init timenitin.dhingra
Some general code optimizations during intialization done. Also we are releasing clock user like WLAN earlier as READ SELF TEST is not required for WLAN functionality. All these optimizations are done to reduce CG2900 init time which will also impact WLAN start-up time. Also ESD Clamp workaround has been removed from the code completely. This is not required anymore. ST-Ericsson Linux next: NA ST-Ericsson ID: 370603 ST-Ericsson FOSS-OUT ID: trivial Change-Id: I7895e21193d20d24ff65a51ff3591108d575399c Signed-off-by: Nitin Dhingra <nitin.dhingra@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/37998 Reviewed-by: QATOOLS
2012-05-22cg2900: Changes for porting on 3.3Philippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-05-22cg2900: [U9500] Correct the GPIO configuration for WLANPhilippe Langlais
There are two parts in this correction. Firstly, as there is much in common between a U9500 platform and a U8500 one, all the tests performed to identify a U9500 platform shall be done before the ones related to U8500. Otherwise, the platform will be considered as a U8500 one and the GPIOs will be badly configured. Secondly, the mapping of WLAN_IRQ has to be changed. On U8500, WLAN_IRQ is mapped onto GPIO04. On U9500, it is GPIO144 that shall be used. ST-Ericsson ID: 368270 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Rejane DURAND <rejane.durand@stericsson.com>
2012-05-22cg2900: Fix for race conditionLukasz Rymanowski
Fix for race condition which leads to double kfree_skb. ST-Ericsson Linux next: 365852 ST-Ericsson ID: 365852 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10019 Change-Id: Ia951a283d9e3774b29a51280b0536838926c99f9 Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34863 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Tested-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Hemant GUPTA <hemant.gupta@stericsson.com> Reviewed-by: SZYMON JANC <szymon.janc@tieto.com> Reviewed-by: Nitin DHINGRA <nitin.dhingra@stericsson.com> Reviewed-by: Ulrik LAUREN <ulrik.lauren@stericsson.com>
2012-05-22cg2900: updates for 3.2Philippe Langlais
Update for headers file (linux/module.h + linux/pm_qos.h) Replace CONFIG_MFD_SUPPORT by HAS_IOMEM + select MFD_CORE Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-05-22staging: Add ST-Ericsson CG2900 driver compilationPhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-05-22cg2900: Add support for 3.25 MbpsLukasz Rymanowski
With this patch it is possible to set baud rate 3.25 Mbps on CG2900 UART. ST-Ericsson ID: 364789 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: Not tested, 364789 Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com> Change-Id: If54af597b949038e9ef4c05d80c9235666e127a4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32689 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Tested-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22cg2900: Fix Memory Leak during Driver Init.Hemant Gupta
This patch fixes memory leak during driver initialization because pmu gpio was never freed in case of failure in snowball initialization. ST-Ericsson ID: 365769 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 365769 Change-Id: Ic6ed3e172ca46ccf0da443272845de984f0f5706 Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33254 Reviewed-by: QABUILD Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22cg2900: Use Dynamic Machine configuration.Hemant Gupta
This patch adds dynamic selection of machine configuration and merges the board and device configuration files. ST-Ericsson ID: 365671 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 365671 Change-Id: I58601115bb8234ab203ac8cd37711563eceb4d17 Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33130 Reviewed-by: QABUILD Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22cg2900: Use PM QoS for CG2900 UARTPar-Gunnar Hjalmdahl
This patch adds usage of PM QoS in the CG2900 UART driver. This is to assure that data throughput is not lowered due to CPU going to sleep too often during data transfer. ST-Ericsson ID: 361013 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 361013 Change-Id: Ib79dee9bd95817d459acd477715d95d7aade06a7 Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33109 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Ulrik LAUREN <ulrik.lauren@stericsson.com> Tested-by: Ulrik LAUREN <ulrik.lauren@stericsson.com> Reviewed-by: Hemant GUPTA <hemant.gupta@stericsson.com>
2012-05-22mfd/cg2900: Error opening HCI Raw ChannelHemant Gupta
This patch fixes the corner case issue in driver, due to which if the port is closed while data is being read, the driver state is not correct next time the port is re-opened. ST-Ericsson Linux next: Not tested, ER356425 ST-Ericsson ID: 356425 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I82090c25ce7dd3aea07bacd96856d62361bcd741 Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32208 Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com> Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22mfd/cg2900: Support HCI Raw Channel.Hemant Gupta
Add support for HCI Raw channel so that CG2900 can be accessed directly from user space. ST-Ericsson Linux next: Not tested, ER351170 ST-Ericsson ID: 351170 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If8a2455be32f0eb99f7c0bc7a5cf0e09270fa6af Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32206 Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com> Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22cg2900: Fix after 3.1 rebasePhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-05-22cg2900: Register CG2900 as clock source for wlanHemant Gupta
This patch registers CG2900 Driver as clock source which can be used by CW1200 Driver for enabling, disabling clock supplied by CG2900. ST-Ericsson Linux next: 361990 ST-Ericsson ID: 361990 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10019 Change-Id: Ia86e439c4dca962a5e911a73a3d0cee7d3289193 Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34067 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22cg2900: Use correct platform_dataPar-Gunnar Hjalmdahl
This patch fixes a bug in the CG2900 driver where platform data structure was overwritten during probe. ST-Ericsson ID: 364913 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 364913 Change-Id: Id6e6918814e01dbef0cd89eda0a034196a81454a Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34065 Tested-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22cg2900: Fix merge problemsRobert Marklund
Remove dual setups so that we only run one Remove unused labels and freeing of gpios Change-Id: Ib8f21dcbec7bd8155a8c10448f515084143fab24 Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34066 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22cg2900: u5500: Make ux500 play nice at build timeRobert Marklund
Make the cg2900 build if we have both soc:s enabled. Change-Id: I302b0772128270f07a2b6ab114d151faa8680dd2 Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-22cg2900: prcmu: fix path to header filePhilippe Langlais
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32448 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22ux500: use updated gpio driverMian Yousaf Kaukab
AB8500 gpio driver is now exporting its gpios directly. Change-Id: Iea4e25f325246a1e690fd3c4fa67ba88157957ab Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32128 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22cg2900: Add KernelDocPhilippe Langlais
This patch adds KernelDoc for the CG2900 driver. ST-Ericsson ID: 364042 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 364042 Change-Id: Idccbf196bcf4a9c5f280e3745ce3e72c499dee80 Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32035 Reviewed-by: Hemant GUPTA <hemant.gupta@stericsson.com>
2012-05-22u9500: cg2900: GPIO conflicts with external modemPhilippe Langlais
This patch content should have gone with the below commit 2057772c5d0b1a18198c91085d9e828cdb23d23b
2012-05-22cg2900: Set WLAN_PMU_EN for startupPar-Gunnar Hjalmdahl
Re apply the patch as some part of the patch content was lost becuase of 42cf5133396cf34d8ec640e4dc8f36f81b028dc3 Change-Id: I99dd076f79f01eb67b3db5020707f9d8f53fb455 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30792 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: bluetooth support for 5500Grzegorz Sygieda
This patch enables cg2900 functionality in 5500 boards. All tests have been made on B5500 (big board BBM R1A) with new CG2900 hardware. NOTE: For proper work new B5500 FPGA firmware is needed (v536). Depends-On: I7820139cc44e347c5b113b1beb665c2489bf74c2 ST-Ericsson Linux next: NA ST-Ericsson ID: 281802 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I3df0bc1e41e60ce6abf4be9cb18465073ba8d738 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30348 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22Revert "cg2900: bluetooth support for 5500"Virupax Sadashivpetimath
This reverts commit 76d004cce0dbb6fddad256790e6ae574278b46e0. Conflicts: arch/arm/mach-ux500/board-u5500.c drivers/staging/cg2900/devices-cg2900-u8500.c drivers/staging/cg2900/devices-cg2900.h Change-Id: Ic480f348be5387d83a3e46280b73dd9bbb3ba43d Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30347 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22u9500: GPIO conflicts with external modemChristophe Guibout
On 8500, GPIO226 is used to set WLAN_PMU_EN for startup. More details in CR 326583. On 9500, GPIO226 is reserved for HSIT_CAWAKE0, and WLAN_PMU_EN is mapped on AB_GPIO11. WLAN_IRQ has been moved from GPIO04 on 8500 to GPIO144 on 9500 because GPIO04 is used for UART1 RX. ST-Ericsson ID: 354110 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ia76f1a5a611a1929c12589a48c3e0774e891880a Signed-off-by: Christophe Guibout <christophe.guibout@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30041 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: Set WLAN_PMU_EN for startupPar-Gunnar Hjalmdahl
This patch changes startup behavior of CG2900 so that WLAN_PMU_EN is controlled separately. ST-Ericsson Linux next: Not tested, ER 326583 ST-Ericsson ID: 326583 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iac4aac30835b93c16ceaaf2aa0e601b293cc0cbb Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23839 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30040 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: Fix checkpatch issuesPar-Gunnar Hjalmdahl
This patch corrects checkpatch issues found during mainlining work of the CG2900 driver to the Linux Kernel. ST-Ericsson Linux next: Not tested, ER 282957 ST-Ericsson ID: 333469 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I62eb48ecdeddcc064279466195df24afdc87abbc Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/19743 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30039 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: Fix for not working BT on hrefp V71Lukasz Rymanowski
GPIO 170 is no longer used by BT. Remove it from cg2900_uart_resources. ST-Ericsson Linux next: Not tested, ER282957 ST-Ericsson ID: 328481 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Icec5ecc284806553bac2bd41bf555b70d1abadb8 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30037 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: bluetooth support for 5500Philippe Langlais
This patch enables cg2900 functionality in 5500 boards. All tests have been made on B5500 (big board BBM R1A) with new CG2900 hardware. NOTE: For proper work new B5500 FPGA firmware is needed (v536). Depends-On: I7820139cc44e347c5b113b1beb665c2489bf74c2 ST-Ericsson Linux next: NA ST-Ericsson ID: 281802 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iebdacf94fd125c7ead843ecee6927d95f8e32738 Signed-off-by: Grzegorz Sygieda <grzegorz.sygieda@tieto.com> Tested-by: Grzegorz Sygieda <grzegorz.sygieda@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22941 Reviewed-by: Grzegorz SYGIEDA <Grzegorz.Sygieda@tieto.com> Tested-by: Grzegorz SYGIEDA <Grzegorz.Sygieda@tieto.com> Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30035 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22Adding a delay to CG2900 enable to make the chip start up correctlyUlrik LAUREN
An existing fix for resolving a bug in CG2900 has been reverted, the fix for ER319589 has been removed since it shall not be necessary for chip enabling. Instead, a delay of 100 ms has been added during chip enabling. ST-Ericsson ID: 337664 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ib59cb7a70972985f41efae2e06653217b3b1abd5 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23086 Reviewed-by: QATEST Reviewed-by: Andreas ARESKOUG <andreas.areskoug@stericsson.com> Reviewed-by: Tomasz HLIWIAK <tomasz.hliwiak@tieto.com> Tested-by: Tomasz HLIWIAK <tomasz.hliwiak@tieto.com> Reviewed-by: Ulrik LAUREN <ulrik.lauren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30034 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: Delay creation of MFD devicesPar-Gunnar Hjalmdahl
This patch changes behavior when a chip transport is connected, i.e. normally during startup of system. It became obvious that this change was needed when commit ab81cbf99c881ca2b9a83682a8722fc84b2483d2 was introduced. We now wait until startup is finished, i.e. after shutting down the chip, before we register the MFD devices. ST-Ericsson ID: 352334 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 274079 Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Change-Id: I48983ac4363600daf99a8edd2d3bfb9093ef94d4 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29938 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Tested-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22cg2900: Add pdata_size to mfd_cellPar-Gunnar Hjalmdahl
This patch adds the pdata_size parameter to the MFD cells so that the correct amount of platform data is copied when creating MFD devices. ST-Ericsson ID: 352334 ST-Ericcson FOSS-OUT-ID: Trivial ST-Ericsson Linux next: 274079 Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Change-Id: I10f3146eac89d4e238d80829f8c209aaad909bd1 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29818 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Tested-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22cg2900: Do not send RX data to wrong userPar-Gunnar Hjalmdahl
This patch corrects an issue where received data was sent to the wrong user depending on which user first opened the channel. ST-Ericsson Linux next: Not tested, ER 282957 ST-Ericsson ID: 333690 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I14c0bb64e2bd2c0d175da0407af3da179920d015 Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29927
2012-05-22cg2900: Use correct struct for SCO start streamPar-Gunnar Hjalmdahl
This patch corrects an issue where wrong structure was used when starting a SCO stream. ST-Ericsson Linux next: Not tested, ER 282957 ST-Ericsson ID: 333792 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ia36809fa623d4957f962410a3416beca2f657b9f Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/19948 Reviewed-by: Roger NILSSON1 <roger.xr.nilsson@stericsson.com> Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29800 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22mfd/cg2900: Fix for memory leak when using logger.Lukasz Rymanowski
Remove memory leak when sending skb to logger. ST-Ericsson Linux next: Not tested, ER282957 ST-Ericsson ID: 329071 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I0880bc71b4fa654601d96dfdddeff17e64155e55 Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18452 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Tested-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Dariusz SZYMCZAK <dariusz.xd.szymczak@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29798 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: Disable chip when init failedAndrzej Kaczmarek
Adds set_chip_power FALSE call to disable chip when it was not possible to read out revision from the chip (means that initialization failed). ST-Ericsson Linux next: Not tested, ER 351382 ST-Ericsson ID: 351382 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ia3ace0b964095d679cb9c3885de2deaa1aa195a3 Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28057 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QATEST Tested-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29797 Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22cg2900: Fix crash when transport is closedPar-Gunnar Hjalmdahl
This patch fixes crashes caused by transport being removed while users of the CG2900 driver still exist. ST-Ericsson Linux next: Not tested, ER 336652 ST-Ericsson ID: 336652 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I6318ce1086097a4fa63a1793b6795b01ea939715 Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21781 Reviewed-by: QATEST Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29795 Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com> Tested-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
2012-05-22staging: cg2900: Fix for gpio header moveRobert Marklund
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-22staging: cg2900: Update for api change in 3.0Philippe Langlais
Add missing header file Change-Id: I2e8b87b9b5de26e741374eb11b93f15cfa37d826 Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-22cg2900: Fix chip enableRobert Marklund
Update chip enable to use the new sugested procedure. The only change was to lower the reset time from 100 ms to just 20 ms. This should be investigated to see what the chip acually needs. Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> Change-Id: Ibff160fb46708b9f6c96613e623b7d90be35b3eb Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25039 Reviewed-by: Dmitry TARNYAGIN <dmitry.tarnyagin@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
2012-05-22cg2900: Add regulator supportRobert Marklund
Add regulator support needed on snowball HW. ST-Ericsson Linux next: 340135 ST-Ericsson ID: 340139 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> Change-Id: Ic7b5d4559fa44fb13b788002f321898fba3d5843 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24086 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com>
2012-05-22staging: Add ST-Ericsson CG2900 driverPar-Gunnar Hjalmdahl
This patch adds support for the ST-Ericsson CG2900 Connectivity Combo controller (Bluetooth, FM, GPS). Signed-off-by: Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-20Linux 3.4v3.4Linus Torvalds
2012-05-19Merge tag 'parisc-fixes' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6 Pull PA-RISC fixes from James Bottomley: "This is a set of three bug fixes that gets parisc running again on systems with PA1.1 processors. Two fix regressions introduced in 2.6.39 and one fixes a prefetch bug that only affects PA7300LC processors. We also have another pending fix to do with the sectional arrangement of vmlinux.lds, but there's a query on it during testing on one particular system type, so I'll hold off sending it in for now." * tag 'parisc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6: [PARISC] fix panic on prefetch(NULL) on PA7300LC [PARISC] fix crash in flush_icache_page_asm on PA1.1 [PARISC] fix PA1.1 oops on boot
2012-05-19Merge branch 'x86/ld-fix' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull x86 linker bug workarounds from Peter Anvin. GNU ld-2.22.52.0.[12] (*) has an unfortunate bug where it incorrectly turns certain relocation entries absolute. Section-relative symbols that are part of otherwise empty sections are silently changed them to absolute. We rely on section-relative symbols staying section-relative, and actually have several sections in the linker script solely for this purpose. See for example http://sourceware.org/bugzilla/show_bug.cgi?id=14052 We could just black-list the buggy linker, but it appears that it got shipped in at least F17, and possibly other distros too, so it's sadly not some rare unusual case. This backports the workaround from the x86/trampoline branch, and as Peter says: "This is not a minimal fix, not at all, but it is a tested code base." * 'x86/ld-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86, relocs: When printing an error, say relative or absolute x86, relocs: Workaround for binutils 2.22.52.0.1 section bug x86, realmode: 16-bit real-mode code support for relocs tool (*) That's a manly release numbering system. Stupid, sure. But manly.
2012-05-19Merge branch 'for-linus' of git://git.kernel.dk/linux-blockLinus Torvalds
Pull block layer fixes from Jens Axboe: "A few small, but important fixes. Most of them are marked for stable as well - Fix failure to release a semaphore on error path in mtip32xx. - Fix crashable condition in bio_get_nr_vecs(). - Don't mark end-of-disk buffers as mapped, limit it to i_size. - Fix for build problem with CONFIG_BLOCK=n on arm at least. - Fix for a buffer overlow on UUID partition printing. - Trivial removal of unused variables in dac960." * 'for-linus' of git://git.kernel.dk/linux-block: block: fix buffer overflow when printing partition UUIDs Fix blkdev.h build errors when BLOCK=n bio allocation failure due to bio_get_nr_vecs() block: don't mark buffers beyond end of disk as mapped mtip32xx: release the semaphore on an error path dac960: Remove unused variables from DAC960_CreateProcEntries()
2012-05-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds
Pull one more networking bug-fix from David Miller: "One last straggler. Eric Dumazet's pktgen unload oops fix was not entirely complete, but all the cases should be handled properly now.... fingers crossed." * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: pktgen: fix module unload for good
2012-05-19memcg,thp: fix res_counter:96 regressionHugh Dickins
Occasionally, testing memcg's move_charge_at_immigrate on rc7 shows a flurry of hundreds of warnings at kernel/res_counter.c:96, where res_counter_uncharge_locked() does WARN_ON(counter->usage < val). The first trace of each flurry implicates __mem_cgroup_cancel_charge() of mc.precharge, and an audit of mc.precharge handling points to mem_cgroup_move_charge_pte_range()'s THP handling in commit 12724850e806 ("memcg: avoid THP split in task migration"). Checking !mc.precharge is good everywhere else, when a single page is to be charged; but here the "mc.precharge -= HPAGE_PMD_NR" likely to follow, is liable to result in underflow (a lot can change since the precharge was estimated). Simply check against HPAGE_PMD_NR: there's probably a better alternative, trying precharge for more, splitting if unsuccessful; but this one-liner is safer for now - no kernel/res_counter.c:96 warnings seen in 26 hours. Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>