Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Mar 2022 23:39:01 +0000
From:      Farhan Khan <farhan@farhan.codes>
To:        Daniel O'Connor <darius@dons.net.au>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Understanding USB callback + assertion panic
Message-ID:  <1646869058201.32255222.1343660178@farhan.codes>
In-Reply-To: <7abd641a74526552a8cc1692f7453cb3c1279034.camel@farhan.codes>
References:  <7abd641a74526552a8cc1692f7453cb3c1279034.camel@farhan.codes>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 09 March 2022 16:42:58 PM (-05:00), Farhan Khan wrote:

 > ---------
 > error = usbd_transfer_setup(uaa->device, &iface_index, usc->usc_xfer,
 > athn_config_common, ATHN_N_TRANSFERS, usc, &sc->sc_mtx);
 > ATHN_LOCK(sc);
 > usbd_transfer_start(usc->usc_xfer[ATHN_BULK_TX_DATA]);
 > ATHN_UNLOCK(sc);
 > ---------
 >
 > Considering this is quite similar to how other drivers do this, what
 > might I be doing wrong?
 >

The mistake was on my end! My ATHN_LOCK code was incorrect and was not 
actually locking the mutex. The issue was resolved and it works.
Thank you! I'm learning and making a lot of mistakes along the way.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1646869058201.32255222.1343660178>