Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-19 Thread Matthias Brugger
On 19/11/2020 09:32, Lee Jones wrote: On Wed, 18 Nov 2020, Matthias Brugger wrote: On 17/11/2020 17:40, Arnd Bergmann wrote: On Tue, Nov 17, 2020 at 5:07 PM Lee Jones wrote: On Tue, 17 Nov 2020, Matthias Brugger wrote: On 17/11/2020 13:37, Lee Jones wrote: On Tue, 17 Nov 2020, Matthia

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-19 Thread Lee Jones
On Wed, 18 Nov 2020, Matthias Brugger wrote: > > > On 17/11/2020 17:40, Arnd Bergmann wrote: > > On Tue, Nov 17, 2020 at 5:07 PM Lee Jones wrote: > > > On Tue, 17 Nov 2020, Matthias Brugger wrote: > > > > On 17/11/2020 13:37, Lee Jones wrote: > > > > > On Tue, 17 Nov 2020, Matthias Brugger wrot

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-18 Thread Matthias Brugger
On 17/11/2020 17:40, Arnd Bergmann wrote: On Tue, Nov 17, 2020 at 5:07 PM Lee Jones wrote: On Tue, 17 Nov 2020, Matthias Brugger wrote: On 17/11/2020 13:37, Lee Jones wrote: On Tue, 17 Nov 2020, Matthias Brugger wrote: If you want to go the route for me rebasing my tree on top of for-mfd

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-17 Thread Arnd Bergmann
On Tue, Nov 17, 2020 at 5:07 PM Lee Jones wrote: > On Tue, 17 Nov 2020, Matthias Brugger wrote: > > On 17/11/2020 13:37, Lee Jones wrote: > > > On Tue, 17 Nov 2020, Matthias Brugger wrote: > > > > If you want to go the route for me rebasing my tree on top of for-mfd-next > > then I'd like to have

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-17 Thread Lee Jones
On Tue, 17 Nov 2020, Matthias Brugger wrote: > > > On 17/11/2020 13:37, Lee Jones wrote: > > On Tue, 17 Nov 2020, Matthias Brugger wrote: > > > > > Hi Lee, > > > > > > On 13/11/2020 11:19, Lee Jones wrote: > > > > On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: > > > > > > > > > This adds

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-17 Thread Matthias Brugger
On 17/11/2020 13:37, Lee Jones wrote: On Tue, 17 Nov 2020, Matthias Brugger wrote: Hi Lee, On 13/11/2020 11:19, Lee Jones wrote: On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: This adds syscon_regmap_lookup_by_phandle_optional() function to get an optional regmap. It behaves the sam

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-17 Thread Lee Jones
On Tue, 17 Nov 2020, Matthias Brugger wrote: > Hi Lee, > > On 13/11/2020 11:19, Lee Jones wrote: > > On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: > > > > > This adds syscon_regmap_lookup_by_phandle_optional() function to get an > > > optional regmap. > > > > > > It behaves the same as sys

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-17 Thread Matthias Brugger
Hi Lee, On 13/11/2020 11:19, Lee Jones wrote: On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: This adds syscon_regmap_lookup_by_phandle_optional() function to get an optional regmap. It behaves the same as syscon_regmap_lookup_by_phandle() except where there is no regmap phandle. In this c

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-13 Thread Lee Jones
On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: > This adds syscon_regmap_lookup_by_phandle_optional() function to get an > optional regmap. > > It behaves the same as syscon_regmap_lookup_by_phandle() except where > there is no regmap phandle. In this case, instead of returning -ENODEV, > the

Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-11 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 5:13 PM Enric Balletbo i Serra wrote: > > This adds syscon_regmap_lookup_by_phandle_optional() function to get an > optional regmap. > > It behaves the same as syscon_regmap_lookup_by_phandle() except where > there is no regmap phandle. In this case, instead of returning -E

[PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function.

2020-11-10 Thread Enric Balletbo i Serra
This adds syscon_regmap_lookup_by_phandle_optional() function to get an optional regmap. It behaves the same as syscon_regmap_lookup_by_phandle() except where there is no regmap phandle. In this case, instead of returning -ENODEV, the function returns NULL. This makes error checking simpler when t