[RFC PATCH 2/5] drivers/base: add a function to test peer to peer capability