* remove unused code and improve readability
@ 2020-03-10 13:28 Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 1/2] staging: vt6655: power.c: Remove setting ATIM Window in PSvEnablePowerSaving() Lourdes Pedrajas
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 13:28 UTC (permalink / raw)
To: outreachy-kernel; +Cc: forest, gregkh
Here's a set of patches that performs code cleanup in the file
drivers/staging/vt6655/power.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] staging: vt6655: power.c: Remove setting ATIM Window in PSvEnablePowerSaving()
2020-03-10 13:28 remove unused code and improve readability Lourdes Pedrajas
@ 2020-03-10 13:28 ` Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 2/2] staging: exfat: exfat_super.c: code reformatting for improved readability Lourdes Pedrajas
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 13:28 UTC (permalink / raw)
To: outreachy-kernel; +Cc: forest, gregkh
Every time priv->op_mode is not NL80211_IFTYPE_ADHOC it sets ATIM Window, but
this feature it is marked TODO in 2014 and did go untouched since 2015.
Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
drivers/staging/vt6655/power.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c
index bfd598a93b04..a68ec527679a 100644
--- a/drivers/staging/vt6655/power.c
+++ b/drivers/staging/vt6655/power.c
@@ -58,11 +58,6 @@ void PSvEnablePowerSaving(struct vnt_private *priv,
if (priv->op_mode != NL80211_IFTYPE_ADHOC) {
/* set AID */
VNSvOutPortW(priv->PortOffset + MAC_REG_AIDATIM, wAID);
- } else {
- /* set ATIM Window */
-#if 0 /* TODO atim window */
- MACvWriteATIMW(priv->PortOffset, pMgmt->wCurrATIMWindow);
-#endif
}
/* Set AutoSleep */
MACvRegBitsOn(priv->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP);
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] staging: exfat: exfat_super.c: code reformatting for improved readability
2020-03-10 13:28 remove unused code and improve readability Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 1/2] staging: vt6655: power.c: Remove setting ATIM Window in PSvEnablePowerSaving() Lourdes Pedrajas
@ 2020-03-10 13:28 ` Lourdes Pedrajas
2020-03-10 13:35 ` Greg KH
2020-03-10 13:35 ` remove unused code and improve readability Greg KH
2020-03-10 13:36 ` Lourdes Pedrajas
3 siblings, 1 reply; 7+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 13:28 UTC (permalink / raw)
To: outreachy-kernel; +Cc: forest, gregkh
Improve line grouping for better understanding the course of action and where
every comment belongs to.
Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
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 a68ec527679a..6b0407694e54 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.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: remove unused code and improve readability
2020-03-10 13:28 remove unused code and improve readability Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 1/2] staging: vt6655: power.c: Remove setting ATIM Window in PSvEnablePowerSaving() Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 2/2] staging: exfat: exfat_super.c: code reformatting for improved readability Lourdes Pedrajas
@ 2020-03-10 13:35 ` Greg KH
2020-03-10 13:40 ` Lourdes Pedrajas
2020-03-10 13:36 ` Lourdes Pedrajas
3 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2020-03-10 13:35 UTC (permalink / raw)
To: Lourdes Pedrajas; +Cc: outreachy-kernel, forest
On Tue, Mar 10, 2020 at 02:28:12PM +0100, Lourdes Pedrajas wrote:
>
> Here's a set of patches that performs code cleanup in the file
> drivers/staging/vt6655/power.c
>
I don't think you created this with 'git format-patch --cover-letter' :(
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] staging: exfat: exfat_super.c: code reformatting for improved readability
2020-03-10 13:28 ` [PATCH 2/2] staging: exfat: exfat_super.c: code reformatting for improved readability Lourdes Pedrajas
@ 2020-03-10 13:35 ` Greg KH
0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2020-03-10 13:35 UTC (permalink / raw)
To: Lourdes Pedrajas; +Cc: outreachy-kernel, forest
On Tue, Mar 10, 2020 at 02:28:14PM +0100, Lourdes Pedrajas wrote:
> Improve line grouping for better understanding the course of action and where
> every comment belongs to.
>
> Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
> ---
> drivers/staging/vt6655/power.c | 5 +++++
> 1 file changed, 5 insertions(+)
The subject does not match the file changed :(
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: remove unused code and improve readability
2020-03-10 13:28 remove unused code and improve readability Lourdes Pedrajas
` (2 preceding siblings ...)
2020-03-10 13:35 ` remove unused code and improve readability Greg KH
@ 2020-03-10 13:36 ` Lourdes Pedrajas
3 siblings, 0 replies; 7+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 13:36 UTC (permalink / raw)
To: outreachy-kernel; +Cc: forest, gregkh
On Tue, Mar 10, 2020 at 02:28:12PM +0100, Lourdes Pedrajas wrote:
>
> Here's a set of patches that performs code cleanup in the file
> drivers/staging/vt6655/power.c
>
Please ignore this patchet, I am so sorry, the subject line is not ok.
Patched is sent again.
Thank you.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: remove unused code and improve readability
2020-03-10 13:35 ` remove unused code and improve readability Greg KH
@ 2020-03-10 13:40 ` Lourdes Pedrajas
0 siblings, 0 replies; 7+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 13:40 UTC (permalink / raw)
To: Greg KH; +Cc: outreachy-kernel, forest
On Tue, Mar 10, 2020 at 02:35:20PM +0100, Greg KH wrote:
> On Tue, Mar 10, 2020 at 02:28:12PM +0100, Lourdes Pedrajas wrote:
> >
> > Here's a set of patches that performs code cleanup in the file
> > drivers/staging/vt6655/power.c
> >
>
> I don't think you created this with 'git format-patch --cover-letter' :(
It's git-send-email. Also yes, the file is not correct :(
Forgive me, thanks for your patience.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-03-10 13:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 13:28 remove unused code and improve readability Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 1/2] staging: vt6655: power.c: Remove setting ATIM Window in PSvEnablePowerSaving() Lourdes Pedrajas
2020-03-10 13:28 ` [PATCH 2/2] staging: exfat: exfat_super.c: code reformatting for improved readability Lourdes Pedrajas
2020-03-10 13:35 ` Greg KH
2020-03-10 13:35 ` remove unused code and improve readability Greg KH
2020-03-10 13:40 ` Lourdes Pedrajas
2020-03-10 13:36 ` Lourdes Pedrajas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.