Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1364084
| From | Peter Rosin <peda@lysator.liu.se> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/8] i2c-mux: add common core data for every mux instance |
| Date | 2016-03-24 12:10 +0100 |
| Message-ID | <rgbjl-1Fk-41@gated-at.bofh.it> (permalink) |
| References | <qNCbE-4Sl-5@gated-at.bofh.it> <qNCbE-4Sl-9@gated-at.bofh.it> <rgadz-EQ-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Vladimir, On 2016-03-24 10:50, Vladimir Zapolskiy wrote: > Hi Peter, > > On 05.01.2016 17:57, Peter Rosin wrote: >> From: Peter Rosin <peda@axentia.se> >> >> The initial core mux structure starts off small with only the parent >> adapter pointer, which all muxes have, and a priv pointer for mux >> driver private data. >> >> Add i2c_mux_alloc function to unify the creation of a mux. >> >> Where appropriate, pass around the mux core structure instead of the >> parent adapter or the driver private data. >> >> Remove the parent adapter pointer from the driver private data for all >> mux drivers. >> >> Signed-off-by: Peter Rosin <peda@axentia.se> > > is it still under review? If yes, please find one question from me below :) Yes, the series is still under review/testing, with an update planned in a week or so. > [snip] > >> @@ -196,21 +195,21 @@ static int i2c_arbitrator_probe(struct platform_device *pdev) >> dev_err(dev, "Cannot parse i2c-parent\n"); >> return -EINVAL; >> } >> - arb->parent = of_get_i2c_adapter_by_node(parent_np); >> + muxc->parent = of_find_i2c_adapter_by_node(parent_np); > > why do you prefer here to use "unlocked" version of API? > > Foe example would it be safe/possible to unload an I2C bus device driver > module or unbind I2C device itself in runtime? I think you ask why I change from of_get_i2c_... to of_find_i2c_..., and that change was not intentional. It was the result of a bad merge during an early rebase. Does that cover it? Cheers, Peter
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v2 1/8] i2c-mux: add common core data for every mux instance Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> - 2016-03-24 11:00 +0100
Re: [PATCH v2 1/8] i2c-mux: add common core data for every mux instance Peter Rosin <peda@lysator.liu.se> - 2016-03-24 12:10 +0100
Re: [PATCH v2 1/8] i2c-mux: add common core data for every mux instance Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> - 2016-03-24 15:30 +0100
Re: [PATCH v2 1/8] i2c-mux: add common core data for every mux instance Peter Rosin <peda@lysator.liu.se> - 2016-03-24 20:10 +0100
csiph-web