Re: [PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-10-01 Thread Amit Shah
On (Tue) 25 Sep 2012 [15:47:16], sjur.brandel...@stericsson.com wrote: > +static DEFINE_SPINLOCK(dma_bufs_lock); > +static LIST_HEAD(pending_free_dma_bufs); > + > static void free_buf(struct port_buffer *buf) > { > int i; > + unsigned long flags; > > - kfree(buf->buf); > +

Re: [PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-10-01 Thread Amit Shah
On (Tue) 25 Sep 2012 [15:47:16], sjur.brandel...@stericsson.com wrote: +static DEFINE_SPINLOCK(dma_bufs_lock); +static LIST_HEAD(pending_free_dma_bufs); + static void free_buf(struct port_buffer *buf) { int i; + unsigned long flags; - kfree(buf-buf); + if

Re: [PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-09-26 Thread Rusty Russell
sjur.brandel...@stericsson.com writes: > From: Sjur Brændeland > > Add a simple serial connection driver called > VIRTIO_ID_RPROC_SERIAL (11) for communicating with a > remote processor in an asymmetric multi-processing > configuration. > ... > static struct port_buffer *alloc_buf(struct

Re: [PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-09-26 Thread Rusty Russell
sjur.brandel...@stericsson.com writes: From: Sjur Brændeland sjur.brandel...@stericsson.com Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. ... static struct port_buffer

[PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-09-25 Thread sjur . brandeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-09-25 Thread sjur . brandeland
From: Sjur Brændeland sjur.brandel...@stericsson.com Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds