Message ID | cover.1585902279.git.matti.vaittinen@fi.rohmeurope.com (mailing list archive) |
---|---|
Headers | show |
Series | Support ROHM BD99954 charger IC | expand |
Hello Mark, Sebastian, All, On Fri, 2020-04-03 at 11:36 +0300, Matti Vaittinen wrote: > Support ROHM BD99954 Battery Management IC > > ROHM BD99954 is a Battery Management IC for 1-4 cell Lithium-Ion > secondary battery. BD99954 is intended to be used in space-constraint > equipment such as Low profile Notebook PC, Tablets and other > applications. > > Series extracts a "linear ranges" helper out of the regulator > framework. Linear ranges helper is intended to help converting > real-world values to register values when conversion is linear. I > suspect this is useful also for power subsystem and possibly for clk. I see Mark has acked/reviewed both the regulator changes and linear_ranges code. Do you think Mark should take the linear_ranges and regulator changes in his tree? I don't know Sebastian's schedule or when the charger portion is good to go - but I know that each new regulator driver which is added to regulator tree has a chance of using the struct regulator_linear_range - which will break when this series is applied. Or what would be the best way to avoid breaking regulators? OTOH, if Mark takes linear_ranges in his tree, then this power portion of the series will depend on linear_ranges stuff that is in regulator tree. I guess this must be pretty standard stuff for you and you probably know how to handle it but I just wanted to point out the risk of breaking regulator build without visible merge conflicts. Please let me know if I should split the series and rebase linear_ranges / regulator stuff on top of regulator tree. Br, Matti Vaittinen
On Fri, Apr 03, 2020 at 10:07:41AM +0000, Vaittinen, Matti wrote: > On Fri, 2020-04-03 at 11:36 +0300, Matti Vaittinen wrote: > > Support ROHM BD99954 Battery Management IC > > > > ROHM BD99954 is a Battery Management IC for 1-4 cell Lithium-Ion > > secondary battery. BD99954 is intended to be used in space-constraint > > equipment such as Low profile Notebook PC, Tablets and other > > applications. > > > > Series extracts a "linear ranges" helper out of the regulator > > framework. Linear ranges helper is intended to help converting > > real-world values to register values when conversion is linear. I > > suspect this is useful also for power subsystem and possibly for clk. > > I see Mark has acked/reviewed both the regulator changes and > linear_ranges code. Do you think Mark should take the linear_ranges and > regulator changes in his tree? I don't know Sebastian's schedule or > when the charger portion is good to go - but I know that each new > regulator driver which is added to regulator tree has a chance of using > the struct regulator_linear_range - which will break when this series > is applied. Or what would be the best way to avoid breaking regulators? > > OTOH, if Mark takes linear_ranges in his tree, then this power portion > of the series will depend on linear_ranges stuff that is in regulator > tree. I guess this must be pretty standard stuff for you and you > probably know how to handle it but I just wanted to point out the risk > of breaking regulator build without visible merge conflicts. > > Please let me know if I should split the series and rebase > linear_ranges / regulator stuff on top of regulator tree. From my point of view, you need to wait till rc1 is out and rebase the series. The cross-subsystem changes can be handled by maintainers in a form of immutable branches / tags. On your side you may recommend them how to proceed, but the final decision is by them.
Hello Andy & All, On Fri, 2020-04-03 at 14:02 +0300, andriy.shevchenko@linux.intel.com wrote: > On Fri, Apr 03, 2020 at 10:07:41AM +0000, Vaittinen, Matti wrote: > > On Fri, 2020-04-03 at 11:36 +0300, Matti Vaittinen wrote: > > > Support ROHM BD99954 Battery Management IC > > > > > > ROHM BD99954 is a Battery Management IC for 1-4 cell Lithium-Ion > > > secondary battery. BD99954 is intended to be used in space- > > > constraint > > > equipment such as Low profile Notebook PC, Tablets and other > > > applications. > > > > > > Series extracts a "linear ranges" helper out of the regulator > > > framework. Linear ranges helper is intended to help converting > > > real-world values to register values when conversion is linear. I > > > suspect this is useful also for power subsystem and possibly for > > > clk. > > > > I see Mark has acked/reviewed both the regulator changes and > > linear_ranges code. Do you think Mark should take the linear_ranges > > and > > regulator changes in his tree? I don't know Sebastian's schedule or > > when the charger portion is good to go - but I know that each new > > regulator driver which is added to regulator tree has a chance of > > using > > the struct regulator_linear_range - which will break when this > > series > > is applied. Or what would be the best way to avoid breaking > > regulators? > > > > OTOH, if Mark takes linear_ranges in his tree, then this power > > portion > > of the series will depend on linear_ranges stuff that is in > > regulator > > tree. I guess this must be pretty standard stuff for you and you > > probably know how to handle it but I just wanted to point out the > > risk > > of breaking regulator build without visible merge conflicts. > > > > Please let me know if I should split the series and rebase > > linear_ranges / regulator stuff on top of regulator tree. > > From my point of view, you need to wait till rc1 is out and rebase > the series. > The cross-subsystem changes can be handled by maintainers in a form > of > immutable branches / tags. On your side you may recommend them how to > proceed, > but the final decision is by them. > Thanks Andy. I re-read what I wrote and I see it can be interpreted as if I was trying to tell how things should be done. That was my intention. My intention was to point out that my patches will break regulator tree builds if new drivers are added. > From my point of view, you need to wait till rc1 is out and rebase > the series. Does this mean that there is no new regulator drivers expected to be added after rc1 is out? If this is the case, the rebasing this series on top of rc1 should work as then I get all new drivers (for a release) converted. This is of course fine by me - but again we will risk of breaking regulators if the series slips to next release. Thus I thought that perhaps we should try getting the regulators stuff in Marks tree so that further reguator drivers wouldn't be broken. But as I said, my intention is not to claim I know how to do this. On the contrary - I have _never_ participated in maintaining a tree that will be merged by others. So, please just let me know what you see the best. I can do splitting the series or rebasing to regulator tree or rebase to rc1 when it is out if required :) Br, Matti
On Fri, Apr 03, 2020 at 11:13:54AM +0000, Vaittinen, Matti wrote: > On Fri, 2020-04-03 at 14:02 +0300, andriy.shevchenko@linux.intel.com > wrote: > > On Fri, Apr 03, 2020 at 10:07:41AM +0000, Vaittinen, Matti wrote: > > > On Fri, 2020-04-03 at 11:36 +0300, Matti Vaittinen wrote: ... > > From my point of view, you need to wait till rc1 is out and rebase > > the series. > > Does this mean that there is no new regulator drivers expected to be > added after rc1 is out? If this is the case, the rebasing this series > on top of rc1 should work as then I get all new drivers (for a release) > converted. This is of course fine by me - but again we will risk of > breaking regulators if the series slips to next release. Thus I thought > that perhaps we should try getting the regulators stuff in Marks tree > so that further reguator drivers wouldn't be broken. We already almost in the middle of merge window. With such a change I believe there is no room for testing it, so, it will be quite unlikely it makes v5.7 release. That is, you have approximately 6 more weeks to polish this code. > But as I said, my intention is not to claim I know how to do this. On > the contrary - I have _never_ participated in maintaining a tree that > will be merged by others. So, please just let me know what you see the > best. I can do splitting the series or rebasing to regulator tree or > rebase to rc1 when it is out if required :)
On Fri, Apr 03, 2020 at 02:50:16PM +0300, andriy.shevchenko@linux.intel.com wrote: > On Fri, Apr 03, 2020 at 11:13:54AM +0000, Vaittinen, Matti wrote: > > On Fri, 2020-04-03 at 14:02 +0300, andriy.shevchenko@linux.intel.com > > wrote: > > > On Fri, Apr 03, 2020 at 10:07:41AM +0000, Vaittinen, Matti wrote: > > > > On Fri, 2020-04-03 at 11:36 +0300, Matti Vaittinen wrote: > > ... > > > > From my point of view, you need to wait till rc1 is out and rebase > > > the series. > > > > Does this mean that there is no new regulator drivers expected to be > > added after rc1 is out? If this is the case, the rebasing this series > > on top of rc1 should work as then I get all new drivers (for a release) > > converted. This is of course fine by me - but again we will risk of > > breaking regulators if the series slips to next release. Thus I thought > > that perhaps we should try getting the regulators stuff in Marks tree > > so that further reguator drivers wouldn't be broken. > > We already almost in the middle of merge window. With such a change I believe > there is no room for testing it, so, it will be quite unlikely it makes v5.7 > release. > > That is, you have approximately 6 more weeks to polish this code. (If you need so, of course) > > But as I said, my intention is not to claim I know how to do this. On > > the contrary - I have _never_ participated in maintaining a tree that > > will be merged by others. So, please just let me know what you see the > > best. I can do splitting the series or rebasing to regulator tree or > > rebase to rc1 when it is out if required :)
On Fri, Apr 03, 2020 at 11:13:54AM +0000, Vaittinen, Matti wrote: > On Fri, 2020-04-03 at 14:02 +0300, andriy.shevchenko@linux.intel.com > > From my point of view, you need to wait till rc1 is out and rebase > > the series. > > The cross-subsystem changes can be handled by maintainers in a form > > of > > immutable branches / tags. On your side you may recommend them how to > > proceed, > > but the final decision is by them. > Thanks Andy. I re-read what I wrote and I see it can be interpreted as > if I was trying to tell how things should be done. That was my > intention. My intention was to point out that my patches will break > regulator tree builds if new drivers are added. > > From my point of view, you need to wait till rc1 is out and rebase > > the series. > Does this mean that there is no new regulator drivers expected to be > added after rc1 is out? If this is the case, the rebasing this series > on top of rc1 should work as then I get all new drivers (for a release) During the merge window no new anything except bug fixes is expected to be applied. Like Andy says we'll share a branch for any dependencies, nobody in particular seems to apply code for lib so I guess I'll take that patch and the regulator one and share it but not until after the merge window.
On Fri, 2020-04-03 at 13:01 +0100, Mark Brown wrote: > On Fri, Apr 03, 2020 at 11:13:54AM +0000, Vaittinen, Matti wrote: > > On Fri, 2020-04-03 at 14:02 +0300, > > andriy.shevchenko@linux.intel.com > > > From my point of view, you need to wait till rc1 is out and > > > rebase > > > the series. > > > The cross-subsystem changes can be handled by maintainers in a > > > form > > > of > > > immutable branches / tags. On your side you may recommend them > > > how to > > > proceed, > > > but the final decision is by them. > > Thanks Andy. I re-read what I wrote and I see it can be interpreted > > as > > if I was trying to tell how things should be done. That was my > > intention. My intention was to point out that my patches will break > > regulator tree builds if new drivers are added. > > > From my point of view, you need to wait till rc1 is out and > > > rebase > > > the series. > > Does this mean that there is no new regulator drivers expected to > > be > > added after rc1 is out? If this is the case, the rebasing this > > series > > on top of rc1 should work as then I get all new drivers (for a > > release) > > During the merge window no new anything except bug fixes is expected > to > be applied. Like Andy says we'll share a branch for any > dependencies, > nobody in particular seems to apply code for lib so I guess I'll take > that patch and the regulator one and share it but not until after the > merge window. Thanks for taking it Mark. So I should rebase and resend when v5.7-rc1 is tagged as Andy suggested? --Matti
On Fri, Apr 03, 2020 at 12:30:17PM +0000, Vaittinen, Matti wrote: > Thanks for taking it Mark. So I should rebase and resend when v5.7-rc1 > is tagged as Andy suggested? Yes.
Hi, On Fri, Apr 03, 2020 at 11:36:17AM +0300, Matti Vaittinen wrote: > Matti Vaittinen (10): > dt-bindings: battery: add new battery parameters > dt_bindings: ROHM BD99954 Charger > lib: add linear ranges helpers > lib/test_linear_ranges: add a test for the 'linear_ranges' > power: supply: bd70528: rename linear_range to avoid collision > regulator: use linear_ranges helper > power: supply: bd70528: use linear ranges > power: supply: add battery parameters > power: supply: Support ROHM bd99954 charger > power: supply: Fix Kconfig help text indentiation Can you please rebase the series, so that it is ordered with the linear ranges and regulator patches in the beginning? That way Mark can take the first three patches through the regulator tree and provide an immutable branch to me without requiring all of the power-supply specific patches. E.g. like this: > lib: add linear ranges helpers > lib/test_linear_ranges: add a test for the 'linear_ranges' > regulator: use linear_ranges helper > dt-bindings: battery: add new battery parameters > dt_bindings: ROHM BD99954 Charger > power: supply: bd70528: rename linear_range to avoid collision > power: supply: bd70528: use linear ranges > power: supply: add battery parameters > power: supply: Support ROHM bd99954 charger > power: supply: Fix Kconfig help text indentiation -- Sebastian
Hello Sebastian, On Sun, 2020-04-05 at 05:27 +0200, Sebastian Reichel wrote: > Hi, > > On Fri, Apr 03, 2020 at 11:36:17AM +0300, Matti Vaittinen wrote: > > Matti Vaittinen (10): > > dt-bindings: battery: add new battery parameters > > dt_bindings: ROHM BD99954 Charger > > lib: add linear ranges helpers > > lib/test_linear_ranges: add a test for the 'linear_ranges' > > power: supply: bd70528: rename linear_range to avoid collision > > regulator: use linear_ranges helper > > power: supply: bd70528: use linear ranges > > power: supply: add battery parameters > > power: supply: Support ROHM bd99954 charger > > power: supply: Fix Kconfig help text indentiation > > Can you please rebase the series, so that it is ordered with the > linear ranges and regulator patches in the beginning? That way > Mark can take the first three patches through the regulator tree > and provide an immutable branch to me without requiring all of > the power-supply specific patches. E.g. like this: I can and will do rebasing on top of 5.7-rc1 anyways :) But the power: supply: bd70528: rename linear_range to avoid collision should probably come before regulator: use linear_ranges helper because the BD70528 is MFD device and regulator headers get included via BD70528 MFD headers. What is the best ordering for the patches? Or would Mark also take the power: supply: bd70528: rename linear_range to avoid collision ? Best Regards Matti Vaittinen