Diagnostic Procedure
Mazda 6 Service Manual: Front buckle removal/installation
1. Perform the following procedure for vehicles with seat belt warning.
(1) Disconnect the negative battery cable.
(2) Remove the front seat.
(3) Disconnect the buckle switch connector.
2. Perform the following procedure for vehicles without seat belt warning.
(1) Remove the console.
...
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.
...