Hi,
I'm trying to add ACPI support in my ethernet device driver. But I'm not sure how to obtain the adapter/device context in the power management callback function.
Please help me out.
The prototype of the callback function is :
int (*pm_callback) (struct pm_dev *dev, pm_request_t rqst, void *data);
dev - PM device previously returned from pm_register
rqst - request type ( PM_SUSPEND or PM_RESUME)
data - data if any associated with the request, like Power state to suspend to
Thanks,
Valli.
I'm trying to add ACPI support in my ethernet device driver. But I'm not sure how to obtain the adapter/device context in the power management callback function.
Please help me out.
The prototype of the callback function is :
int (*pm_callback) (struct pm_dev *dev, pm_request_t rqst, void *data);
dev - PM device previously returned from pm_register
rqst - request type ( PM_SUSPEND or PM_RESUME)
data - data if any associated with the request, like Power state to suspend to
Thanks,
Valli.