Message ID | eabd31079152659556432fed561cd3a98300c8f5.1646816742.git.michal.simek@xilinx.com |
---|---|
State | Accepted |
Commit | e81782ab883552dd48f5109ba41327b879a92498 |
Delegated to: | Marek Vasut |
Headers | show |
Series | usb: dwc3: Enable PHY support | expand |
On Wed, Mar 9, 2022 at 5:06 PM Michal Simek <michal.simek@xilinx.com> wrote: > > Allow to disable PHY driver in SPL because it checks the CONFIG_SPL_PHY > variable for SPL builds. > > The same change was done for usb by commit fd09c205fc57 ("usb: > s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/"). > > Signed-off-by: Michal Simek <michal.simek@xilinx.com> > --- > > (no changes since v2) > > Changes in v2: > - based on bug reported by Marek > https://lore.kernel.org/all/d7adc9a4-f505-eaab-8cd9-45f778bc3b4a@denx.de/ > > include/generic-phy.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/include/generic-phy.h b/include/generic-phy.h index ff48b3708195..d40ce589b645 100644 --- a/include/generic-phy.h +++ b/include/generic-phy.h @@ -155,7 +155,7 @@ struct phy_bulk { unsigned int count; }; -#ifdef CONFIG_PHY +#if CONFIG_IS_ENABLED(PHY) /** * generic_phy_init() - initialize the PHY port
Allow to disable PHY driver in SPL because it checks the CONFIG_SPL_PHY variable for SPL builds. The same change was done for usb by commit fd09c205fc57 ("usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/"). Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- (no changes since v2) Changes in v2: - based on bug reported by Marek https://lore.kernel.org/all/d7adc9a4-f505-eaab-8cd9-45f778bc3b4a@denx.de/ include/generic-phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)