mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 15:40:50 +00:00
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: Lourdes Pedrajas <lu@pplo.net> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Link: https://lore.kernel.org/r/3fada7fe76047ecf06d0345c0ab9216424a126f2.1583848946.git.lu@pplo.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3cd8958935
commit
d154c0a968
@ -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)
|
|||||||
{
|
{
|
||||||
/* 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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user