OSDN Git Service

usb: dwc3: core: write LINUX_VERSION_CODE to our GUID register
authorFelipe Balbi <balbi@ti.com>
Fri, 19 Sep 2014 20:51:11 +0000 (15:51 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:00:53 +0000 (10:00 -0600)
commitfa0ea13e9f1c2b4707879ca3dbe4cf29c741857a
tree75decc8507dfebe8de79ca7d8893ef877a9d1f81
parent0df1f2487d2f0d04703f142813d53615d62a1da4
usb: dwc3: core: write LINUX_VERSION_CODE to our GUID register

DWC3's GUID register is supposed to be used to write
any sort of version we might want. It helps when getting
bug reports for platforms you don't have HW to know
which kernel version of the driver was running on the
platform.

Because we don't really track driver version, but we _do_
track the kernel version, let's write LINUX_VERSION_CODE to
that register and use it for debugging.

Reviewed-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c