Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1432658 > unrolled thread
| Started by | Lee Jones <lee.jones@linaro.org> |
|---|---|
| First post | 2016-06-28 11:00 +0200 |
| Last post | 2016-06-30 00:00 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs Lee Jones <lee.jones@linaro.org> - 2016-06-28 11:00 +0200
Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs Philipp Zabel <p.zabel@pengutronix.de> - 2016-06-29 09:50 +0200
Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs Lee Jones <lee.jones@linaro.org> - 2016-06-29 10:10 +0200
Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs Philipp Zabel <p.zabel@pengutronix.de> - 2016-06-29 11:30 +0200
Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs Lee Jones <lee.jones@linaro.org> - 2016-06-29 11:40 +0200
Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs Philipp Zabel <pza@pengutronix.de> - 2016-06-30 00:00 +0200
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-06-28 11:00 +0200 |
| Subject | Re: [PATCH 4/7] reset: Supply *_shared variant calls when using *_optional APIs |
| Message-ID | <rOX2a-4Ab-29@gated-at.bofh.it> |
Philipp,
I need this to go into the -rcs too.
Can I add it with your Ack please?
> Consumers need to be able to specify whether they are requesting an
> 'exclusive' or 'shared' reset line no matter which API (of_*, devm_*,
> etc) they are using. This change allows users of the optional_* API
> in particular to specify that their request is for a 'shared' line.
>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
> include/linux/reset.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/include/linux/reset.h b/include/linux/reset.h
> index fd69240..c358106 100644
> --- a/include/linux/reset.h
> +++ b/include/linux/reset.h
> @@ -141,6 +141,12 @@ static inline struct reset_control *reset_control_get_optional_exclusive(
> return __of_reset_control_get(dev ? dev->of_node : NULL, id, 0, 0);
> }
>
> +static inline struct reset_control *reset_control_get_optional_shared(
> + struct device *dev, const char *id)
> +{
> + return __of_reset_control_get(dev ? dev->of_node : NULL, id, 0, 1);
> +}
> +
> /**
> * of_reset_control_get_exclusive - Lookup and obtain an exclusive reference
> * to a reset controller.
> @@ -270,6 +276,12 @@ static inline struct reset_control *devm_reset_control_get_optional_exclusive(
> return __devm_reset_control_get(dev, id, 0, 0);
> }
>
> +static inline struct reset_control *devm_reset_control_get_optional_shared(
> + struct device *dev, const char *id)
> +{
> + return __devm_reset_control_get(dev, id, 0, 1);
> +}
> +
> /**
> * devm_reset_control_get_exclusive_by_index - resource managed
> * reset_control_get_exclusive()
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
[toc] | [next] | [standalone]
| From | Philipp Zabel <p.zabel@pengutronix.de> |
|---|---|
| Date | 2016-06-29 09:50 +0200 |
| Message-ID | <rPipX-1mo-13@gated-at.bofh.it> |
| In reply to | #1432658 |
Hi Lee,
Am Dienstag, den 28.06.2016, 09:56 +0100 schrieb Lee Jones:
> Philipp,
>
> I need this to go into the -rcs too.
>
> Can I add it with your Ack please?
I have already added your patches to my branch, and I intend to send a
pull request for it tomorrow. I am afraid applying this patch in another
branch would create a merge conflict with
git://git.pengutronix.de/git/pza/linux.git reset/next
in arm-soc. If that is not the case, go ahead. Otherwise I could provide
a tag at commit 2485394d9e0b ("reset: TRIVIAL: Add line break at same
place for similar APIs") for you to merge.
regards
Philipp
[toc] | [prev] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-06-29 10:10 +0200 |
| Message-ID | <rPiJj-1HZ-1@gated-at.bofh.it> |
| In reply to | #1433521 |
On Wed, 29 Jun 2016, Philipp Zabel wrote:
> Am Dienstag, den 28.06.2016, 09:56 +0100 schrieb Lee Jones:
> > Philipp,
> >
> > I need this to go into the -rcs too.
> >
> > Can I add it with your Ack please?
>
> I have already added your patches to my branch, and I intend to send a
> pull request for it tomorrow. I am afraid applying this patch in another
> branch would create a merge conflict with
> git://git.pengutronix.de/git/pza/linux.git reset/next
> in arm-soc. If that is not the case, go ahead. Otherwise I could provide
> a tag at commit 2485394d9e0b ("reset: TRIVIAL: Add line break at same
> place for similar APIs") for you to merge.
Yes please. If you could tag a branch containing commit:
reset: Supply *_shared variant calls when using *_optional APIs
... that would be perfect. Would you mind sending me the tag name
ASAP please, since I am ready to send my pull-request to Linus.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
[toc] | [prev] | [next] | [standalone]
| From | Philipp Zabel <p.zabel@pengutronix.de> |
|---|---|
| Date | 2016-06-29 11:30 +0200 |
| Message-ID | <rPjYJ-2o1-25@gated-at.bofh.it> |
| In reply to | #1433527 |
Am Mittwoch, den 29.06.2016, 09:06 +0100 schrieb Lee Jones:
> On Wed, 29 Jun 2016, Philipp Zabel wrote:
> > Am Dienstag, den 28.06.2016, 09:56 +0100 schrieb Lee Jones:
> > > Philipp,
> > >
> > > I need this to go into the -rcs too.
> > >
> > > Can I add it with your Ack please?
> >
> > I have already added your patches to my branch, and I intend to send a
> > pull request for it tomorrow. I am afraid applying this patch in another
> > branch would create a merge conflict with
> > git://git.pengutronix.de/git/pza/linux.git reset/next
> > in arm-soc. If that is not the case, go ahead. Otherwise I could provide
> > a tag at commit 2485394d9e0b ("reset: TRIVIAL: Add line break at same
> > place for similar APIs") for you to merge.
>
> Yes please. If you could tag a branch containing commit:
>
> reset: Supply *_shared variant calls when using *_optional APIs
>
> ... that would be perfect. Would you mind sending me the tag name
> ASAP please, since I am ready to send my pull-request to Linus.
git://git.pengutronix.de/git/pza/linux.git tags/reset-shared-optional
regards
Philipp
[toc] | [prev] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2016-06-29 11:40 +0200 |
| Message-ID | <rPk8q-2rm-21@gated-at.bofh.it> |
| In reply to | #1433611 |
On Wed, 29 Jun 2016, Philipp Zabel wrote:
> Am Mittwoch, den 29.06.2016, 09:06 +0100 schrieb Lee Jones:
> > On Wed, 29 Jun 2016, Philipp Zabel wrote:
> > > Am Dienstag, den 28.06.2016, 09:56 +0100 schrieb Lee Jones:
> > > > Philipp,
> > > >
> > > > I need this to go into the -rcs too.
> > > >
> > > > Can I add it with your Ack please?
> > >
> > > I have already added your patches to my branch, and I intend to send a
> > > pull request for it tomorrow. I am afraid applying this patch in another
> > > branch would create a merge conflict with
> > > git://git.pengutronix.de/git/pza/linux.git reset/next
> > > in arm-soc. If that is not the case, go ahead. Otherwise I could provide
> > > a tag at commit 2485394d9e0b ("reset: TRIVIAL: Add line break at same
> > > place for similar APIs") for you to merge.
> >
> > Yes please. If you could tag a branch containing commit:
> >
> > reset: Supply *_shared variant calls when using *_optional APIs
> >
> > ... that would be perfect. Would you mind sending me the tag name
> > ASAP please, since I am ready to send my pull-request to Linus.
>
> git://git.pengutronix.de/git/pza/linux.git tags/reset-shared-optional
Ah! If I rebase on that tag, I will also take in all of the patches
between it and v4.7-rc1, which is 14 commits. Is there any way you
can place it onto it's own branch, then we both merge it into our
respective trees?
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
[toc] | [prev] | [next] | [standalone]
| From | Philipp Zabel <pza@pengutronix.de> |
|---|---|
| Date | 2016-06-30 00:00 +0200 |
| Message-ID | <rPvGx-13x-3@gated-at.bofh.it> |
| In reply to | #1433615 |
Hi Lee,
On Wed, Jun 29, 2016 at 10:37:34AM +0100, Lee Jones wrote:
[...]
> > > > If that is not the case, go ahead. Otherwise I could provide
> > > > a tag at commit 2485394d9e0b ("reset: TRIVIAL: Add line break at same
> > > > place for similar APIs") for you to merge.
> > >
> > > Yes please. If you could tag a branch containing commit:
> > >
> > > reset: Supply *_shared variant calls when using *_optional APIs
> > >
> > > ... that would be perfect. Would you mind sending me the tag name
> > > ASAP please, since I am ready to send my pull-request to Linus.
> >
> > git://git.pengutronix.de/git/pza/linux.git tags/reset-shared-optional
>
> Ah! If I rebase on that tag, I will also take in all of the patches
> between it and v4.7-rc1, which is 14 commits. Is there any way you
> can place it onto it's own branch, then we both merge it into our
> respective trees?
I have now moved your patches into their own branch at
git://git.pengutronix.de/git/pza/linux.git tags/reset-explicit-api
and merged that back in.
regards
Philipp
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web