1. Remove the front door glass.
2. Remove the inner handle.
3. Remove the front door speaker.
4. Disconnect the power window motor connector, front door lock actuator connector, power outside mirror connector.
5. Remove the door harness from the front door unit.
6. Remove the bolts.

7. Remove the screw.
8. Remove the front door actuator hook from the front door unit.
9. Pull the front door unit slightly towards you, and while keeping the power window regulator from catching on the door, remove the door unit from the door.
10. Pull out the inner handle cable and door lock knob cable from the hole.
11. Remove the power window motor and power window regulator from the door unit.

12. Install in the reverse order of removal.
Rear door glass removal/installation
Rear door unit removal/installationMazda 6 Service Manual: Oil pressure switch removal/installation
Warning
When the transaxle and ATF are hot, they can badly burn. Turn off
the engine and wait untill they are cool before replacing ATF.
1. Disconnect the negative battery cable.
2. Remove the under cover.
3. Disconnect the cord assembly connector.
4. Remove the oil pressure switch.
...
Mazda 6 Service Manual: High Beam Control System (HBC) (Some models)
The High Beam Control System (HBC) determines the conditions in front of the
vehicle using the Forward Sensing Camera (FSC) while driving in darkness to automatically
switch the headlights between high and low beams.
Refer to Warning/Indicator Lights.
While driving the vehicle at a speed of ab ...