]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: core: move event buffer allocation out of dwc3_core_init()
authorFelipe Balbi <balbi@ti.com>
Thu, 11 Oct 2012 10:54:36 +0000 (13:54 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 15 Oct 2012 11:58:56 +0000 (14:58 +0300)
commite3444bb51feb8801ec951f412577a3da09a2ce18
treecdc4cd76426fa93ea3ce72c1b6c78724835e3680
parent7cc790fd74fc38897b8820a07a96e335f0e2a59c
usb: dwc3: core: move event buffer allocation out of dwc3_core_init()

This patch is in preparation for adding PM support
dwc3 driver. We want to re-use dwc3_core_init and
dwc3_core_exit() functions on resume() and suspend()
callbacks respectively.

Moving even buffer allocation away from dwc3_core_init()
will allow us to reuse the event buffer which was allocated
long ago on our probe() routine.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c