]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pds_core: publish events to the clients
authorShannon Nelson <shannon.nelson@amd.com>
Wed, 19 Apr 2023 17:04:26 +0000 (10:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:29:13 +0000 (08:29 +0100)
commitd24c28278a01dc4c80d1470533c667cf406f0e88
tree66d382ebcc74538c1336d680550a929142b2f374
parent10659034c622738bc1bfab8a76fc576c52d5acce
pds_core: publish events to the clients

When the Core device gets an event from the device, or notices
the device FW to be up or down, it needs to send those events
on to the clients that have an event handler.  Add the code to
pass along the events to the clients.

The entry points pdsc_register_notify() and pdsc_unregister_notify()
are EXPORTed for other drivers that want to listen for these events.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/pds_core/adminq.c
drivers/net/ethernet/amd/pds_core/core.c
drivers/net/ethernet/amd/pds_core/core.h
include/linux/pds/pds_common.h