sh-pfc: Return an error if a pin doesn't support the requested direction