On Sunday 22 November 2009, Albert Herranz wrote:
> + *
> + */
> +struct mipc_device {
> +     void __iomem *io_base;
> +     int irq;
> +
> +     struct device *dev;
> +
> +     spinlock_t call_lock;   /* serialize firmware calls */
> +     spinlock_t io_lock;     /* serialize access to io registers */
> +
> +     struct mipc_infohdr *hdr;
> +
> +     struct mipc_req *in_ring;
> +     size_t in_ring_size;
> +     volatile u16 intail_idx;
> +
> +     struct mipc_req *out_ring;
> +     size_t out_ring_size;
> +     volatile u16 outhead_idx;
> +
> +     u32 tag;
> +};

The 'volatile' here seems out of place. What are you trying to protect
against?

The rest of the patch seems to be made up of layers of wrappers. They
are all well coded, but I got a feeling that the same could be achieved
with less of it.

        Arnd <>< 
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to