1. Disconnect the negative battery cable.
2. Disconnect the brake switch connector harness.
3. Inspect for continuity between the brake switch connector terminals.


Brake pedal inspection
Brake pedal removal/installationMazda 6 Service Manual: Technical data
ENGINE
LUBRICATION SYSTEM
Note
The maintenance intervals on scheduled maintenance table (See
SCHEDULED MAINTENANCE TABLE) can only be supported by the use of following
oils.
Recommended engine oil
COOLING SYSTEM
FUEL AND EMISSION CONTROL SYSTEMS
ENGINE ELECTRICAL SYSTEM
...
Mazda 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.
...