-
Notifications
You must be signed in to change notification settings - Fork 8.1k
drivers: ethernet: eth_stm32 add tx async mode #93965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -512,7 +512,7 @@ int eth_stm32_hal_init(const struct device *dev) | |
/* Initialize semaphores */ | ||
k_mutex_init(&dev_data->tx_mutex); | ||
k_sem_init(&dev_data->rx_int_sem, 0, K_SEM_MAX_LIMIT); | ||
k_sem_init(&dev_data->tx_int_sem, 0, K_SEM_MAX_LIMIT); | ||
k_sem_init(&dev_data->tx_int_sem, 0, 1); | ||
Comment on lines
514
to
+608
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch and I think this error is widely spread in drivers. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whilst working on this PR, I hadn't paid attention to rx_int_sem. Having briefly examined its logic today, I'm not entirely certain whether counting is necessary, as it contains a loop. Testing will be required to ascertain this. |
||
|
||
/* Tx config init: */ | ||
memset(&tx_config, 0, sizeof(ETH_TxPacketConfig)); | ||
|
Uh oh!
There was an error while loading. Please reload this page.