]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
usb: serial: baseband: buffer allocations at init
authorVinayak Pane <vpane@nvidia.com>
Wed, 21 Mar 2012 22:06:43 +0000 (15:06 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:14:12 +0000 (12:14 -0700)
commitb421c0a6f95fd40566753c34b912ae57a19e8375
treea386b289a46a2cc13c245afe7e066740d26b5309
parent16a49fe5f7ecf8f9b1988c78ae34039a9e489176
usb: serial: baseband: buffer allocations at init

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>
Rebase-Id: R1fe1602c604a4339bd845677cd87db4966a1ff31
drivers/usb/serial/baseband_usb_chr.c