[PATCH 5.5 395/399] mlxsw: core: Add validation of hardware device types for MGPIR register