Re: IDE DMA mode in Big endian for mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  				return 1;	/* try PIO instead of DMA */
> +#if defined(__mips__) && defined(__BIG_ENDIAN) /* XXX mips only? */
> +			outl(cpu_to_le32(hwif->dmatable_dma), dma_base + 4); /* PRD table */
> +#else
>  			outl(hwif->dmatable_dma, dma_base + 4); /* PRD table */
> +#endif

You should actually just be able to delete the #if stuff. On an LE machine
cpu_to_le32() is a null operation


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux