diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-05-12 06:43:30 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-05-12 19:27:22 +0300 |
commit | c7fec31f856bdfca93b816727282101facd8061a (patch) | |
tree | 15dcf4409abdeaa4cd1ab39b470f0af4afe009b7 | |
parent | 5eed014352137667c650f323b4e173bf3e530f2e (diff) | |
download | openbmc-c7fec31f856bdfca93b816727282101facd8061a.tar.xz |
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
-rw-r--r-- | meta-facebook/meta-bletchley/recipes-bletchley/mdio-util/files/mdio-util | 2 |
1 files changed, 1 insertions, 1 deletions
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 5a5ff633a9..fea885da7f 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 @@ if [ "$CLAUSE_VER" == "c22" ] && [ "$CMD_TYPE" == "r" ] && [ "$#" -eq 5 ]; then 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} |