mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 22:16:48 +07:00
2ba7943af0
return -EPROBE_DEFER from dwc3_omap_mailbox in dwc3-omap.c, if the probe of dwc3-omap has not yet been executed or failed. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
31 lines
740 B
C
31 lines
740 B
C
/*
|
|
* Copyright (C) 2013 by Texas Instruments
|
|
*
|
|
* The Inventra Controller Driver for Linux is free software; you
|
|
* can redistribute it and/or modify it under the terms of the GNU
|
|
* General Public License version 2 as published by the Free Software
|
|
* Foundation.
|
|
*/
|
|
|
|
#ifndef __DWC3_OMAP_H__
|
|
#define __DWC3_OMAP_H__
|
|
|
|
enum omap_dwc3_vbus_id_status {
|
|
OMAP_DWC3_UNKNOWN = 0,
|
|
OMAP_DWC3_ID_GROUND,
|
|
OMAP_DWC3_ID_FLOAT,
|
|
OMAP_DWC3_VBUS_VALID,
|
|
OMAP_DWC3_VBUS_OFF,
|
|
};
|
|
|
|
#if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE))
|
|
extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status);
|
|
#else
|
|
static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __DWC3_OMAP_H__ */
|