Can you please explain, what does 'disabling the MQX command of a one port' mean?
You want GPIO driver not to control some port? If this is the case, then the answer is: forget about that, modifying pin_map structure is prohibited and can lead to unexpected results.