Diagnostic procedure
Mazda 6 Service Manual: Locking, Unlocking with Auxiliary Key
Turn the auxiliary key toward the front to lock, toward the back to unlock.
To lock
All doors lock automatically when the driver's door is locked using the auxiliary
key.
To unlock
The driver’s door unlocks when the auxiliary key is turned briefly to the unlock
position and then immediatel ...
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.
...