Hi Morimoto-san, On Mon, Sep 8, 2014 at 10:06 AM, Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxx> wrote: > About endianness / byte access, it requires byte access > especially "read" case. > Because if count was odd number, > using shift with u16 will might be buffer overflow Of course the buffer must be accessed using byte accesses. But sd_ctrl_read16() returns u16, and sd_ctrl_write16() takes u16. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- 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