[+cc Gustavo for fallthrough annotation]
@@ -301,6 +312,7 @@ static void imx6_pcie_assert_core_reset(struct imx6_pcie *imx6_pcie)
switch (imx6_pcie->variant) {
case IMX7D:
+ case IMX8MQ: /* FALLTHROUGH */
reset_control_assert(imx6_pcie->pciephy_reset);
reset_control_assert(imx6_pcie->apps_reset);
break;
I'm not an expert on fallthrough annotation (Gustavo, cc'd, is), but
this looks wrong. It's the IMX7D case that falls through, not the
IMX8MQ case.
The recent annotations added by Gustavo are at the point where the
"break" would normally be, e.g.,
case IMX7D:
/* fall through */ <--- annotation
case IMX8MQ:
<code>
break;
But in this case there's actually no IMX7D-specific *code* there, so I
suspect the annotation is unnecessary. It's obvious that IMX7D and
IMX8MQ are handled the same, so there's really no opportunity for the
"forgotten break" mistake -Wimplicit-fallthrough is trying to find.
If we *do* want this annotation, we should spell it the same as
Gustavo has been, i.e., "fall through".