Re: [PATCH] spi: sh-msiof: Add reset of registers before starting transfer

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

 



Hi Wolfram,

On Fri, Mar 1, 2019 at 12:43 PM Wolfram Sang <wsa@xxxxxxxxxxxxx> wrote:
> > +     for (k = 100; k > 0; k--) {
> > +             if (!(sh_msiof_read(p, CTR) & mask))
> > +                     break;
> > +
> > +             udelay(1);
> > +     }
>
> Why no reuse of sh_msiof_modify_ctr_wait? And can't we maybe even use
> readl_poll_timeout() here since we know the register is fixed to CTR?

Thanks, that looks like a good improvement. Will do.

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



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux