Skip to content

Commit

Permalink
drivers: usb: Fix pointer reference in the NXP drivers
Browse files Browse the repository at this point in the history
The address passed in to the function was incorrect causing
failures when porting to RT1180.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
  • Loading branch information
mmahadevan108 authored and kartben committed Dec 24, 2024
1 parent 18c2ea2 commit b978fd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/udc/udc_mcux_ehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,7 @@ static int udc_mcux_init(const struct device *dev)

#ifdef CONFIG_DT_HAS_NXP_USBPHY_ENABLED
if (config->phy_config != NULL) {
USB_EhciPhyInit(priv->controller_id, 0u,
(usb_phy_config_struct_t *)&config->phy_config);
USB_EhciPhyInit(priv->controller_id, 0u, config->phy_config);
}
#endif

Expand Down
3 changes: 1 addition & 2 deletions drivers/usb/udc/udc_mcux_ip3511.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,7 @@ static int udc_mcux_init(const struct device *dev)

#ifdef CONFIG_DT_HAS_NXP_USBPHY_ENABLED
if (config->phy_config != NULL) {
USB_EhciPhyInit(priv->controller_id, 0u,
(usb_phy_config_struct_t *)&config->phy_config);
USB_EhciPhyInit(priv->controller_id, 0u, config->phy_config);
}
#endif

Expand Down

0 comments on commit b978fd7

Please sign in to comment.