Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1629651
| From | Philipp Zabel <p.zabel@pengutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes |
| Date | 2017-04-24 17:00 +0200 |
| Message-ID | <tzND3-8gU-5@gated-at.bofh.it> (permalink) |
| References | <tzJSO-5YI-25@gated-at.bofh.it> <tzJSO-5YI-23@gated-at.bofh.it> <tzLrA-6Zn-13@gated-at.bofh.it> <tzN0l-83T-7@gated-at.bofh.it> <tzND3-8gU-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 2017-04-24 at 16:36 +0200, Peter Rosin wrote: [...] > > How about an atomic use_count on the mux_control, a bool shared that is > > only set by the first consumer, and controls whether selecting locks? > > That has the drawback that it is hard to restore the mux-control in a safe > way so that exclusive consumers are allowed after the last shared consumer > puts the mux away. True. > Agreed, it's a corner case, but I had this very similar > patch going through the compiler when I got this mail. Does it work as well > as what you suggested? Yes, this patch works just as well. regards Philipp
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-24 13:00 +0200
Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-24 14:40 +0200
Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-24 16:20 +0200
Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-24 17:00 +0200
Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-25 18:40 +0200
csiph-web