linux_usbfs: Drop support for kernel versions earlier than 2.6.32
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 27 Jan 2020 06:01:50 +0000 (22:01 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 27 Jan 2020 06:01:50 +0000 (22:01 -0800)
commitf128429320de75d0cd184acbf91d8ae8181e16d0
treeb33b76aaba1f03a23982fdfcca87b31d8bb1d228
parent80d2238cb80469aee03d0367080350496d8548eb
linux_usbfs: Drop support for kernel versions earlier than 2.6.32

The Linux backend plays lots of games to try and work with older
versions of the kernel that do not have certain features. Lets simplify
the backend by requiring at least 2.6.32 to use libusb. The only thing
remaining that still requires explicit version checking is the maximum
iso frame packet size.

Anything running 2.6.32 or later is sure to have a functional monotonic
clock, so this change also allows the removal of the get_timerfd_clock()
function from the backend as well as the check for a functional
monotonic clock during initialization.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/io.c
libusb/libusbi.h
libusb/os/linux_usbfs.c
libusb/os/linux_usbfs.h
libusb/os/sunos_usb.c
libusb/version_nano.h