diff options
| author | Rajasekaran Kalidoss <rkalidos@codeaurora.org> | 2019-03-28 14:05:28 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-09 17:46:24 -0700 |
| commit | 04235478f2978f84c0d6b3bfd60263e02d66aa4f (patch) | |
| tree | e3363279b85294af5eb1fa9851028fe5a437340c /include/net | |
| parent | 9ec08ea59b839ac61ee6fcd9f073e713d35fe3e8 (diff) | |
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>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/cnss2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/cnss2.h b/include/net/cnss2.h index 0b2c9d272fac..de0161915a75 100644 --- a/include/net/cnss2.h +++ b/include/net/cnss2.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -96,6 +96,7 @@ struct cnss_usb_wlan_driver { int (*suspend)(struct usb_interface *pintf, pm_message_t state); int (*resume)(struct usb_interface *pintf); int (*reset_resume)(struct usb_interface *pintf); + void (*update_status)(struct usb_interface *pintf, uint32_t status); const struct usb_device_id *id_table; }; |
