From nobody Wed Apr 20 16:34:48 2022 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E431F11D8DF1 for ; Wed, 20 Apr 2022 16:35:22 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kk5r96Wc0z4XJw for ; Wed, 20 Apr 2022 16:35:21 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E1E0B5C0132; Wed, 20 Apr 2022 12:35:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 20 Apr 2022 12:35:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1650472515; x= 1650558915; bh=0aF4SIxYJAPvY2JYorh5nqAblFtWpcY31FTwWBoM6fw=; b=W efkyFT+egz+Tz/458qXykUHDMxeHFKd0oQd17jIYo9N5my3+lZ/bbIrl8cjcTE0Z fylwv+iCp0+jzoR7BDc1q1j57fdbnW2KHuHb4QDcuKgEmbh98iKUWJhMzjUU8bvL L1ggItyRo7Z0D2O6/HbIhUmlKgbuMEL18gjcWjFrMe4s2XbS2qAm7islMNg8zO/i DscEDd7nRZBon2gkdtWW9sU7/GUa1HWIJAXrBDn8fIhqkTpwQNweMmWWjTkrugvE bFZjlR2wu7iLhPfeteda65lwSvlm3TnB9EnjCbRxzd6E52Pi3ttkNe0dv+Nsc6N6 Q95nKG/ObyoklQQsaH7aA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1650472515; x=1650558915; bh=0aF4SIxYJAPvY2JYorh5nqAblFtW pcY31FTwWBoM6fw=; b=IdZGMKWWlHoOuDM+vKKiSu9Xk6i/DttzWpTA/7ugtisD 4xMvvAcscQ76g+UBLyyEkkuHFx5T7nzbNf/o2qGeAvT4aBkAwgYz2mIFX/HBUKmg IdMXa/2GdxcjtXxW6B+umuKRfuTI1XJ2LlLF/RyEwdacV2cSYl3/RrTu68Tf/Sk/ 8jWh4gCuiWNB95RgoXXwlD3jPZKJC1F+KcqS3AXwMJ+VLfqzKMd0fgt53yY12nNt cPg7mq0nHAGEgRo9l1VyPUaW2N/Jh7gBJfSoLm9ybPfN9Q7xcjI5VTNOKS4Un9vQ uvZ8h5wLrATMXcmKa0HzpxUGoDLNeHpqDoHBpmW8Xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrtddtgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkffuhffvffgjfhgtfggggfesthejre dttderjeenucfhrhhomhephfgrrhhhrghnucfmhhgrnhcuoehfrghrhhgrnhesfhgrrhhh rghnrdgtohguvghsqeenucggtffrrghtthgvrhhnpeeujeejvdffhfeutdekkeejuefgge fgvdejkeekgfffkeetgeelgeeuudelheegffenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehfrghrhhgrnhesfhgrrhhhrghnrdgtohguvghs X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Apr 2022 12:35:15 -0400 (EDT) Message-ID: <007551144c601a21e2ec8133a8359323de29725f.camel@farhan.codes> Subject: Re: Trouble loading firmware to USB device From: Farhan Khan To: Hans Petter Selasky , freebsd-usb@freebsd.org Date: Wed, 20 Apr 2022 12:34:48 -0400 In-Reply-To: References: <9315bf6d-b9a9-89a2-9a32-aca9fd9cc015@farhan.codes> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Kk5r96Wc0z4XJw X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm2 header.b="W efkyFT"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=IdZGMKWW; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 66.111.4.25 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-4.57 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm2,messagingengine.com:s=fm1]; NEURAL_HAM_MEDIUM(-0.97)[-0.970]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.25]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[farhan.codes]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.25:from]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-usb]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.25:from] X-ThisMailContainsUnwantedMimeParts: N On Tue, 2022-04-19 at 09:01 +0200, Hans Petter Selasky wrote: > On 4/19/22 05:51, Farhan Khan wrote: > > Thank you! I made the changes, but the problem remains, namely the > > athn_usb_intr INTR RX callback is never called. > > Did you start/reststart this USB transfer? > > --HPS No. How and where would that be done, if the primary thread you are on is sleeping via msleep()? Do you have an example of this? I was looking at the code of otus(4)? On a side note, it seems that my initial usbd_transfer_start() to wakeup the Rx Intr pipe seems to run the USB_ST_SETUP, which completes successfully, but there is no associated USB_ST_TRANSFERRED. Not sure if this is relevant? - Farhan