OSDN Git Service

cnss2: Support USB SSR and disconnect scenarios
authorRajasekaran Kalidoss <rkalidos@codeaurora.org>
Thu, 28 Mar 2019 08:35:28 +0000 (14:05 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 10 Apr 2019 00:46:24 +0000 (17:46 -0700)
commit04235478f2978f84c0d6b3bfd60263e02d66aa4f
treee3363279b85294af5eb1fa9851028fe5a437340c
parent9ec08ea59b839ac61ee6fcd9f073e713d35fe3e8
cnss2: Support USB SSR and disconnect scenarios

For USB devices, irrecoverable scenarios in firmware
can lead to USB bus disconnect. In USB disconnect, the
interface and dev structures passed by USB sub system
are freed and are no longer valid. The current
implementation is PCIe specific and assumes dev struct
being present and valid always. The clean way to handle
this for HL(USB/SDIO) is to call pld_usb_remove in
disconnect and pld_usb_probe in re-connect after a recovery

Change-Id: I3fc9a5a2fc7bb53439b0410e61f381aa94e18634
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
drivers/net/wireless/cnss2/usb.c
include/net/cnss2.h