Re: [RFC PATCH 1/4] Mobile security processor driver

From: Alan Cox
Date: Fri Apr 30 2010 - 13:46:59 EST


> -struct sep_driver_init_t {
> - /* start of the 1G of the host memory address that SEP can access */
> - unsigned long message_addr;
> + /* new base address */
> + dma_addr_t new_base_addr;
> +};

We seem to be going backwards - deformatting code


> +static inline u32 SEP_READ_REGISTER(struct device_context *dev, int reg)
> +{
> + void __iomem *addr = dev->reg_addr + reg;
> + return readl_be(addr);
> +}

Re adding wrappers


> +#define SEP_CHANGE_ENDIANNESS(val) \
> + (((val) >> 24) | (((val) & 0x00FF0000) >> 8) | \
> + (((val) & 0x0000FF00) << 8) | \
> + (((val) & 0x000000FF) << 24))

And other goo


> * CHANGES:
> *
> - * 2009.06.26 Initial publish
> + * 2010.01.08 Initial publish

Sorry ?????

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/