Re: [PATCH v2] mmc: sdhci-sirf: fix 8bit width enable by overwriting set_bus_width

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

 



2014-08-22 8:48 GMT+02:00 Barry Song <Barry.Song@xxxxxxx>:
>
> Minda's version is:
> static void sdhci_sirf_set_bus_width(struct sdhci_host *host, int width)
> {
>         u8 ctrl;
>
>         ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL);
>         ctrl &= ~(SDHCI_CTRL_4BITBUS | SDHCI_SIRF_8BITBUS);
>
>         if (width == MMC_BUS_WIDTH_8) {
>                 /*
>                  * CSR atlas7 and prima2 SD host version is not 3.0
>                  * 8bit-width enable bit of CSR SD hosts is 3,
>                  * while stardard hosts use bit 5
>                  */
>                 ctrl |= SDHCI_SIRF_8BITBUS;
>         } else if (width == MMC_BUS_WIDTH_4)
>                 ctrl |= SDHCI_CTRL_4BITBUS;

Here, the braces are not right. The coding style requires braces for both
sides of an 'else', or none of them

>
>         sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL);
> }
>
> It is basically same with you.
>
Yes.

>> > You can use it verbatim with my signoff if you want.
>> > Signed-off-by: Romain Izard <romain.izard.pro@xxxxxxxxx>
>
> do you mean a Reviewed-by?
>

In case you wanted to take the code snipplet I provided without changing it,
I provided you my Signed-off-by to be sure that there is no issue. Since Minda
wrote it on his/her own, it's not necessary.

But now, you can use:
Reviewed-by: Romain Izard <romain.izard.pro@xxxxxxxxx>

Best regards,
-- 
Romain Izard
--
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




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

  Powered by Linux