OSDN Git Service

bnxt_en: Send FUNC_RESOURCE_QCAPS command in bnxt_resume()
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sun, 24 Nov 2019 03:30:42 +0000 (22:30 -0500)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 24 Nov 2019 22:48:02 +0000 (14:48 -0800)
commitf92335d830059f3f9db950f0af49405d287924d5
treef605d55e50104235df8a747331e45191f7e885db
parent2e882468fce263afef4a77ea4fe40808baaddae7
bnxt_en: Send FUNC_RESOURCE_QCAPS command in bnxt_resume()

After driver unregister, firmware is erasing the information that
driver supports new resource management. Send FUNC_RESOURCE_QCAPS
command to inform the firmware that driver supports new resource
management while resuming from hibernation.  Otherwise, we fallback
to the older resource allocation scheme.

Also, move driver register after sending FUNC_RESOURCE_QCAPS command
to be consistent with the normal initialization sequence.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c