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 X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27EDBC4708F for ; Fri, 4 Jun 2021 05:22:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 10BB86140F for ; Fri, 4 Jun 2021 05:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbhFDFYX (ORCPT ); Fri, 4 Jun 2021 01:24:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:38844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbhFDFYU (ORCPT ); Fri, 4 Jun 2021 01:24:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 832476140C; Fri, 4 Jun 2021 05:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622784155; bh=dwnco+4LmfdzFbjr+OlDmI30GzduFSE+Bt+qz5LGph4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UasAq3vKDX3WmCoK0XbJeTzR3spodY0lJ4Rc5o3sFA41xhlv0WIjPZFUy2p9f4AlZ sx5CGXHw2nUYAdcL0SFY+xeF/LvFdPn/scn5b/c9EtUTbfPZD768CQFJ2gaoLmcUy/ I8e+PSx8AKoujbnIm5KizfqB//EsISyFG8ODO6xPEcUAGOlCxKonjQn1xkUbfbYeZ2 YhOvtVMBflKAEpj/qXFdAyRiVriPPjHKAPipKfXws95yZ4/rEpzwNd+go/R48RO0XW /p5NlFBqj1lOpMHk476WHU8y3wq40oe0LeXhOrfGnJunsTTpLIqdO7eUTbHjxxiPV9 uUiud1vj+AwfQ== From: Felipe Balbi To: Alan Stern Cc: USB mailing list Subject: Re: [PATCH 3/4] USB: UDC: Implement udc_async_callbacks in net2280 In-Reply-To: <20210520202200.GE1216852@rowland.harvard.edu> References: <20210520202200.GE1216852@rowland.harvard.edu> Date: Fri, 04 Jun 2021 08:22:28 +0300 Message-ID: <87sg1yb3vv.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alan Stern writes: > This patch adds a udc_async_callbacks handler to the net2280 UDC > driver, which will prevent a theoretical race during gadget unbinding. > > The net2280 driver is sufficiently complicated that I didn't want to > mess around with IRQ settings. Instead, the patch simply adds a new > flag to control async callbacks, and checks the flag before issuing > any of them. > > Signed-off-by: Alan Stern Acked-by: Felipe Balbi =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFFBAEBCAAvFiEE9DumQ60WEZ09LIErzlfNM9wDzUgFAmC5uJQRHGJhbGJpQGtl cm5lbC5vcmcACgkQzlfNM9wDzUh54Qf+JnvlDRRl9jwhIszmBdBx7+Y3sYsIZjdS UFWjNXK73/V/p0P8ck5ARjOux+YCoq1Y/pmw3ySh/c/xDKqc3mbGoOlMkZUe4Jsu GHCm19RY70MdCnqyMjAe0aJQSbIcVed0kBiujr05lRqirbfRxw2OVFjv7Ysb7WRU VHBYdhQ/Pkp56Y6BOGKABG/o5zRuduZPnC0n3rWIBBSAZC6RcPQUpSXZJxTaGGeE OTTBRCr2MYYOaNcheReOu+X+cVa9yjc0oXKGviGDDjnph1NkPdKOjo7i2SiS/bWx sqJw+28X49SRj8BEId8HQR7LxawTc1eH/I4N39ylCiD/1R6n9F9RXg== =EAy1 -----END PGP SIGNATURE----- --=-=-=--