Add support for the multiport feature and fix hot plug races

MFC after:	1 month