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: Dual proportioning valve replacement (without abs)
1. Remove in the order indicated in the table.
2. Install in the reverse order of removal.
Dual Proportioning Valve Installation Note
Install the dual proportioning valve so that the R mark faces the left side
of the vehicle.
...
Mazda 6 Service Manual: Gate operator/Canadian Programming
Canadian radio-frequency laws require transmitter signals to “time-out” (or quit)
after several seconds of transmission — which may not be long enough for HomeLink
to pick up the signal during programming. Similar to this Canadian law, some U.S.
gate operators are designed to “time-out ...