Take the appropriate action and verify that the warning light turns off.

Taking Action
Message Indicated on DisplayMazda 6 Owners Manual: Battery Recharging
NOTE
Before performing maintenance or recharging the battery, turn off all
accessories and stop the engine.
To disconnect the battery, remove the negative cable first. Install it
last when connecting the battery.
Be sure to remove the caps before recharging the battery.
I ...
Mazda 6 Owners Manual: Transaxle range (tr) switch removal/installation
1. Disconnect the negative battery cable.
2. Remove the air cleaner component. (See INTAKE-AIR SYSTEM
REMOVAL/INSTALLATION.)
Caution
Water or foreign objects entering the connector can cause a poor
connection or corrosion. Be sure not to drop water or foreign objects on the
connector w ...