Re: [PATCH RFT v2 5/5] i3c: cdns: use get_parity8 helper instead of open coding it

From: Wolfram Sang
Date: Thu Jan 02 2025 - 04:05:06 EST



> > /* RR0[0] = ~XOR(addr[6:0]) */
> > - if (!(hweight8(addr & 0x7f) & 1))
> > - ret |= 1;
> > + ret |= parity8(addr & 0x7f) ? 0 : BIT(0);
>
> Perhaps keep the if()-construct, to better match the example in the
> documentation in 1/5?

Can do, don't care super much. I chose this construct because the other
drivers in I3C use the above pattern. You still like the if() better?

Attachment: signature.asc
Description: PGP signature