]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: host: more enhancement when ci->hcd is NULL
authorPeter Chen <peter.chen@freescale.com>
Tue, 22 Oct 2013 03:13:41 +0000 (11:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 23:43:37 +0000 (16:43 -0700)
commit99d822d3a02032568729299b235ef79292decef4
tree161bd055f3adda1449e7e01de6df4dbe82a127c7
parentaef015da11f90397639069bc63598fddd6988c2c
usb: chipidea: host: more enhancement when ci->hcd is NULL

Like http://marc.info/?l=linux-usb&m=138200449428874&w=2 said:
two more things are needed to be done:

- If host_start fails, the host_stop should not be called, so we
add check that ci->hcd is not NULL.
- if the host_start fails at the beginning, we need to consider
regulator mismatch issue.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/host.c