summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/baseband_usb_chr.c
AgeCommit message (Collapse)Author
2012-07-17usb: serial: baseband: buffer allocations at initVinayak Pane
The usb transaction buffers are allocated in module init. In device open, close and disconnect the buffers will not be freed. Instead they will be reused to avoid allocation failure in low-mem conditions. The usb driver register moved to init so that rmmod and insmod is not required. Bug 956211 Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/109935 (cherry picked from commit a4e8219a86f80fd06aaaae2c40a657098d5dcfa5) Change-Id: Id88cfe3b0a75cb2e6f39176b5297f81f4f9e978b Reviewed-on: http://git-master/r/115609 Tested-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-06-26usb: serial: baseband: Add another XMM modem USB VID/PID.Michael Hsu
Add support for another XMM modem. Bug 996038 Change-Id: I392a18284b372fbc80c581b31b21af3c072bf4d3 Signed-off-by: Michael Hsu <mhsu@nvidia.com> Reviewed-on: http://git-master/r/110193 (cherry picked from commit bdad2e9c1b195c8f7fcc3216f2bf27ea99dfd597) Reviewed-on: http://git-master/r/110941 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Vinayak Pane <vpane@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-06-15usb: serial: baseband_usb_chr kernel panicpyu
Two threads race for two resources when baseband_usb_close() get called from a user process Bug 988188 Change-Id: Ic962640b6414e576d34b7ff6870b21b644837434 Signed-off-by: pyu <pyu@nvidia.com> Reviewed-on: http://git-master/r/107088 GVS: Gerrit_Virtual_Submit Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-04-16usb: serial: baseband: Restructure open and closeVinayak Pane
This commit reorganizes the usb chr driver for (1) Application does not have to rmmod & insmod (2) Application recovery mechanism to restart download (3) Change memory allocation policy to accommodate in low-mem situations. (4) Avoid kernel panic when module is not removed Bug 947621 Bug 956211 Reviewed-on: http://git-master/r/91373 (cherry picked from commit bb5a148979a92191e0dfb4d97d4942f877f18309) Change-Id: I2679d1d5f94cfe6e7dc98df0026f64cab703fe5c Signed-off-by: Vinayak Pane <vpane@nvidia.com> Reviewed-on: http://git-master/r/96334 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Steve Lin <stlin@nvidia.com>
2012-01-30arm: tegra: comms: handle usb disconnectionSeshendra Gadagottu
Flushing pending urb requests on disconnection. Blocks usb requests on usb device disconnection. BUG 919270 Reviewed-on: http://git-master/r/72832 Change-Id: I9ae10685d9517e0626338cfd42b21479d7d480eb Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77760 Reviewed-by: Automatic_Commit_Validation_User
2012-01-30arm: tegra: comms: fix crash at dev attr changeVinayak Pane
Check the state machine before poweron the modem by device attribute change routine. Maintain the state machine to avoid crash after writing state change to /sys/devices/platform/baseband_xmm_power/xmm_onoff Also cancel workqueue at module unload to avoid possible crash. Bug 898008 Reviewed-on: http://git-master/r/72934 Change-Id: I0d8286774040f155c930ecb0bb69778de6c606ac Signed-off-by: Vinayak Pane <vpane@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77744 Reviewed-by: Automatic_Commit_Validation_User
2011-11-30arm: tegra: comms: Fix race condition in probe function.Michael Hsu
XMM modem baseband character driver, which is used to download modem software, had race condition. If USB host stack has not enumerated XMM modem boot rom yet, then driver aborts module load. With this change, I/O (such as downloading modem software) will be delayed until USB host stack has enumerated modem boot rom. BUG 828389 Reviewed-on: http://git-master/r/58870 (cherry picked from commit 22a5122689ab957fd0236cf2fcf1623dac82ab69) Change-Id: Ib858363b11ea41d40218ed9ed044012421209371 Reviewed-on: http://git-master/r/62734 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Re7857218c723d3c43072f17ccf5ffc70a7faf163
2011-11-30arm: tegra: comms: Add baseband character driver.Michael Hsu
Add raw character device driver for baseband modems. Suitable for downloading modem software image to flashless modem, or sending AT modem commands after modem software is running. Original-Change-Id: I0de126c5eb8700db196e9d6838d65ccce1480c42 Reviewed-on: http://git-master/r/40936 Reviewed-by: Michael Hsu <mhsu@nvidia.com> Tested-by: Michael Hsu <mhsu@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R76607c0d7b47938fa49d4ec57e9962f2d683a5cb