Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-27 Thread Florian Fainelli
On 6/26/19 10:09 AM, Sudeep Holla wrote: > On Wed, Jun 26, 2019 at 09:44:06AM -0700, Florian Fainelli wrote: >> On 6/26/19 6:31 AM, Peng Fan wrote: > The firmware driver might not have func-id, such as SCMI/SCPI. > So add an optional func-id to let smc mailbox driver could > use smc

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-27 Thread Sudeep Holla
On Thu, Jun 27, 2019 at 10:32:27AM -0500, Jassi Brar wrote: > On Thu, Jun 27, 2019 at 4:09 AM Sudeep Holla wrote: > > > > On Wed, Jun 26, 2019 at 01:27:41PM -0500, Jassi Brar wrote: > > > On Wed, Jun 26, 2019 at 11:44 AM Florian Fainelli > > > wrote: > > > > > > > > On 6/26/19 6:31 AM, Peng Fan

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-27 Thread Jassi Brar
On Thu, Jun 27, 2019 at 4:09 AM Sudeep Holla wrote: > > On Wed, Jun 26, 2019 at 01:27:41PM -0500, Jassi Brar wrote: > > On Wed, Jun 26, 2019 at 11:44 AM Florian Fainelli > > wrote: > > > > > > On 6/26/19 6:31 AM, Peng Fan wrote: > > > >>> The firmware driver might not have func-id, such as

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-27 Thread Sudeep Holla
On Wed, Jun 26, 2019 at 01:27:41PM -0500, Jassi Brar wrote: > On Wed, Jun 26, 2019 at 11:44 AM Florian Fainelli > wrote: > > > > On 6/26/19 6:31 AM, Peng Fan wrote: > > >>> The firmware driver might not have func-id, such as SCMI/SCPI. > > >>> So add an optional func-id to let smc mailbox driver

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Jassi Brar
On Wed, Jun 26, 2019 at 11:44 AM Florian Fainelli wrote: > > On 6/26/19 6:31 AM, Peng Fan wrote: > >>> The firmware driver might not have func-id, such as SCMI/SCPI. > >>> So add an optional func-id to let smc mailbox driver could > >>> use smc SiP func id. > >>> > >> There is no end to

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Sudeep Holla
On Wed, Jun 26, 2019 at 09:44:06AM -0700, Florian Fainelli wrote: > On 6/26/19 6:31 AM, Peng Fan wrote: > >>> The firmware driver might not have func-id, such as SCMI/SCPI. > >>> So add an optional func-id to let smc mailbox driver could > >>> use smc SiP func id. > >>> > >> There is no end to

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Florian Fainelli
On 6/26/19 10:05 AM, André Przywara wrote: >> So I introduced interrupt in V2. In my testcase, after smc call done, >> it means firmware->smc mailbox->firmware done. Interrupt notification >> from firmware->Linux, means firmware has done the operation. >> >> When using interrupts, we could not

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread André Przywara
i ; , Sascha Hauer ; >> dl-linux-imx ; Shawn Guo ; >> feste...@gmail.com; Devicetree List ; Linux >> Kernel Mailing List ; >> linux-arm-ker...@lists.infradead.org; Andre Przywara >> ; van.free...@gmail.com >> Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM S

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Sudeep Holla
On Wed, Jun 26, 2019 at 01:31:15PM +, Peng Fan wrote: > > Hi All, > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Tue, Jun 25, 2019 at 2:30 AM Peng Fan wrote: > > > > > > Hi Jassi > > > > >

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Florian Fainelli
On 6/26/19 6:31 AM, Peng Fan wrote: >>> The firmware driver might not have func-id, such as SCMI/SCPI. >>> So add an optional func-id to let smc mailbox driver could >>> use smc SiP func id. >>> >> There is no end to conforming to protocols. Controller drivers should >> be written having no

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Jassi Brar
On Wed, Jun 26, 2019 at 8:31 AM Peng Fan wrote: > > > Hi All, > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Tue, Jun 25, 2019 at 2:30 AM Peng Fan wrote: > > > > > > Hi Jassi > > > > > > >

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-26 Thread Peng Fan
Hi All, > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On Tue, Jun 25, 2019 at 2:30 AM Peng Fan wrote: > > > > Hi Jassi > > > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > >

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-25 Thread Jassi Brar
On Tue, Jun 25, 2019 at 2:30 AM Peng Fan wrote: > > Hi Jassi > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Mon, Jun 3, 2019 at 3:28 AM wrote: > > > > > > From: Peng Fan > > > > > > Thi

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-25 Thread Peng Fan
Hi Jassi > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On Mon, Jun 3, 2019 at 3:28 AM wrote: > > > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted > > data via an ARM smc (secure

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-25 Thread Peng Fan
Hi Sudeep, > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On Thu, Jun 20, 2019 at 10:21:09AM +, Peng Fan wrote: > > Hi Sudeep, > > > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > > >

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-25 Thread Peng Fan
om; Devicetree List ; Linux > Kernel Mailing List ; > linux-arm-ker...@lists.infradead.org; Andre Przywara > ; van.free...@gmail.com > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On Mon, Jun 3, 2019 at 3:28 AM wrote: > > > > From: Peng Fa

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-20 Thread Jassi Brar
On Mon, Jun 3, 2019 at 3:28 AM wrote: > > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data when it > returns execution

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-20 Thread Sudeep Holla
On Thu, Jun 20, 2019 at 10:21:09AM +, Peng Fan wrote: > Hi Sudeep, > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Mon, Jun 03, 2019 at 04:30:05PM +0800, peng@nxp.com wrote: > > > From: Peng Fan > > > >

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-20 Thread Peng Fan
Hi Sudeep, > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On Mon, Jun 03, 2019 at 04:30:05PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted > > data vi

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-20 Thread Sudeep Holla
On Mon, Jun 03, 2019 at 04:30:05PM +0800, peng@nxp.com wrote: > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-12 Thread Andre Przywara
On Wed, 12 Jun 2019 12:59:04 + Peng Fan wrote: Hi, > > Subject: RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > Hi Andre, > > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > > > On Mon, 3 J

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-12 Thread Peng Fan
Hi Andre, > Subject: RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > Hi Andre, > > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > > > On Mon, 3 Jun 2019 09:32:42 -0700 > > Florian Fainelli wrote: > > > > Hi,

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-10 Thread Andre Przywara
On Mon, 10 Jun 2019 01:32:49 + Peng Fan wrote: Hi Peng, [ ... ] > > > > + > > > > + irq_count = platform_irq_count(pdev); > > > > + if (irq_count == -EPROBE_DEFER) > > > > + return irq_count; > > > > + > > > > + if (irq_count && irq_count != val) { > > > > +

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-09 Thread Peng Fan
Hi Andre, > Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On Mon, 3 Jun 2019 09:32:42 -0700 > Florian Fainelli wrote: > > Hi, > > > On 6/3/19 1:30 AM, peng@nxp.com wrote: > > > From: Peng Fan > > > > > >

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-06 Thread Andre Przywara
On Mon, 3 Jun 2019 09:32:42 -0700 Florian Fainelli wrote: Hi, > On 6/3/19 1:30 AM, peng@nxp.com wrote: > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted data > > via an ARM smc (secure monitor call) instruction. The mailbox receiver > > is

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-05 Thread Peng Fan
> Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On 6/3/19 1:30 AM, peng@nxp.com wrote: > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted > > data via an ARM smc (secure monitor call) inst

Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-03 Thread Florian Fainelli
On 6/3/19 1:30 AM, peng@nxp.com wrote: > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data when it > returns