# Re: \[RFC/RFT 01/10\] i2c: add 'is\_suspended' flag for i2c adapters

- From: Geert Uytterhoeven \<geert@linux-m68k.org\>
- Date: 2018-12-19 09:39:19 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2018/12/5467274
- Thread: https://ratatoskr.run/linux-pm/2018/12/5458862/t.md

```text
Hi Wolfram,

On Wed, Dec 19, 2018 at 12:34 AM Wolfram Sang [ref] wrote:
> > > +   unsigned int is_suspended:1;    /* owned by the I2C core */
> >
> > When more stuff is added to this bit field (which always happens at
> > some point) updates to all members of the bit field will have to use
> > the same root-adapter-locking, or we will suffer from RMW-races. So
> > this feels like an invitation for future disaster. Maybe a comment
> > about that to remind our future selves? Or perhaps the bit field
> > should be avoided altogether?
>
> Changed to bool. Thanks!

Does that help, given bool is smaller than the CPUs word size?
Is it Alpha that cannot do atomic operations on bytes?

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
