Re: [PATCH net-next v2] r8152: adjust the settings of ups flags

From: David Miller
Date: Thu Sep 05 2019 - 06:41:47 EST


From: Hayes Wang <hayeswang@xxxxxxxxxxx>
Date: Thu, 5 Sep 2019 10:46:20 +0800

> The UPS feature only works for runtime suspend, so UPS flags only
> need to be set before enabling runtime suspend. Therefore, I create
> a struct to record relative information, and use it before runtime
> suspend.
>
> All chips could record such information, even though not all of
> them support the feature of UPS. Then, some functions could be
> combined.
>
> Signed-off-by: Hayes Wang <hayeswang@xxxxxxxxxxx>

Applied.