From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudeep Holla Subject: Re: [PATCHv8 2/2] mailbox: Introduce framework for mailbox Date: Wed, 16 Jul 2014 14:29:56 +0100 Message-ID: <53C67E54.2010104@arm.com> References: <1405071167-14503-1-git-send-email-jaswinder.singh@linaro.org> <5340858.B9CZUE8s0j@wuerfel> <53C65F22.20101@arm.com> <5773443.uubaG3Evxs@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <5773443.uubaG3Evxs@wuerfel> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arnd Bergmann Cc: Sudeep Holla , Jassi Brar , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "ks.giri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org" , "ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org" , Mark Rutland , "robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" , Pawel Moll , "courtney.cavin-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org" , "mporter-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" , "slapdau-/E1597aS9LT0CCvOHzKKcA@public.gmane.org" , "lftan.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , "loic.pallardy-qxv4g6HH51o@public.gmane.org" , "s-anna-l0cyMroinI0@public.gmane.org" , "ashwin.chaugule-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" , "bjorn-UYDU3/A3LUY@public.gmane.org" , "patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" , "Mollie.Wu-l16TxrwUIHTQFUHtdCDX3A@public.gmane.org" List-Id: devicetree@vger.kernel.org On 16/07/14 12:32, Arnd Bergmann wrote: > On Wednesday 16 July 2014 12:16:50 Sudeep Holla wrote: >> >> Agreed if these mbox-names are more specific to attached devices and that >> was my initial understanding too. But I got confused when I saw something >> like below in the patch[1] >> >> + mhu: mhu0@2b1f0000 { >> + #mbox-cells = <1>; >> + compatible = "fujitsu,mhu"; >> + reg = <0 0x2B1F0000 0x1000>; >> + interrupts = <0 36 4>, /* LP Non-Sec */ >> + <0 35 4>, /* HP Non-Sec */ >> + <0 37 4>; /* Secure */ >> + }; >> + >> + mhu_client: scb@0 { >> + compatible = "fujitsu,scb"; >> + mbox = <&mhu 1>; >> + mbox-names = "HP_NonSec"; >> + }; >> >> Here the name used is more controller specific. > > The name is definitely specific to the client, not the master. The IIUC this controller has 3 channels: Secure, High and Low Priority Non Secure. I assumed the name is derived from that rather than what the client is using it for, hence the confusion. That might be fine but I am more interested what will be the name if another client uses the same channel in the above example. Regards, Sudeep > string "HP_NonSec" should be required in the binding for the "fujitsu,scb" > device here, and the scb driver should pass that hardcoded string > to the mailbox API to ask for a channel. > > Arnd > > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html