* [PATCH net-next] net: nfc: nci: Change the NCI close sequence
@ 2020-12-28 1:46 ` Bongsu Jeon
0 siblings, 0 replies; 5+ messages in thread
From: Bongsu Jeon @ 2020-12-28 1:46 UTC (permalink / raw)
To: davem, kuba; +Cc: netdev, linux-kernel, linux-nfc, Bongsu Jeon
From: Bongsu Jeon <bongsu.jeon@samsung.com>
Change the NCI close sequence because the NCI Command timer should be
deleted after flushing the NCI command work queue.
Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
---
net/nfc/nci/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index e64727e1a72f..79bebf4b0796 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -579,11 +579,11 @@ static int nci_close_device(struct nci_dev *ndev)
clear_bit(NCI_INIT, &ndev->flags);
- del_timer_sync(&ndev->cmd_timer);
-
/* Flush cmd wq */
flush_workqueue(ndev->cmd_wq);
+ del_timer_sync(&ndev->cmd_timer);
+
/* Clear flags */
ndev->flags = 0;
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [linux-nfc] [PATCH net-next] net: nfc: nci: Change the NCI close sequence
@ 2020-12-28 1:46 ` Bongsu Jeon
0 siblings, 0 replies; 5+ messages in thread
From: Bongsu Jeon @ 2020-12-28 1:46 UTC (permalink / raw)
To: linux-nfc
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
From: Bongsu Jeon <bongsu.jeon@samsung.com>
Change the NCI close sequence because the NCI Command timer should be
deleted after flushing the NCI command work queue.
Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
---
net/nfc/nci/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index e64727e1a72f..79bebf4b0796 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -579,11 +579,11 @@ static int nci_close_device(struct nci_dev *ndev)
clear_bit(NCI_INIT, &ndev->flags);
- del_timer_sync(&ndev->cmd_timer);
-
/* Flush cmd wq */
flush_workqueue(ndev->cmd_wq);
+ del_timer_sync(&ndev->cmd_timer);
+
/* Clear flags */
ndev->flags = 0;
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH net-next] net: nfc: nci: Change the NCI close sequence
@ 2020-12-28 1:46 ` Bongsu Jeon
0 siblings, 0 replies; 5+ messages in thread
From: Bongsu Jeon @ 2020-12-28 1:46 UTC (permalink / raw)
To: linux-nfc
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
From: Bongsu Jeon <bongsu.jeon@samsung.com>
Change the NCI close sequence because the NCI Command timer should be
deleted after flushing the NCI command work queue.
Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
---
net/nfc/nci/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index e64727e1a72f..79bebf4b0796 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -579,11 +579,11 @@ static int nci_close_device(struct nci_dev *ndev)
clear_bit(NCI_INIT, &ndev->flags);
- del_timer_sync(&ndev->cmd_timer);
-
/* Flush cmd wq */
flush_workqueue(ndev->cmd_wq);
+ del_timer_sync(&ndev->cmd_timer);
+
/* Clear flags */
ndev->flags = 0;
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net: nfc: nci: Change the NCI close sequence
2020-12-28 1:46 ` [linux-nfc] " Bongsu Jeon
(?)
(?)
@ 2020-12-28 21:21 ` Jakub Kicinski
-1 siblings, 0 replies; 5+ messages in thread
From: Jakub Kicinski @ 2020-12-28 21:21 UTC (permalink / raw)
To: Bongsu Jeon; +Cc: davem, netdev, linux-kernel, linux-nfc, Bongsu Jeon
On Mon, 28 Dec 2020 10:46:31 +0900 Bongsu Jeon wrote:
> From: Bongsu Jeon <bongsu.jeon@samsung.com>
>
> Change the NCI close sequence because the NCI Command timer should be
> deleted after flushing the NCI command work queue.
The commit message should describe the reason - why new order is
better than the old one. The existing sentence describes what is
changing more than why.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net: nfc: nci: Change the NCI close sequence
2020-12-28 1:46 ` [linux-nfc] " Bongsu Jeon
` (2 preceding siblings ...)
(?)
@ 2021-01-06 0:07 ` David Miller
-1 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2021-01-06 0:07 UTC (permalink / raw)
To: bongsu.jeon2; +Cc: kuba, netdev, linux-kernel, linux-nfc, bongsu.jeon
From: Bongsu Jeon <bongsu.jeon2@gmail.com>
Date: Mon, 28 Dec 2020 10:46:31 +0900
> From: Bongsu Jeon <bongsu.jeon@samsung.com>
>
> Change the NCI close sequence because the NCI Command timer should be
> deleted after flushing the NCI command work queue.
>
> Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
Applied.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-01-06 0:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 1:46 [PATCH net-next] net: nfc: nci: Change the NCI close sequence Bongsu Jeon
2020-12-28 1:46 ` Bongsu Jeon
2020-12-28 1:46 ` [linux-nfc] " Bongsu Jeon
2020-12-28 21:21 ` Jakub Kicinski
2021-01-06 0:07 ` David Miller
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.