Re: [PATCH V5 3/6] slimbus: Add messaging APIs to slimbus framework

2016-04-28 Thread Arnd Bergmann
On Wednesday 27 April 2016 17:58:06 Sagar Dharia wrote: > + ctrl->tx.base = dma_alloc_coherent(ctrl->dev.parent, > +(ctrl->tx.sl_sz * ctrl->tx.n), > +>tx.phy, GFP_KERNEL); > + if (!ctrl->tx.base) { > +

Re: [PATCH V5 3/6] slimbus: Add messaging APIs to slimbus framework

2016-04-28 Thread Arnd Bergmann
On Wednesday 27 April 2016 17:58:06 Sagar Dharia wrote: > + ctrl->tx.base = dma_alloc_coherent(ctrl->dev.parent, > +(ctrl->tx.sl_sz * ctrl->tx.n), > +>tx.phy, GFP_KERNEL); > + if (!ctrl->tx.base) { > +

[PATCH V5 3/6] slimbus: Add messaging APIs to slimbus framework

2016-04-27 Thread Sagar Dharia
Slimbus devices use value-element, and information elements to control device parameters (e.g. value element is used to represent gain for codec, information element is used to represent interrupt status for codec when codec interrupt fires). Messaging APIs are used to set/get these value and

[PATCH V5 3/6] slimbus: Add messaging APIs to slimbus framework

2016-04-27 Thread Sagar Dharia
Slimbus devices use value-element, and information elements to control device parameters (e.g. value element is used to represent gain for codec, information element is used to represent interrupt status for codec when codec interrupt fires). Messaging APIs are used to set/get these value and