soc: mediatek: cmdq: fixup wrong input order of write api
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Wed, 27 Nov 2019 16:54:28 +0000 (17:54 +0100)
committerOlof Johansson <olof@lixom.net>
Thu, 5 Dec 2019 18:10:58 +0000 (10:10 -0800)
Fixup a issue was caused by the previous fixup patch.

Fixes: 1a92f989126e ("soc: mediatek: cmdq: reorder the parameter")
Link: https://lore.kernel.org/r/20191127165428.19662-1-matthias.bgg@gmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/soc/mediatek/mtk-cmdq-helper.c

index 7aa0517ff2f3057eb0324b2bbfd08127f1682ad4..3c82de5f9417bc940339b65cea033e31d69ef810 100644 (file)
@@ -155,7 +155,7 @@ int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
                err = cmdq_pkt_append_command(pkt, CMDQ_CODE_MASK, 0, ~mask);
                offset_mask |= CMDQ_WRITE_ENABLE_MASK;
        }
-       err |= cmdq_pkt_write(pkt, value, subsys, offset_mask);
+       err |= cmdq_pkt_write(pkt, subsys, offset_mask, value);
 
        return err;
 }