[linux] (re)add topology-analysis code to Linux backend
[linux] (re)add topology-analysis code to Linux backend

* this is a restore of previous commit which was reverted
  when merging with master

pbatard/libusb-pbatard,pbatard/libusb-pbatard