Skip to content

Commit 8346e45

Browse files
author
Josuah Demangeon
committed
remove port mutex until it is effectively used
Signed-off-by: Josuah Demangeon <[email protected]>
1 parent 859a33f commit 8346e45

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/usb/uhc/uhc_dwc2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ struct uhc_dwc2_chan {
171171
struct uhc_dwc2_data {
172172
struct k_sem irq_sem;
173173
struct k_thread thread;
174-
/* Mutex for port access */
175-
struct k_mutex mutex;
176174
/* Main events the driver thread waits for */
177175
struct k_event event;
178176
struct uhc_dwc2_chan chan[UHC_DWC2_MAX_CHAN];
@@ -1699,7 +1697,6 @@ static int uhc_dwc2_preinit(const struct device *dev)
16991697
/* Initialize the private data structure */
17001698
memset(priv, 0, sizeof(struct uhc_dwc2_data));
17011699
k_mutex_init(&data->mutex);
1702-
k_mutex_init(&priv->mutex);
17031700
k_event_init(&priv->event);
17041701

17051702
/* TODO: Overwrite the DWC2 register values with the devicetree values? */

0 commit comments

Comments
 (0)