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.

(cherry picked from commit b978fd7)

Original-Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
GitOrigin-RevId: b978fd7
Cr-Build-Id: 8727631094073597137
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8727631094073597137
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: I378b87cb6ca9c488bc652569aa7ef5cbbec9791e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6122608
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
  • Loading branch information
Mahesh Mahadevan authored and Chromeos LUCI committed Dec 25, 2024
1 parent a24fc18 commit 43f5266
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 43f5266

Please sign in to comment.