Thread (31 messages) 31 messages, 3 authors, 2019-08-28

Re: [RESEND, PATCH v13 09/12] soc: mediatek: cmdq: define the instruction struct

From: Matthias Brugger <matthias.bgg@gmail.com>
Date: 2019-08-27 10:04:10
Also in: linux-devicetree, linux-mediatek, lkml


On 27/08/2019 06:12, Bibby Hsieh wrote:
quoted
quoted
 
 int cmdq_pkt_wfe(struct cmdq_pkt *pkt, u16 event)
 {
-	u32 arg_b;
+	struct cmdq_instruction *inst;
 
 	if (event >= CMDQ_MAX_EVENT)
 		return -EINVAL;
 
-	/*
-	 * WFE arg_b
-	 * bit 0-11: wait value
-	 * bit 15: 1 - wait, 0 - no wait
-	 * bit 16-27: update value
-	 * bit 31: 1 - update, 0 - no update
-	 */
I have no strong opinion of CMDQ_WFE_OPTION but if you want to introduce it,
then please copy the comment over to include/linux/mailbox/mtk-cmdq-mailbox.h
Ok. let's move the descriptions to header.
quoted
Just one question, why did you call it _OPTION? It's not really expressive for me.
Actually, _OPTION is come from our hardware design name...
Ok, then I'll stop bike-shedding. I leave it up to you to rename it or not.

Regards,
Matthias

_______________________________________________
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