[PATCH 2/4] soc: qcom: add EBI2 driver

Linus Walleij linus.walleij at linaro.org
Wed Aug 24 02:09:15 PDT 2016


On Thu, Aug 18, 2016 at 2:07 PM, Lothar Waßmann <LW at karo-electronics.de> wrote:

>> +#define EBI2_CSN_MASK BIT(2)|BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)
>> +
> missing '()' around expression, otherwise...
>
>> +     csval &= ~EBI2_CSN_MASK;
> ...this will be '~BIT(2) | BIT(3) | BIT(4) | BIT(5) | BIT(6) | BIT(7)'
> which is most likely NOT what's intended.
>
> (Also spaces around the '|' operator would improve readability)

Sorry for not mentioning in my latest v2 revision: I solved this
by using GENMASK(0,9) (yeah it also turns out to be more
than 8 bits of CS...)

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list