Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/drivers/pci/endpoint/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ rt_err_t rt_pci_ep_set_msi(struct rt_pci_ep *ep, rt_uint8_t func_no,

if (ep && ep->ops && func_no < ep->max_functions)
{
if (ep->ops->set_msix)
if (ep->ops->set_msi)
{
err = -RT_EINVAL;

Expand All @@ -193,6 +193,7 @@ rt_err_t rt_pci_ep_set_msi(struct rt_pci_ep *ep, rt_uint8_t func_no,
rt_mutex_take(&ep->lock, RT_WAITING_FOREVER);
err = ep->ops->set_msi(ep, func_no, log2);
rt_mutex_release(&ep->lock);
break;
}
}
}
Expand Down
Loading