On Wednesday 04 June 2014 08:09:12 Michal Simek wrote: > > + > > +static void sdhci_arasn_xgene_xlat_addr(struct sdhci_arasan_data *data, > > + u64 dma_addr) > > +{ > > + #define AIM_AXI_HI_OFFSET 0x0000000c > > + #define AIM_AXI_ADDRESS_HI_N_WR(src) \ > > + (((u32) (src) << 20) & 0xfff00000) > > ditto with indentation. > 20 should be shift > 0xfff00000 is mask. > > Also you should take this opportunity and add function description > in kernel doc to be exactly clear what this function is doing. Actually this should just be configured in the dma-ranges property I think. It's not the driver's business to do the dma translation. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html