summaryrefslogtreecommitdiff
path: root/drivers/staging
AgeCommit message (Collapse)Author
2011-12-16Squashandroid-20111223Benn Pörscke
Change-Id: I2fcf46d1fc4b0cd4c61e5be3654c43b80db86015
2011-10-28staging: brcm80211: fix for reported log spam problemRoland Vossen
commit 37c962d195005d009e130e65a9e55960996c3cab upstream. Every few minutes, this message would appear in syslog: ieee80211 ph0: wl_ops_bss_info_changed: BSS idle: true (implement) The message has been deleted, the driver requires no special action on this particular event (). See: https://bugzilla.kernel.org/show_bug.cgi?id=38162 Reported-by: David Hill <hilld@binarystorm.net> Signed-off-by: Roland Vossen <rvossen@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Reviewed-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> Change-Id: Ic81a0d84f2a0f767b1fe881f19e3b59caedccf6f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35605 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28ath6kl: fix crash when interface is closed but scan is ongoingKalle Valo
commit 98ab5c7755b5cc9e1a8f2a57ccb22eac5e13ec50 upstream. When ath6kl module was resumed while a scan was ongoing, for example during suspend, the driver would crash in ar6k_cfg80211_scanComplete_event(): [26581.586440] Call Trace: [26581.586440] [<f99ffeda>] ? ar6k_cfg80211_scanComplete_event+0xaa/0xaa [ath6kl] [26581.586440] [<f9a0a020>] wmi_iterate_nodes+0xb/0xd [ath6kl] [26581.586440] [<f99ffe78>] ar6k_cfg80211_scanComplete_event+0x48/0xaa [ath6kl] [26581.586440] [<f9a038ae>] ar6000_close+0x77/0x7e [ath6kl] [26581.586440] [<c139c25d>] __dev_close_many+0x87/0xab [26581.586440] [<c139c30a>] dev_close_many+0x54/0xab [26581.586440] [<c139c437>] rollback_registered_many+0xa5/0x19e [26581.586440] [<c139c595>] rollback_registered+0x23/0x2f [26581.586440] [<c139c5ed>] unregister_netdevice_queue+0x4c/0x69 [26581.586440] [<c139c6b2>] unregister_netdev+0x18/0x1f [26581.586440] [<f9a00d4c>] ar6000_destroy+0xf8/0x115 [ath6kl] [26581.586440] [<f9a0c765>] ar6k_cleanup_module+0x20/0x29 [ath6kl] [26581.586440] [<c1062843>] sys_delete_module+0x181/0x1d9 [26581.586440] [<c105876b>] ? lock_release_holdtime+0x2b/0xcd [26581.586440] [<c10b55dc>] ? sys_munmap+0x3b/0x42 [26581.586440] [<c14a99dc>] ? restore_all+0xf/0xf [26581.586440] [<c14aeb6c>] sysenter_do_call+0x12/0x32 [26581.586440] Code: 89 53 6c 75 07 89 d8 e8 c0 ff ff ff 89 f0 e8 2c f2 a9 c7 5b 5e 5d c3 55 89 e5 57 56 53 89 c3 83 ec 08 89 55 f0 8d 78 04 89 4d ec <8b> b0 b8 00 00 00 46 89 b0 b8 00 00 00 89 f8 e8 ae ed a9 c7 8b Fix the function not to iterate nodes when the scan is aborted. The nodes are already freed when the module is being unloaded. Patch "ath6kl: Fix a kernel panic furing suspend/resume" tried to fix this already but it wasn't enough as a pointer was still used even after the null check. This patch removes the null check entirely as the wmi structure is not accessed anymore during module unload. Also fix a bug where the status was checked as a bitfield with '&' operator. But it's not a bitfield, just a regular (enum like) value. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: If6eebd3738c1b46378cec6f0d39a6067e4e2b25e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35602 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28ath6kl: cache firmwareKalle Valo
commit b42a7b1bc7c0f535dfe35b2c934f239c60bb8d30 upstream. Drivers should not request firmware during resume. Fix ath6kl to cache the firmware instead. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: Ib6cde5c196da33787a9bc6c5efa9315227c33856 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35601 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28Staging: hv: netvsc: Increase the timeout value in the netvsc driverK. Y. Srinivasan
commit 5c5781b3f88567211ecaaada13431af15c8c6003 upstream. On some loaded windows hosts, we have discovered that the host may not respond to guest requests within the specified time (one second) as evidenced by the guest timing out. Fix this problem by increasing the timeout to 5 seconds. It may be useful to apply this patch to the 3.0 kernel as well. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: If27c75ecc09d3b259325d7ceb210d2b18409b7d2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35590 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28Staging: hv: vmbus: Increase the timeout value in the vmbus driverK. Y. Srinivasan
commit 2dfde9644fe8c4a77f9c73f95b25d6300ca23b5d upstream. On some loaded windows hosts, we have discovered that the host may not respond to guest requests within the specified time (one second) as evidenced by the guest timing out. Fix this problem by increasing the timeout to 5 seconds. It may be useful to apply this patch to the 3.0 kernel as well. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: If7edbf48ff9fba1003dd549482c0b0f9cf48dc0f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35589 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28Staging: hv: storvsc: Increase the timeout value in the storvsc driverK. Y. Srinivasan
commit 46d2eb6d82ef44be58ae192c35e8cd52485f02eb upstream. On some loaded windows hosts, we have discovered that the host may not respond to guest requests within the specified time (one second) as evidenced by the guest timing out. Fix this problem by increasing the timeout to 5 seconds. It may be useful to apply this patch to the 3.0 kernel as well. the 3.0 kernel as well. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I0834737d04e5f73d3bb139973bdd6b1170ca562e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35588 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28staging: comedi: fix infoleak to userspaceVasiliy Kulikov
commit 819cbb120eaec7e014e5abd029260db1ca8c5735 upstream. driver_name and board_name are pointers to strings, not buffers of size COMEDI_NAMELEN. Copying COMEDI_NAMELEN bytes of a string containing less than COMEDI_NAMELEN-1 bytes would leak some unrelated bytes. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: If5220b6600a85e49d657e4dfe005d6cc4677f1f8 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35587 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28staging: r8192e_pci: Handle duplicate PCI ID 0x10ec:0x8192 conflict with ↵Larry Finger
rtl8192se commit 1c50bf7e415cf6ce9545dbecc2ac0d89d3916c53 upstream. There are two devices with PCI ID 0x10ec:0x8192, namely RTL8192E and RTL8192SE. The method of distinguishing them is by the revision ID at offset 0x8 of the PCI configuration space. If the value is 0x10, then the device uses rtl8192se for a driver. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I7bcf1251f21bac64374464ad8b5c4a2c61352245 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35586 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-28Staging: usbip: vhci-hcd: Do not kill already dead RX/TX kthreadTobias Klauser
commit 8547d4cc2b616e4f1dafebe2c673fc986422b506 upstream. When unbinding a device on the host which was still attached on the client, I got a NULL pointer dereference on the client. This turned out to be due to kthread_stop() being called on an already dead kthread. Here is how I was able to reproduce the problem: server:# usbip bind -b 1-2 client:# usbip attach -h server -b 1-2 server:# usbip unbind -b 1-2 This patch fixes the problem by checking the kthread before attempting to kill it, as it is done on the opposite side in stub_shutdown_connection(). Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I9aaa60ee923506237a325afdaf908a5dbd7be60e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35585 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-27U8500 CM: fix re-entrancy issuePierre Peiffer
Fix a re-entrancy issue when killing two processes that use the CM driver simultaneously. ST-Ericsson ID: 364585 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I48cb434b87a85b635fe4506a92d7b1c7086071fb Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35216 Reviewed-by: QATOOLS Reviewed-by: QABUILD
2011-10-26cg2900: 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: I0cd529823200c6225b13b36fa6bbeff337bd5e04 Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33936 Reviewed-by: Nitin DHINGRA <nitin.dhingra@stericsson.com> Reviewed-by: QABUILD Reviewed-by: Lukasz RYMANOWSKI <lukasz.rymanowski@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Dmitry TARNYAGIN <dmitry.tarnyagin@stericsson.com> Tested-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com>
2011-10-25[U9500] Correct the GPIO configuration for WLANRejane Durand
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 Change-Id: I5880f617c65f7cf4ca9eeabf22a53f7a77c20133 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34320 Reviewed-by: Rejane DURAND <rejane.durand@stericsson.com> Tested-by: Rejane DURAND <rejane.durand@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Baptiste CHAULOUX <baptiste.chauloux@stericsson.com> Tested-by: Baptiste CHAULOUX <baptiste.chauloux@stericsson.com> Reviewed-by: Christophe GUIBOUT <christophe.guibout@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-25cg2900: 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>
2011-10-24ux500: nmf cm: Manage the dma lcla in esrambarge
Manage the dma lcla in esram instead of ddr Depends-On: I4bc5b72f6d198f26c7b48572cb3843d18c6b8553, I590751f732021c5f2f4da9b7d51ae5dc10087be7, If5d86036b8b9ef72863c447f0e400bb4e51b2ab3 ST-Ericsson ID: 364165 ST-Ericsson FOSS-OUT ID: Trivial: ST-Ericsson Linux next: NA Change-Id: Ic9ac2971bd9f3bf267e04de37b698ff968033ebc Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34369 Reviewed-by: Sylvain BARGE <sylvain.barge@stericsson.com> Reviewed-by: Thierry STRUDEL <thierry.strudel@stericsson.com> Tested-by: Sylvain BARGE <sylvain.barge@stericsson.com>
2011-10-21staging: mmio: protect shared resource using mutexcnanda
mmio_trace structure maintains information about the shared log buffer from camera firmware. As it is accessed from two different contexts, it needs to be protected using mutex to guard against possible corruption. ST-Ericsson ID: 356426 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I806b4d26b3466a9873a8a02f8c9ac51e0ad44fd5 Signed-off-by: cnanda <chetan.nanda@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33915 Reviewed-by: QATOOLS Tested-by: Rajat VERMA <rajat.verma@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-14cg2900: 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>
2011-10-11cg2900: 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>
2011-10-11cg2900: 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>
2011-10-11cg2900: 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>
2011-10-10ux500: camera_flash: add platform data for adp1653Rajat Verma
board specific information such as enable_gpio and interrupt line information should be obtained using platform_data and not hardcoded inside the driver itself. ST-Ericsson Linux next: NA ST-Ericsson ID: 361940 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I73a0f3e986bd3cbf19a0797190d514af9b84e3df Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33282 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2011-10-06U8500 MMIO,CameraFlash: Remove duplicate headerspsen
Remove duplicate header files exist in mmio and camera flash staging drivers which already exists in include/linux. ST-Ericsson ID: NA ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Pankaj Sen <pankaj.sen@stericsson.com> Change-Id: I912dad16aadd56d2277526ca168cf11bf7b13524 Change-Id: I952eaef158634be3f1f408a78f79f690f4b00426 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32255 Reviewed-by: Vishal JAIN STE <v.jain@stericsson.com> Tested-by: Vishal JAIN STE <v.jain@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-10-05cg2900: 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/32891 Reviewed-by: Hemant GUPTA <hemant.gupta@stericsson.com> Reviewed-by: Himanshu AGGARWAL <himanshu.aggarwal@stericsson.com>
2011-10-05U8500 CM: do not initialize ESRAM to zeroPierre Peiffer
The CM driver initializes the whole ESRAM to zero, including the DMA part (at offset 64k-68k) which can be already in use. Let the CM map only the required part (ie exclude the MCDE part) and do not reset the ESRAM to zero at init. ST-Ericsson ID: 361307 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Change-Id: Ie930e7febe7e24b790c2d2b8ffadc4198daabac7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32980 Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
2011-09-30mfd/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>
2011-09-30mfd/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>
2011-09-30U8500 CM: fix 'make mrproper' issuePierre Peiffer
Fix NMF-CM Makefile to allow a proper run of 'make mrproper' in all cases. ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: - Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Change-Id: I3e03b6ba02b5f8f333b1d494e8ce6076f3da56ff Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32554 Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-30U8500 CM: remove useless filesPierre Peiffer
Remove some useless files from the NMF-CM driver. ST-Ericsson ID: 360466 ST-Ericsson Linux next: - Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Change-Id: I05eae0cf823b44b0861bff6aedc5341d5cc1d8d0 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32588 Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
2011-09-30U8500 CM: Add caller info in some panicPierre Peiffer
Add caller information in case of INTERFACE_NOT_BINDED panic ST-Ericsson ID: 361780 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Change-Id: I7caf788a30268cd977c67efe62f8182a76502d4c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32586 Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
2011-09-30U8500 CM: always release the loadmap entryPierre Peiffer
When releasing a component, its loadmap entry is not released if a corruption is detected. Free this entry in any case to avoid any leakage even in case corruption. ST-Ericsson ID: 361414 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Change-Id: Ifbf60e88b4875fffeff50a896a862f850e06227f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32585 Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
2011-09-30U8500 CM: send a DSP Panic if it's not respondingPierre Peiffer
* Generate a DSP Panic and send it to user process when the DSP does not respond anymore. The issue is that when a process is using a DSP (ie has some components deployed on a DSP) without any activity (no interaction with the DSP), the driver needs to tell it when the DSP is dead. This Panic message is there to solve this issue. * Force wake-up of MMDSP before changing hardware power state This a work around for prcmu issue. ST-Ericsson ID: 359048 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Change-Id: I920cc6a8e79e7dc9b39bd77f700a9e0e056b6a81 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32584 Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com> Tested-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
2011-09-29u5500: prcmu: fix path to header fileRabin Vincent
Change-Id: If55cc0a33e026a6662d7b067a09b1900bd292a6a 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>
2011-09-29ux500: 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>
2011-09-29ARM: ux500: Replace mach prcmu driver with mainlined versionJonas Aaberg
The prcmu driver now exists in drivers/mfd Change-Id: I0c8d97679ee186ca8205aeeafa0030568f540d2e Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32057
2011-09-22staging: camera_flash: Enable FLASH_MODE_NONERajat Verma
FLASH_MODE_NONE should be enabled by flash clients to put the flash IC in sleep mode, dropping the input current to less that 45 microamperes. ST-Ericsson ID: 361897 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Change-Id: I5ff4e409344578043b2f35e19474e215ddde2e44 Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31744 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
2011-09-22u5500: enable vibrator when new timeout is requestedAvinash A
with this patch new timeout value will be accepted/updated even if vibrator is already executing. ST-Ericsson ID: 360178 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ifeead439633c789e61887f9b74ef7462e58bbdfa Signed-off-by: Avinash A <Avinash.a@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31739 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
2011-09-19u9500: GPIO conflicts with external modemChristophe Guibout
This patch content should have gone with the below commit 2057772c5d0b1a18198c91085d9e828cdb23d23b Change-Id: I2482934a9fb9919de8241170597edc34f0c166e3 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30999 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>
2011-09-19cg2900: 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>
2011-09-19cg2900: 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>
2011-09-19Revert "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>
2011-09-19u9500: 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>
2011-09-19cg2900: 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>
2011-09-19cg2900: 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>
2011-09-19cg2900: 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>
2011-09-19cg2900: 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: 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>
2011-09-19Adding 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>
2011-09-19WLAN: Disable cw1200 driver from kernel treeBartosz Markowski
cw1200 openMAC driver is taken from compat-wireless drivers/staging folder untill mainlined. ST-Ericsson ID: 352334 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com> Change-Id: I2378b4a961e0ca711eb3d2afebcf92f8679f81f1 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30006
2011-09-19cg2900: 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>
2011-09-19cg2900: 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>
2011-09-19ab5500: move to separate headerRabin Vincent
Change-Id: I11dd2a23323229096b6e0ee2d4dc68cab8919bff