From d154c0a968691396760e0e7ce7f130e4924714dc Mon Sep 17 00:00:00 2001 From: Lourdes Pedrajas Date: Tue, 10 Mar 2020 15:09:08 +0100 Subject: [PATCH] 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 Reviewed-by: Stefano Brivio Link: https://lore.kernel.org/r/3fada7fe76047ecf06d0345c0ab9216424a126f2.1583848946.git.lu@pplo.net Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6655/power.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c index a68ec52..6b04076 100644 --- a/drivers/staging/vt6655/power.c +++ b/drivers/staging/vt6655/power.c @@ -59,8 +59,10 @@ void PSvEnablePowerSaving(struct vnt_private *priv, /* set AID */ VNSvOutPortW(priv->PortOffset + MAC_REG_AIDATIM, wAID); } + /* Set AutoSleep */ MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); + /* Set HWUTSF */ MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF); @@ -96,10 +98,13 @@ void PSvDisablePowerSaving(struct vnt_private *priv) { /* disable power saving hw function */ MACbPSWakeup(priv); + /* clear AutoSleep */ MACvRegBitsOff(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); + /* clear HWUTSF */ MACvRegBitsOff(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF); + /* set always listen beacon */ MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); -- 2.7.4