]> git.baikalelectronics.ru Git - kernel.git/commit
qed: use msleep() in qed_mcp_cmd() and add qed_mcp_cmd_nosleep() for udelay.
authorVenkata Sudheer Kumar Bhavaraju <vbhavaraju@marvell.com>
Mon, 31 Jan 2022 00:52:35 +0000 (16:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Feb 2022 05:24:35 +0000 (21:24 -0800)
commitef10bd49df234aadd4e0ab693e151c10e5338c65
tree2da5f760c73df22e1f6c187c014f5912df2cf7a1
parentb43471cc10327f098d5a72918cd59fcb91546ca3
qed: use msleep() in qed_mcp_cmd() and add qed_mcp_cmd_nosleep() for udelay.

Change qed_mcp_cmd() to use msleep() (by setting QED_MB_FLAG_CAN_SLEEP
flag) and add new nosleep() version of the api. These api are used to
issue cmds to management fw and the change affects how driver
behaves while waiting for a response/resource.

All sleepable callers of the existing api now use msleep() version. For
non-sleepable callers, the new nosleep() version is explicitly used.

Signed-off-by: Venkata Sudheer Kumar Bhavaraju <vbhavaraju@marvell.com>
Signed-off-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Link: https://lore.kernel.org/r/20220131005235.1647881-1-vbhavaraju@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h