summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-05-23gator: Get Makefile to work with DKMSJon Medhurst
DKMS uses an absolute paths for $(src) and $(obj) whereas these are relative paths for other kernel building scenarios. So we need to do some jiggery-pokery to get the rule for gator_events.h to work in all situations. Signed-off-by: Jon Medhurst <tixy@linaro.org>
2012-05-23pm: Fix for Basic Suspend/Resume to workramesh.chandrasekaran
Signed-off-by: ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com>
2012-05-23core: Fix for Basic Suspend/Resume to workramesh.chandrasekaran
Signed-off-by: ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com>
2012-05-22usb: musb: SW workaround for USB host issuesupriya karanth
For snowball in HOST mode, the eye diagram is facing high distortion in high speed use cases. This patch allows the user to use an external charge pump instead of the internal one to generate the Vbus voltage. This can be done by setting a sysfs entry. The external VBUS is OFF by default and can be made ON by setting the sysfs entry inorder to enumerate high speed devices. Signed-off-by: supriya karanth <supriya.karanth@stericsson.com>
2012-05-22Bluetooth: Set up correct eSCO packet type for incomming connectionotherSebastian Chlad
This patch sets up correct eSCO packet type mask for the incomming connection request. ST-Ericsson ID: 413660 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ice423fe276c184d7350c4940efe1e010f5c3751d Signed-off-by: Sebastian Chlad <sebastian.chlad@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48491 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Sebastian CHLAD <Sebastian.Chlad@tieto.com> Tested-by: Sebastian CHLAD <Sebastian.Chlad@tieto.com> Reviewed-by: Anurag GUPTA-1 <anurag.gupta@stericsson.com>
2012-05-22panic: Call notify before kernel is stoppedJohan Bjornstedt
In order for panic_notifier_list to be used it needs to be moved to before we call crash_kexec ST-Ericsson ID: 403009 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: N/A Change-Id: I9adea0902b7a52a18ad2af151823a463e6a420a6 Signed-off-by: Johan Bjornstedt <johan.bjornstedt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45474 Reviewed-by: QATOOLS Reviewed-by: Magnus TEMPLING <magnus.templing@stericsson.com> Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Per FRANSSON <per.xx.fransson@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22snowball: android: Fixing access right for BTKejun ZHOU
Signed-off-by: Kejun ZHOU <kejun.zhou@linaro.org> Committer: Mathieu Poirier <mathieu.poirier@linaro.org>
2012-05-22BT: Add sec_level to auth_conn_infoLukasz Rymanowski
With this patch it is possible to retrieve sec_level from the kernel by user space. This is needed for SAP working on hciops. This patch missed to be added when moving to kernel 3.0 ST-Ericsson ID: 256270 ST-Ericsson FOSS-OUT ID: FOSS-OUT-10060 Change-Id: Ic569db392e6f6ee2e546003dec86cc2d62a1fcd7 Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42169 Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Tested-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Hakan GARDRUP <hakan.gardrup@stericsson.com> Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com> Reviewed-by: Kanak GUPTA <kanak.gupta@stericsson.com>
2012-05-22bluetooth: Add SCO parameters support for socketAndrzej Kaczmarek
Adds ability to setup SCO connection parameters through socket option. ST-Ericsson Linux next: Not tested, ER 256277 ST-Ericsson ID: 256277 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10137 Change-Id: If859341019fd9f7cc7c0efe95750779e84fac801 Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30136 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Tested-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-22bluetooth: Improve BNEP extension headers handlingAndrzej Kaczmarek
Adds handling of extension headers to BNEP control packets. Adds support for BNEP setup connection request handled in pand. ST-Ericsson Linux next: - ST-Ericsson ID: 328144 ST-Ericsson FOSS-OUT-ID: Trivial Depends-On: Id2cbd106af9b380f63d87ea0b4652ec6cd996fa4 Change-Id: I005e00e2fe934dc19f40533953d5b233676f0d0e Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18117 Reviewed-by: Par-Gunnar HJALMDAHL <par-gunnar.p.hjalmdahl@stericsson.com> Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Henrik POSSUNG <henrik.possung@stericsson.com>
2012-05-22caif-shmcore: in tx check for buffer full conditioncaifArun Murthy
There are 6 buffers and each buffer can be filled with 10 messages. The size of each buffer is 8k. In shm tx work function, 10 messages are written to the buffer, if the buffer gets filled during writing these 10 messages stop writing to buffer and use the next buffer. ST-Ericsson Linux next: NA ST-Ericsson ID: 375088 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I146d41e4e415c8ff96c605b4c20546ff7501442a Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43350 Reviewed-by: Durga Prasada Rao BATHINA <durgaprasadarao.b@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Sjur BRENDELAND <sjur.brandeland@stericsson.com>
2012-05-22caif-shmcore: increase the priority of flow control wqArun Murthy
replace work queue with kthread workqueue for which the priority can be increased. Priority has to be increased, because ideally there the control information on flow ctrl i.e ON or OFF should reach caif with no delay. ST-Ericsson Linux next: NA ST-Ericsson ID: 372652 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I7a148b3277bcc885ade810df12b47c609a631e21 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42835 Reviewed-by: Hemant-vilas RAMDASI <hemant.ramdasi@stericsson.com> Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Sjur BRENDELAND <sjur.brandeland@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22caif-shm: synchronize caif flow controlArun Murthy
In the shm tx work function caif flow control is turned ON and without acquiring the spin lock. In the rx callback cail flow control is turned off. The expected sequence would be on caif writing message to modem via shm, if shm finds that there is no empty space then, it is not sets caif flow control to OFF. On shm receiving messages from modem, it sets caif flow control to ON. Now this since this is in interrupt context, there are chances of this fucntion being preeempted by the caif OFF that is being set in the tx work function. Hence create a seperate workqueue and two work functions to turn caif flow control ON and OFF. With this implementation it is ensured that caif flow control is turned OFF first by tx work function and turned ON by the rx callback. ST-Ericsson Linux next: NA ST-Ericsson ID: 372652 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ide75415233d7b4560faf25862876c15421df7c2c Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42438 Reviewed-by: QABUILD Reviewed-by: Hemant-vilas RAMDASI <hemant.ramdasi@stericsson.com> Reviewed-by: Sjur BRENDELAND <sjur.brandeland@stericsson.com>
2012-05-22CAIF: Minor alignment with internal CAIF gitErwan Bracq
Some added blank line and BUGON for CAIF serial. Change-Id: If3452ed104b93203fc86fe6a95fd957946447876 Signed-off-by: Erwan Bracq <erwan.bracq@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21527 Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22drivers: U9500: Add WAKE support in ST-E HSIhsiPawel Szyszuk
Added support for IRQ_PRCMU_HSI0 (HSI0_CAWAKE event). GPIO pin is used to control ACWAKE output line. ST-Ericsson ID: 365660 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iefa11ef3466c599af20025ee71f879b9e41c06d9 Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36089 Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22ARM: U9500: HSI registers update to DB8500 V2 specPawel Szyszuk
ST-Ericsson Linux next: NA ST-Ericsson ID: 365681 ST-Ericsson FOSS-OUT ID: NA Change-Id: I396c2a4d44ded438308e358aa0ad976a397d4dd6 Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33224 Reviewed-by: Christopher BLAIR <chris.blair@stericsson.com> Reviewed-by: Derek MORTON <derek.morton@stericsson.com> Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22ARM: U9500: HSI RX PIPELINE buffer flushPawel Szyszuk
ST-Ericsson Linux next: NA ST-Ericsson ID: 365683 ST-Ericsson FOSS-OUT ID: NA Change-Id: I25b92d815447d2746ba25a9db132b242b3da9d9c Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33223 Reviewed-by: Christopher BLAIR <chris.blair@stericsson.com> Reviewed-by: Derek MORTON <derek.morton@stericsson.com> Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22ARM: U9500: HSI core clocks initializationPawel Szyszuk
ST-Ericsson Linux next: NA ST-Ericsson ID: 343481 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic59f08e1bb5d858344d95b5d34ae8a5d85d9aa1d Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32518 Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22ARM: U8500: ST-E HSI: RX FRAMEBURSTCNT set to 0xFFPawel Szyszuk
HSIR FRAMEBURSTCNT register set to the max value 0xFF (255). ST-Ericsson Linux next: NA ST-Ericsson ID: 361371 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I095f113633d873a60a5622b1d195c28a2b01ceab Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32216 Reviewed-by: Christopher BLAIR <chris.blair@stericsson.com> Reviewed-by: Derek MORTON <derek.morton@stericsson.com> Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22ARM: U8500: ST-E HSI: DMA burst and PIPE supportPawel Szyszuk
Added support for HSIR PIPELINED mode (also in drivers/hsi) Added DMA max burst (in DMA words) as a parameter in hsi.h DMA channel high priority set to TRUE for HSI ST-Ericsson ID: 356625 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Id842e61343ce5013992337db085fcbe91dd5b9f7 Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32180 Reviewed-by: Yann GAUTIER <yann.gautier@stericsson.com> Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22drivers: hsi: context save/restore for STE HSIrepo sync
ST-Ericsson ID: ER338229 Change-Id: I860d98414ee603ab8b992d6688ff02de7cc6fd98 Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22821 Reviewed-by: Alex MACRO <alex.macro@stericsson.com> Reviewed-by: QATEST Reviewed-by: Chris KIMBER <chris.kimber@stericsson.com> Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
2012-05-22drivers: hsi: Add CAIF-HSI glue layerPawel Szyszuk
Change-Id: Id0b4672be6a34cf7fca2494ebb6728b679ad9a63 Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21042 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Henrik CARLING <henrik.carling@stericsson.com> Tested-by: Henrik CARLING <henrik.carling@stericsson.com>
2012-05-22drivers: hsi: Add ST-E HSI controllerPawel Szyszuk
Change-Id: I1cbd641a712a33f7d9551e8291dd83dd51b62b79 Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21036 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
2012-05-22arch: arm: ST-E HSI controllerPhilippe Langlais
Change-Id: Ibe70431ede8a9707b37e3394c22beb9acc42d8cb Signed-off-by: Pawel Szyszuk <pawel.szyszuk@stericsson.com>
2012-05-22HSI: omap_ssi: Add OMAP SSI to the kernel configurationPhilippe Langlais
Add OMAP SSI device and driver to the kernel configuration Change-Id: I7f21d4016a98db6f53efcd03f9ffd176b8845d7c Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20577 Reviewed-by: Pawel SZYSZUK <pawel.szyszuk@stericsson.com> Tested-by: Pawel SZYSZUK <pawel.szyszuk@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Conflicts: arch/arm/mach-omap2/Makefile
2012-05-22HSI: omap_ssi: Introducing OMAP SSI driverCarlos Chinea
Introduces the OMAP SSI driver in the kernel. The Synchronous Serial Interface (SSI) is a legacy version of HSI. As in the case of HSI, it is mainly used to connect Application engines (APE) with cellular modem engines (CMT) in cellular handsets. It provides a multichannel, full-duplex, multi-core communication with no reference clock. The OMAP SSI block is capable of reaching speeds of 110 Mbit/s. Change-Id: Iea002a8f321cf66ab439552620af001206626ed6 Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20576 Reviewed-by: Pawel SZYSZUK <pawel.szyszuk@stericsson.com> Tested-by: Pawel SZYSZUK <pawel.szyszuk@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22U8500: Make SIM detect work on resumePaer-Olof Haakansson
The sim detect irq was not enabled during suspend which meant that the first irq on wakeup was lost. ST-Ericsson Linux next: NA ST-Ericsson ID: 399003 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5ae895adc38fd2128953010342930cd0c92d27be Signed-off-by: Paer-Olof Haakansson <par-olof.hakansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50784 Reviewed-by: QATOOLS Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22sim_detect: file access for SIM voltage changedMattias Wallin
Allow userspace not beeing root to update the SIM voltage level through sysfs. Modem needs to go via userspace to update the voltage level and that program is currently not root. Also change sysfs return value when a faulty input is given. ST-Ericsson ID: 411141 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: - Change-Id: I3ba59721197b8bd10482806a5471ad635d045bf1 Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/51080 Reviewed-by: Teddie STENVI <teddie.xx.stenvi@stericsson.com> Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
2012-05-22shrm-net : remove netif_carrier_off/on callsHemant Ramdasi
This patch removes netif_carrier_off() call from machine suspend sequence. Also removes netif_carrier_on() call from resume sequence. This error is introduced because of the below behaviour. Important control message PNS_PEP_STATUS_IND message from phonet stack is getting dropped sometimes in the APE sleep-wakeup transition. It happens because, the Qdisc (between Phonet and SHRM) changes to "noop" when APE goes to sleep. The normal Qdisc in operation in pfifo_fast. When APE wakes up, the transition to pfast_fifo is not fast enough as it is done in a workqueue. So before the switch happens, APE receives 3 packets very quickly and must grant credits in any of the 3 packets. This does not happen. Hence modem cannot send any new packet as it has exhausted all its credits and APE cannot send credit-grant message as it will not receive any new packet. This leads to a deadlock situation for IP data transfer. ST-Ericsson ID: 405569 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I94e1d117c4c191e27a08f6a558b26c442a750816 Signed-off-by: Hemant Ramdasi <hemant.ramdasi@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47661 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Reviewed-by: Dinesh Kumar SHARMA (STE) <dinesh.sharma@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Durga Prasada Rao BATHINA <durgaprasadarao.b@stericsson.com>
2012-05-22u8500: shrm: Wrongly placed return statementAshok G
St-Ericsson Linux next: NA St-Ericsson Id: 419832 St-Ericsson FOSS-OUT ID: Trivial Change-Id: I5a90032c32da0ae9c1963fcd132b5506ec75e591 Signed-off-by: Ashok G <ashok.g@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50523 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: before accessing GOP check modem resetArun Murthy
Apart from checking the modem reset based on the shrm protocol internal state machine, PRCMU registers can also be checked to know the modem reset status before accessing the GOP registers. ST-Ericsson Linux next: NA ST-Ericsson ID: 413508 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I3fefea9d001ccd7a0478967706fec083085ac7f3 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48278 Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: check for modem awake along with hostaccess_portArun Murthy
Before writing to GOP we mush ensure that hostaccess_port is high. Along with that its better to check the modem awake status, to confirm that modem is awake and we dont end up with a freeze on writing to GOP. ST-Ericsson Linux next: NA ST-Ericsson ID: 413508 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ia1bfa7adb8b472745f53ddd03878f25b3ed62375 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48277 Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: secure the access of GOP registerArun Murthy
Before accessing the GOP registers checks are present to verify the modem reset status and the availability of hostaccess_port. There are chances of preemtion happening between the check and access to GOP during which if modem has reset, then we will end up with a system freeze. Hence secure that the check and access to GOP happends at a time without preemption. ST-Ericsson Linux next: NA ST-Ericsson ID: 413508 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Change-Id: I481e925b3a457ad3c8c82a5b7986dba6b2a4457b Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48276 Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: fix potential issues while asserting modem resetArun Murthy
ST-Ericsson Linux next: NA ST-Ericsson ID: 413508 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ie34c827ba78398ce81403c6ee24cd82b4f2100c1 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48275 Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: ensure hostaccess_port is high while accessing GOPArun Murthy
In places of APE handling modem ISR, its clear that modem is awake since it has sent the interrupt and it should be waiting for the ACK for the interrupt. But still its better to check since there are cases where modem behaves unexpectedly. ST-Ericsson Linux next: NA ST-Ericsson ID: 413508 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If9f13388aabeb6b9721ae7274b0d2216d1bca027 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48274 Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: reset boot_state on ape initiated modem resetArun Murthy
the variable boot_state is used to monitor the check the access for the GOP register. Hence on APE initiated modem reset, this flag must be reset as there can be possibility that very soon after ape initiated modem reset, there is some 100msec for modem to send to send modem reset ack and in the mean time if ape tries to access the GOP register then it might end up with system freeze. Hence reset the flag on ape initiated modem reset. ST-Ericsson Linux next: NA ST-Ericsson ID: 413508 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I8ce1c2b2df4608dc3cb4b7a0b3c6ed95857ea4a6 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48273 Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: ensure that timer is started after write to GOPArun Murthy
After sendig AC_MSG_PEND timer is started and on getting AC_READ_NOTI timer is stopped. There are possibility of preemtion happening after writting to GOP register(for sending AC_MSG_PEND) and starting the timer. Hence acquire a spin lock to ensure that hrtimer is started after sending MSG_PEND interrupt. ST-Ericsson Linux next: NA ST-Ericsson ID: 413524 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic3d5d6e9259dc22ca6a4741b1cdd3792f33777fb Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48272 Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22modem: u8500-shrm: print prcmu and abb regs on stuck timeoutArun Murthy
ST-Ericsson Linux next: - ST-Ericsson ID: 402239 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ia08165f58c0d55db7ed97a0c74cd4b493cf14495 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47128 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22u8500-shrm: fix html docs build errorArun Murthy
/local/scratch/hudson_prod/sandbox/build-roots/u8500-lbp-dev/kernel/ Documentation/DocBook/shrm.xml:2153: parser error : EntityRef: expecting ';' <title>&shm_mod_stuck_kw_task</title> ^ unable to parse /local/scratch/hudson_prod/sandbox/build-roots/u8500-lbp-dev/ kernel/Documentation/DocBook/shrm.xml /bin/cp: cannot stat `*.*htm*': No such file or directory make[4]: *** [Documentation/DocBook/shrm.html] Error 1 make[4]: *** Waiting for unfinished jobs.... ST-Ericsson Linux next: NA ST-Ericsson ID: 407459 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I916a0aace48eb04b9707c3d2f3f6b4c47ce08b30 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46539 Reviewed-by: Maria STURESSON <maria.sturesson@stericsson.com> Reviewed-by: QATEST Reviewed-by: Henrik CARLING <henrik.carling@stericsson.com>
2012-05-22u8500-shrm: initiate MSR after fifo fullArun Murthy
On APE side after FIFO fill, shrm driver stops further receiving messages from the user space and keeps waiting indefinetly for the modem to read and empty the fifo. If modem is not responsive then it ends up in an indefinite loop. Hence after arriving at fifo full wait for some time say 1sec and then issue a modem reset which will turn out in a MSR. ST-Ericsson Linux next: NA ST-Ericsson ID: 407459 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9ac5cc4029f6b092809297513810798805485b60 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46338 Reviewed-by: Ashok G X <ashok.g@stericsson.com> Tested-by: Ashok G X <ashok.g@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: add timer to check if modem has stuck or hangArun Murthy
On APE sending msg_pend notification, the only way when APE gets to know that modem is not responsive, is when it ends up with a FIFO full. In order to get this FIFO full on common channel it might take 30min. Hence add a timer and start the timer on msg_pend_notification and cancel the timer at read_noti. If timer expires within this time then its for sure that modem is not responsive. Initiate MSR in that case. The current timer value is 6sec. Since there are two timers and on expiry of either of the timer, modem_reset is called, have added flag so as to ensure that modem_rest is not called simultaneously on exit of both the timer in short span of time. ST-Ericsson Linux next: NA ST-Ericsson ID: 407459 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If3e7b61ee57ea4b1d386a50c8c4b99c2cd701e13 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46337 Reviewed-by: Ashok G X <ashok.g@stericsson.com> Tested-by: Ashok G X <ashok.g@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: inactivity timerArun Murthy
change the inactivity timer of audio and common messages to 25ms. Since there is audio patch every 20ms, the inactivity timer can be 25ms. ST-Ericsson Linux next: NA ST-Ericsson ID: 410076 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9c66012b7283bcf60786ef3475111ce398cf9044 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45200 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD Tested-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22u8500-shrm: Ensure not to access GOP register while in MSRArun Murthy
ST-Ericsson Linux next: NA ST-Ericsson ID: 402285 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I94eb660c8a06070954c1b8920042ff465a85db84 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43027 Reviewed-by: Ashok G X <ashok.g@stericsson.com> Tested-by: Ashok G X <ashok.g@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22ARM: ux500: adds additional dump areasRikard Olsson
Adds additional dump area information which contains information of fuses in db8500. ST-Ericsson Linux next: - ST-Ericsson ID: 404278 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If2aea9493c0942700acc676c40dc9b6e344ef891 Signed-off-by: Rikard Olsson <rikard.p.olsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45155 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22modem m6718: Revert protocol to version 2Chris Blair
Changes the IPC protocol to version 0x02 which used the same protocol for both common and audio links. Since this protocol is not suitable for DMA transfers, the link must be configured in interrupt transfer mode. ST-Ericsson ID: 409301 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ifb7fc0ad008983e59bcfe97f59d9aea128613888 Signed-off-by: Chris Blair <chris.blair@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44936 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22mbox: Fix bad PRCMU include orderPhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-05-22modem m6718: Handle modem irq before resumeChris Blair
Handles the scenario where the modem wakes up the APE and the modem irq is serviced before the IPC driver is resumed. The event is regsitered and serviced later when the driver resume hook is called. ST-Ericsson ID: 405458 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I441decea1cbc657e8dc13ca63a3116f50581c6a7 Signed-off-by: Chris Blair <chris.blair@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44410 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Rickard EVERTSSON <rickard.evertsson@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
2012-05-22u8500-shrm: maintain sleep statemachine in real timeArun Murthy
ac_sleep_disable_count is flag used t control the power management state machine this counter is increased in 3 places ca_wake_req ac_msg_pend_notify_0 ac-msg_pend_notify_1 and decremented in 3 places ac_read_notify_0 ac_read_notify_1 ca_sleep_req ac_msg_pend_notify is called from 2 places, shm_write_msg ac_read_notify it gets called from "shm_write_msg" when there is only one message in the shared memory and otherwise from "ac_read_notify" LOGS <6>[ 72.793395] send_ac_msg_pend_notify_1_work I:2 <6>[ 72.793609] shm_ac_read_notif_1_tasklet D:1 <6>[ 72.793731] send_ac_msg_pend_notify_1_work I:2 <6>[ 72.793853] send_ac_msg_pend_notify_1_work I:3 <6>[ 72.793914] shm_ac_read_notif_1_tasklet D:2 <6>[ 72.804840] send_ac_msg_pend_notify_1_work I:3 <6>[ 72.805053] shm_ac_read_notif_1_tasklet D:2 From the above logs send_ac_msg_pend_notify_1_work is called twice. No problem if this is called twice, but for state machine counter ac_sleep_disable_count this causes problem which doesnt allow the system to enter sleep. This function is called twice in a real time seq, first time from the ac_read_notify, here assume that there is only one message, and hence after notifying modem will call ac_msg_pend_notify. Modem on receiving this interrupt will update the shared read pointer and send the ack. After updating the shared read pointer and before APE receiving the ACK, there is some msg write req coming to shrm. shm driver shm_write_msg is called. Here it finds that this is the only message in shared memory, because the shared read and write pointer are same. Hence send_ac_msg_pend_notify_1_work is called again. Even though msg_pend is notified twice we receive read_notification only onece. Counter ac_sleep_disable_count is incremented in ca_wake_req to 1. Then in ac_msg_pend_notify to 2, then decremented in ac_read_notify. Hence it doesnt increase beyond 2 Fix would be to check if ac_msg_pend is called twice before ac_read_notify is received, then in that case dont increment the ac_sleep_disable_count in ac_msg_pend_notify. ST-Ericsson Linux next: NA ST-Ericsson ID: 401826 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ie4ed0ae33b011a798d620a8db531fad8c23b1d7a Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43169 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-05-22modem: Add M6718 IPC SPI driver state machineChris Blair
Adds the implementation of the driver protocol state machine. ST-Ericsson ID: 369397 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224 ST-Ericsson Linux next: NA Change-Id: Iffa99154ab2d3f0150c96c7bc535ffe26f6988db Signed-off-by: Chris Blair <chris.blair@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36501 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-05-22modem: Add M6718 IPC SPI driver netlink supportChris Blair
Adds netlink support to the modem driver. Userspace can send requests for status on the link and they can subscribe for broadcasrs on the link. ST-Ericsson ID: 369397 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224 ST-Ericsson Linux next: NA Change-Id: I9159080c7337498368da759ca2b20106dd41381c Signed-off-by: Chris Blair <chris.blair@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36499 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>