1. Remove the clamps and vacuum hose.
2. Apply both suction and pressure to the engine-side hose, and verify that air blows only toward that side.

Air bleeding
Brake pedal inspectionMazda 6 Service Manual: System wiring diagram
ABS (ABS/TCS)
DSC
FOREWORD
Before performing the steps in Symptom Troubleshooting, perform the
On-board Diagnostic Inspection. To check the DTC, follow the DTC Inspection
steps.
...
Mazda 6 Service Manual: Power Moonroof Reset Procedure
If the battery is disconnected, the moonroof will not operate. The moonroof will
not operate correctly until it is reset.
Carry out the following procedure to reset the moonroof and resume operation:
1. Switch the ignition ON.
2. Press the tilt switch, to partially tilt open the rear of the moo ...