From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78E5EC433F5 for ; Fri, 1 Oct 2021 22:39:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E680610FB for ; Fri, 1 Oct 2021 22:39:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbhJAWl1 (ORCPT ); Fri, 1 Oct 2021 18:41:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:57724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbhJAWl0 (ORCPT ); Fri, 1 Oct 2021 18:41:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 49DC461AA4; Fri, 1 Oct 2021 22:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633127981; bh=/ZNVHBu+J2y22coskZNSiZzF8cLnz6K3RaXpYGYiJ3o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YVaFgnEY9SZbIq036x+hMolbzO81x5dRGapc2Ez6gp162tFdR140CTflnuAwmkBjk ZC78dZrvQ1T1aLUzEtUcZBJo1qjLfVZ5IJgsCrZQZv3O9ZqzXQ1xU66GLmYa72qqZg wE1SfAUF0tfsr0YmQfX93llCjIpQnlUBn1c1Zsiv579gzUr/qyNRBLKqMJImY+I8Qo 3c81Mlu/uL+LYPxmVlweChNLMixWcv9AaDTJ8C0PKNdPSRvH1Jwn+/GVIqajsYGsBU F6+i8zV/Kd5VvR33SHOa2PQir/ffvbYId0I9yvfg0AKVudnaC7RmCRpBe9PIm184Xi hzxwqMcprScqg== Date: Fri, 1 Oct 2021 15:39:40 -0700 From: Jakub Kicinski To: =?UTF-8?B?xYF1a2Fzeg==?= Stelmach Cc: "David S. Miller" , Andrew Lunn , jim.cromie@gmail.com, Heiner Kallweit , Rob Herring , Kukjin Kim , Krzysztof Kozlowski , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?UTF-8?B?QmFydMWCb21pZWogxbtvbG5pZXJr?= =?UTF-8?B?aWV3aWN6?= , Marek Szyprowski Subject: Re: [PATCH net-next v16 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver Message-ID: <20211001153940.28c5d60d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210929140854.28535-4-l.stelmach@samsung.com> References: <20210929140854.28535-1-l.stelmach@samsung.com> <20210929140854.28535-4-l.stelmach@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org On Wed, 29 Sep 2021 16:08:54 +0200 =C5=81ukasz Stelmach wrote: > +static char *no_regs_list =3D "80018001,e1918001,8001a001,fc0d0000"; static const char ... > +static int > +ax88796c_close(struct net_device *ndev) > +{ > + struct ax88796c_device *ax_local =3D 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=20 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.