Commit d154c0a9 authored by Lourdes Pedrajas's avatar Lourdes Pedrajas Committed by Greg Kroah-Hartman

staging: vt6655: power.c: code reformatting for improved readability

Improve line grouping for better understanding the course of action and where
every comment belongs to.
Signed-off-by: default avatarLourdes Pedrajas <lu@pplo.net>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/3fada7fe76047ecf06d0345c0ab9216424a126f2.1583848946.git.lu@pplo.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3cd89589
...@@ -59,8 +59,10 @@ void PSvEnablePowerSaving(struct vnt_private *priv, ...@@ -59,8 +59,10 @@ void PSvEnablePowerSaving(struct vnt_private *priv,
/* set AID */ /* set AID */
VNSvOutPortW(priv->PortOffset + MAC_REG_AIDATIM, wAID); VNSvOutPortW(priv->PortOffset + MAC_REG_AIDATIM, wAID);
} }
/* Set AutoSleep */ /* Set AutoSleep */
MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
/* Set HWUTSF */ /* Set HWUTSF */
MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF); MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF);
...@@ -96,10 +98,13 @@ void PSvDisablePowerSaving(struct vnt_private *priv) ...@@ -96,10 +98,13 @@ void PSvDisablePowerSaving(struct vnt_private *priv)
{ {
/* disable power saving hw function */ /* disable power saving hw function */
MACbPSWakeup(priv); MACbPSWakeup(priv);
/* clear AutoSleep */ /* clear AutoSleep */
MACvRegBitsOff(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); MACvRegBitsOff(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
/* clear HWUTSF */ /* clear HWUTSF */
MACvRegBitsOff(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF); MACvRegBitsOff(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF);
/* set always listen beacon */ /* set always listen beacon */
MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment