meta-bletchley: mdio-util: fix c22 write syntax error
fix syntax error in c22 write command
Tested:
- Get switch PHY id by read/write SMI register
root@bletchley:~# mdio-util c22 w 0 0x1c 0x19 0x0000
root@bletchley:~# mdio-util c22 w 0 0x1c 0x18 0x9434
root@bletchley:~# mdio-util c22 w 0 0x1c 0x18 0x9822
root@bletchley:~# mdio-util c22 r 0 0x1c 0x19
0x002b
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie65a84c4485beb7f7600b36009027637c5fc7ed1
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/mdio-util/files/mdio-util b/meta-facebook/meta-bletchley/recipes-bletchley/mdio-util/files/mdio-util
index 5a5ff63..fea885d 100644
--- a/meta-facebook/meta-bletchley/recipes-bletchley/mdio-util/files/mdio-util
+++ b/meta-facebook/meta-bletchley/recipes-bletchley/mdio-util/files/mdio-util
@@ -196,7 +196,7 @@
elif [ "$CLAUSE_VER" == "c22" ] && [ "$CMD_TYPE" == "w" ] && [ "$#" -eq 6 ]; then
REG_ADDR=${5}
DATA=${6}
- aspeed_mdio_c22_write "$BUS" "$PHY_ADDR $REG_ADDR $DATA" || exit 1
+ aspeed_mdio_c22_write "$BUS" "$PHY_ADDR" "$REG_ADDR" "$DATA" || exit 1
elif [ "$CLAUSE_VER" == "c45" ] && [ "$CMD_TYPE" == "r" ] && [ "$#" -eq 6 ]; then
DEV_ADDR=${5}
REG_ADDR=${6}