Thread (5 messages) 5 messages, 2 authors, 2021-10-01

Re: [PATCH net-next v16 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-10-01 22:39:45
Also in: linux-arm-kernel, linux-samsung-soc, lkml, netdev

Possibly related (same subject, not in this thread)

On Wed, 29 Sep 2021 16:08:54 +0200 Łukasz Stelmach wrote:
+static char *no_regs_list = "80018001,e1918001,8001a001,fc0d0000";
static const char ...
+static int
+ax88796c_close(struct net_device *ndev)
+{
+	struct ax88796c_device *ax_local = to_ax88796c_device(ndev);
+
+	netif_stop_queue(ndev);
This can run concurrently with the work which restarts the queue.
You should take the mutex and purge the queue here, so that there 
is no chance queue will get restarted by the work right after.
+	phy_stop(ndev->phydev);
+
+	mutex_lock(&ax_local->spi_lock);
+MODULE_AUTHOR("ASIX");
You can drop this, author should be human.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help