Thread (19 messages) 19 messages, 3 authors, 2021-02-10

RE: [EXT] Re: [PATCH v11 net-next 15/15] net: mvpp2: add TX FC firmware check

From: Stefan Chulski <hidden>
Date: 2021-02-10 09:14:48
Also in: linux-devicetree, lkml, netdev

quoted
 	if (priv->global_tx_fc && priv->hw_version != MVPP21) {
-		val = mvpp2_cm3_read(priv, MSS_FC_COM_REG);
-		val |= FLOW_CONTROL_ENABLE_BIT;
-		mvpp2_cm3_write(priv, MSS_FC_COM_REG, val);
+		err = mvpp2_enable_global_fc(priv);
+		if (err) {
+			dev_warn(&pdev->dev, "CM3 firmware not running,
version should be higher than 18.09 ");
quoted
+			dev_warn(&pdev->dev, "and chip revision B0\n");
+			dev_warn(&pdev->dev, "Flow control not
supported\n");

I would much rather this was:

			dev_warn(&pdev->dev, "Minimum of CM3 firmware
18.09 and chip revision B0 required for flow control\n");

rather than trying to split it across several kernel messages.
I would repots v12 with this change soon.

Thanks,
Stefan.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help