|
@@ -19,6 +19,7 @@
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
|
|
|
|
+#include <linux/version.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/slab.h>
|
|
@@ -384,6 +385,12 @@ static int dwc3_core_init(struct dwc3 *dwc)
|
|
|
}
|
|
|
dwc->revision = reg;
|
|
|
|
|
|
+ /*
|
|
|
+ * Write Linux Version Code to our GUID register so it's easy to figure
|
|
|
+ * out which kernel version a bug was found.
|
|
|
+ */
|
|
|
+ dwc3_writel(dwc->regs, DWC3_GUID, LINUX_VERSION_CODE);
|
|
|
+
|
|
|
/* Handle USB2.0-only core configuration */
|
|
|
if (DWC3_GHWPARAMS3_SSPHY_IFC(dwc->hwparams.hwparams3) ==
|
|
|
DWC3_GHWPARAMS3_SSPHY_IFC_DIS) {
|