1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Disconnect the connector.
4. Remove the screws, and then remove the sunroof motor.

Sunroof unit disassembly/assembly
Sunroof motor installationMazda 6 Service Manual: To Resume Cruising Speed at More Than 25 km/h (16 mph)
If some other method besides the OFF/ CANCEL switch was used to cancel cruising
speed (such as applying the brake pedal) and the system is still activated, the
most recent set speed will automatically resume when the RESUME/
switch is pressed.
If vehicle speed is below 25 km/h (16 mph), incre ...
Mazda 6 Service Manual: Outside Mirrors
WARNING
Be sure to look over your shoulder before changing lanes: Changing
lanes without taking into account the actual distance of the vehicle in the convex
mirror is dangerous. You could have a serious accident. What you see in the convex
mirror is closer than it appears.
Mirror type
Flat ...