1. Connect WDS or equivalent to the vehicle DLC-2 16-pin connector located as shown in the figure.

2. Perform KOEO/KOER self-test.
After repair procedureMazda 6 Service Manual: Camshaft position (cmp) sensor inspection
Caution
When foreign material such as an iron chip is on the CMP sensor,
it can cause abnormal output from the sensor because of flux turbulence and
adversely affect the engine control. Be sure there is no foreign material on
the CMP sensor when replacing.
Note
Perform the follow ...
Mazda 6 Service Manual: Air intake actuator inspection
1. Connect battery positive voltage to terminal D or F and ground to terminal
F or D of the air intake actuator.
2. Verify that the air intake actuator operates as shown below.
If not as specified, replace the air intake actuator.
...