1. Disconnect the negative battery cable.
2. Remove the under cover.
3. Remove the control valve body. (See CONTROL VALVE BODY REMOVAL.)
4. Remove the solenoid valve(s).

5. Apply ATF to a new O-ring and install it on the solenoid valve.
6. Install the solenoid valve in the control valve body.
Tightening torque 7.8-10.8 N·m
{80-110 kgf·cm, 70-95.4 in·lbf}

7. Install the control valve body. (See CONTROL VALVE BODY REMOVAL.)
8. Install the under cover.
9. Connect the negative battery cable.
10. Add ATF and, with the engine idling, inspect the ATF level and inspect for leakage. (See Automatic Transaxle Fluid (ATF) Level Inspection.)
11. Carry out the mechanical system test. (See MECHANICAL SYSTEM TEST.)
12. Carry out the road test. (See ROAD TEST.)
Solenoid valve inspection
Pcm inspectionMazda 6 Service Manual: Cooling (With air conditioner)
1. Set the mode selector dial to the
position.
2. Set the temperature control dial to the cold position.
3. Set the fan control dial to the desired speed.
4. Turn on the air conditioner by pressing the A/C switch.
5. After cooling begins, adjust the fan control dial and temperature control
d ...
Mazda 6 Service Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...