Re: [PATCH v2 4/6] mmc: tmio: add eMMC support

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

 



> >+	u16 reg = sd_ctrl_read16(host, CTL_SD_MEM_CARD_OPT)
> >+				& ~(CARD_OPT_WIDTH | CARD_OPT_WIDTH8);
> >+
> >+	/* reg now applies to MMC_BUS_WIDTH_4 */
> >+	if (bus_width == MMC_BUS_WIDTH_1)
> >+		reg |= CARD_OPT_WIDTH;
> >+	else if (bus_width == MMC_BUS_WIDTH_8)
> >+		reg |= CARD_OPT_WIDTH8;
> 
>    Why not *switch*?

Didn't look better to me.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux