1. Remove the center console.
2. Shift the selector lever to P position.
3. Unlock the lock piece of the selector cable (selector lever side) in the order shown in the figure.

4. Verify that the manual shaft is in P position.
5. Lock the lock piece of the selector cable (selector lever side) in the order shown in the figure.

6. Install the center console.
7. Shift the selector lever from P position to L range, and make sure that there are no other components in that area to interfere with the lever.
Selector lever inspection
Selector lever removal/installationMazda 6 Service Manual: Direct Mode
Direct mode can be used for temporarily switching gears by operating the steering
shift switch while the vehicle is being driven with the selector lever in the D
range.
While in direct mode, the D and M indication illuminate and the gear position
in use is illuminated. Direct mode is canceled ...
Mazda 6 Service Manual: Center panel module removal/installation
1. Cancel the anti-theft operation. (with anti-theft system) (See ANTI-THEFT
SYSTEM.)
2. Disconnect the negative battery cable.
3. Remove the glove compartment.
4. Remove the rear console.
5. Remove in the order indicated in the table.
6. Install in the reverse order of removal.
Caution
...