copied just the PTP driver code from msli-a-2013-ptp-fixes branch