Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Tue, 12 Nov 2013, Charles Keepax wrote: > On Mon, Nov 11, 2013 at 11:26:38AM +, Lee Jones wrote: > > > >>> I'm inclined to agree with you though, so if you want to send a patch > > > >>> based on v3.14-rc1 I'd be happy to accept it. > > > >> > > > >> Apologies for causing confusion here I checked your tree for the > > > >> patch and didn't see it, so I assumed you had decided not to > > > >> apply it. I must have missed it some how. > > > > > > > > So I am partly to blame here. My public repos sometimes aren't as > > > > up-to-date and my private ones, but if I've replied to a patch and > > > > said I've applied it, I inevitably have. > > > > > > > But this patch has only the dependency of extcon subsystem. > > > At least, you have to get 'Acked-by' or 'Signed-off-by' from > > > subsystem maintainer. I didn't agree applying this patch on mainline tree. > > > > Please see my other mail. > > Sorry for the sake of clarity, we are backing out the patch and I > should send a fresh one? I don't think there is a requirement to resend, but Chanwoo is right, I can't take this patch. It's up to him. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, Nov 11, 2013 at 11:26:38AM +, Lee Jones wrote: > > >>> I'm inclined to agree with you though, so if you want to send a patch > > >>> based on v3.14-rc1 I'd be happy to accept it. > > >> > > >> Apologies for causing confusion here I checked your tree for the > > >> patch and didn't see it, so I assumed you had decided not to > > >> apply it. I must have missed it some how. > > > > > > So I am partly to blame here. My public repos sometimes aren't as > > > up-to-date and my private ones, but if I've replied to a patch and > > > said I've applied it, I inevitably have. > > > > > But this patch has only the dependency of extcon subsystem. > > At least, you have to get 'Acked-by' or 'Signed-off-by' from > > subsystem maintainer. I didn't agree applying this patch on mainline tree. > > Please see my other mail. Sorry for the sake of clarity, we are backing out the patch and I should send a fresh one? Thanks, Charles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, Nov 11, 2013 at 11:26:38AM +, Lee Jones wrote: I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. So I am partly to blame here. My public repos sometimes aren't as up-to-date and my private ones, but if I've replied to a patch and said I've applied it, I inevitably have. But this patch has only the dependency of extcon subsystem. At least, you have to get 'Acked-by' or 'Signed-off-by' from subsystem maintainer. I didn't agree applying this patch on mainline tree. Please see my other mail. Sorry for the sake of clarity, we are backing out the patch and I should send a fresh one? Thanks, Charles -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Tue, 12 Nov 2013, Charles Keepax wrote: On Mon, Nov 11, 2013 at 11:26:38AM +, Lee Jones wrote: I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. So I am partly to blame here. My public repos sometimes aren't as up-to-date and my private ones, but if I've replied to a patch and said I've applied it, I inevitably have. But this patch has only the dependency of extcon subsystem. At least, you have to get 'Acked-by' or 'Signed-off-by' from subsystem maintainer. I didn't agree applying this patch on mainline tree. Please see my other mail. Sorry for the sake of clarity, we are backing out the patch and I should send a fresh one? I don't think there is a requirement to resend, but Chanwoo is right, I can't take this patch. It's up to him. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/11/2013 08:19 PM, Lee Jones wrote: > On Mon, 11 Nov 2013, Chanwoo Choi wrote: > >> On 11/11/2013 07:53 PM, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: > Improve readability by creating a define for each microphone detection > level. > > Signed-off-by: Charles Keepax > --- > drivers/extcon/extcon-arizona.c | 21 - > include/linux/mfd/arizona/registers.h |9 + > 2 files changed, 25 insertions(+), 5 deletions(-) > > diff --git a/drivers/extcon/extcon-arizona.c > b/drivers/extcon/extcon-arizona.c > index 3c55ec8..6d914ba 100644 > --- a/drivers/extcon/extcon-arizona.c > +++ b/drivers/extcon/extcon-arizona.c > @@ -44,6 +44,17 @@ > #define HPDET_DEBOUNCE 500 > #define DEFAULT_MICD_TIMEOUT 2000 > > +enum { > + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > + ARIZONA_MICD_LVL_7, > + > + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > + > + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. >>> >>> Actually Charles has already sent me this patch and I applied it a >>> while ago. >> >> Why did you applied extcon driver patch on your tree? > > Good point, well presented! > > I should have just Acked the MFD parts in this case. > OK, I understand. Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Fri, 08 Nov 2013, Charles Keepax wrote: > Improve readability by creating a define for each microphone detection > level. > > Signed-off-by: Charles Keepax > --- > drivers/extcon/extcon-arizona.c | 21 - > include/linux/mfd/arizona/registers.h |9 + > 2 files changed, 25 insertions(+), 5 deletions(-) For the MFD parts: Acked-by: Lee Jones -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
> >>> I'm inclined to agree with you though, so if you want to send a patch > >>> based on v3.14-rc1 I'd be happy to accept it. > >> > >> Apologies for causing confusion here I checked your tree for the > >> patch and didn't see it, so I assumed you had decided not to > >> apply it. I must have missed it some how. > > > > So I am partly to blame here. My public repos sometimes aren't as > > up-to-date and my private ones, but if I've replied to a patch and > > said I've applied it, I inevitably have. > > > But this patch has only the dependency of extcon subsystem. > At least, you have to get 'Acked-by' or 'Signed-off-by' from > subsystem maintainer. I didn't agree applying this patch on mainline tree. Please see my other mail. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/11/2013 08:15 PM, Lee Jones wrote: > On Mon, 11 Nov 2013, Charles Keepax wrote: > >> On Mon, Nov 11, 2013 at 10:53:56AM +, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: > Improve readability by creating a define for each microphone detection > level. > > Signed-off-by: Charles Keepax > --- > drivers/extcon/extcon-arizona.c | 21 - > include/linux/mfd/arizona/registers.h |9 + > 2 files changed, 25 insertions(+), 5 deletions(-) > > diff --git a/drivers/extcon/extcon-arizona.c > b/drivers/extcon/extcon-arizona.c > index 3c55ec8..6d914ba 100644 > --- a/drivers/extcon/extcon-arizona.c > +++ b/drivers/extcon/extcon-arizona.c > @@ -44,6 +44,17 @@ > #define HPDET_DEBOUNCE 500 > #define DEFAULT_MICD_TIMEOUT 2000 > > +enum { > + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > + ARIZONA_MICD_LVL_7, > + > + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > + > + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. >> >> >> I will do an incremental patch to update them to defines. >> >> >>> Actually Charles has already sent me this patch and I applied it a >>> while ago. >>> >>> I'm inclined to agree with you though, so if you want to send a patch >>> based on v3.14-rc1 I'd be happy to accept it. >> >> Apologies for causing confusion here I checked your tree for the >> patch and didn't see it, so I assumed you had decided not to >> apply it. I must have missed it some how. > > So I am partly to blame here. My public repos sometimes aren't as > up-to-date and my private ones, but if I've replied to a patch and > said I've applied it, I inevitably have. > But this patch has only the dependency of extcon subsystem. At least, you have to get 'Acked-by' or 'Signed-off-by' from subsystem maintainer. I didn't agree applying this patch on mainline tree. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, 11 Nov 2013, Chanwoo Choi wrote: > On 11/11/2013 07:53 PM, Lee Jones wrote: > >> On 11/08/2013 10:19 PM, Charles Keepax wrote: > >>> Improve readability by creating a define for each microphone detection > >>> level. > >>> > >>> Signed-off-by: Charles Keepax > >>> --- > >>> drivers/extcon/extcon-arizona.c | 21 - > >>> include/linux/mfd/arizona/registers.h |9 + > >>> 2 files changed, 25 insertions(+), 5 deletions(-) > >>> > >>> diff --git a/drivers/extcon/extcon-arizona.c > >>> b/drivers/extcon/extcon-arizona.c > >>> index 3c55ec8..6d914ba 100644 > >>> --- a/drivers/extcon/extcon-arizona.c > >>> +++ b/drivers/extcon/extcon-arizona.c > >>> @@ -44,6 +44,17 @@ > >>> #define HPDET_DEBOUNCE 500 > >>> #define DEFAULT_MICD_TIMEOUT 2000 > >>> > >>> +enum { > >>> + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > >>> + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > >>> + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > >>> + ARIZONA_MICD_LVL_7, > >>> + > >>> + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > >>> + > >>> + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > >>> +}; > >> > >> MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential > >> value. > >> I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 > >> /MICD_LVL_0_TO_8 > >> instead of enum keyword. > > > > Actually Charles has already sent me this patch and I applied it a > > while ago. > > Why did you applied extcon driver patch on your tree? Good point, well presented! I should have just Acked the MFD parts in this case. It's not too late to pull it back - I'll do just that. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, 11 Nov 2013, Charles Keepax wrote: > On Mon, Nov 11, 2013 at 10:53:56AM +, Lee Jones wrote: > > > On 11/08/2013 10:19 PM, Charles Keepax wrote: > > > > Improve readability by creating a define for each microphone detection > > > > level. > > > > > > > > Signed-off-by: Charles Keepax > > > > --- > > > > drivers/extcon/extcon-arizona.c | 21 - > > > > include/linux/mfd/arizona/registers.h |9 + > > > > 2 files changed, 25 insertions(+), 5 deletions(-) > > > > > > > > diff --git a/drivers/extcon/extcon-arizona.c > > > > b/drivers/extcon/extcon-arizona.c > > > > index 3c55ec8..6d914ba 100644 > > > > --- a/drivers/extcon/extcon-arizona.c > > > > +++ b/drivers/extcon/extcon-arizona.c > > > > @@ -44,6 +44,17 @@ > > > > #define HPDET_DEBOUNCE 500 > > > > #define DEFAULT_MICD_TIMEOUT 2000 > > > > > > > > +enum { > > > > + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > > > > + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > > > > + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > > > > + ARIZONA_MICD_LVL_7, > > > > + > > > > + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > > > > + > > > > + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > > > > +}; > > > > > > MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential > > > value. > > > I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 > > > /MICD_LVL_0_TO_8 > > > instead of enum keyword. > > > I will do an incremental patch to update them to defines. > > > > Actually Charles has already sent me this patch and I applied it a > > while ago. > > > > I'm inclined to agree with you though, so if you want to send a patch > > based on v3.14-rc1 I'd be happy to accept it. > > Apologies for causing confusion here I checked your tree for the > patch and didn't see it, so I assumed you had decided not to > apply it. I must have missed it some how. So I am partly to blame here. My public repos sometimes aren't as up-to-date and my private ones, but if I've replied to a patch and said I've applied it, I inevitably have. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, Nov 11, 2013 at 10:53:56AM +, Lee Jones wrote: > > On 11/08/2013 10:19 PM, Charles Keepax wrote: > > > Improve readability by creating a define for each microphone detection > > > level. > > > > > > Signed-off-by: Charles Keepax > > > --- > > > drivers/extcon/extcon-arizona.c | 21 - > > > include/linux/mfd/arizona/registers.h |9 + > > > 2 files changed, 25 insertions(+), 5 deletions(-) > > > > > > diff --git a/drivers/extcon/extcon-arizona.c > > > b/drivers/extcon/extcon-arizona.c > > > index 3c55ec8..6d914ba 100644 > > > --- a/drivers/extcon/extcon-arizona.c > > > +++ b/drivers/extcon/extcon-arizona.c > > > @@ -44,6 +44,17 @@ > > > #define HPDET_DEBOUNCE 500 > > > #define DEFAULT_MICD_TIMEOUT 2000 > > > > > > +enum { > > > + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > > > + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > > > + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > > > + ARIZONA_MICD_LVL_7, > > > + > > > + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > > > + > > > + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > > > +}; > > > > MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential > > value. > > I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 > > /MICD_LVL_0_TO_8 > > instead of enum keyword. I will do an incremental patch to update them to defines. > Actually Charles has already sent me this patch and I applied it a > while ago. > > I'm inclined to agree with you though, so if you want to send a patch > based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. Thanks, Charles -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/11/2013 07:53 PM, Lee Jones wrote: >> On 11/08/2013 10:19 PM, Charles Keepax wrote: >>> Improve readability by creating a define for each microphone detection >>> level. >>> >>> Signed-off-by: Charles Keepax >>> --- >>> drivers/extcon/extcon-arizona.c | 21 - >>> include/linux/mfd/arizona/registers.h |9 + >>> 2 files changed, 25 insertions(+), 5 deletions(-) >>> >>> diff --git a/drivers/extcon/extcon-arizona.c >>> b/drivers/extcon/extcon-arizona.c >>> index 3c55ec8..6d914ba 100644 >>> --- a/drivers/extcon/extcon-arizona.c >>> +++ b/drivers/extcon/extcon-arizona.c >>> @@ -44,6 +44,17 @@ >>> #define HPDET_DEBOUNCE 500 >>> #define DEFAULT_MICD_TIMEOUT 2000 >>> >>> +enum { >>> + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | >>> + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | >>> + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | >>> + ARIZONA_MICD_LVL_7, >>> + >>> + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, >>> + >>> + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, >>> +}; >> >> MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential >> value. >> I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 >> /MICD_LVL_0_TO_8 >> instead of enum keyword. > > Actually Charles has already sent me this patch and I applied it a > while ago. > Why did you applied extcon driver patch on your tree? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
> On 11/08/2013 10:19 PM, Charles Keepax wrote: > > Improve readability by creating a define for each microphone detection > > level. > > > > Signed-off-by: Charles Keepax > > --- > > drivers/extcon/extcon-arizona.c | 21 - > > include/linux/mfd/arizona/registers.h |9 + > > 2 files changed, 25 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/extcon/extcon-arizona.c > > b/drivers/extcon/extcon-arizona.c > > index 3c55ec8..6d914ba 100644 > > --- a/drivers/extcon/extcon-arizona.c > > +++ b/drivers/extcon/extcon-arizona.c > > @@ -44,6 +44,17 @@ > > #define HPDET_DEBOUNCE 500 > > #define DEFAULT_MICD_TIMEOUT 2000 > > > > +enum { > > + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > > + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > > + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > > + ARIZONA_MICD_LVL_7, > > + > > + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > > + > > + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > > +}; > > MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential > value. > I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 > /MICD_LVL_0_TO_8 > instead of enum keyword. Actually Charles has already sent me this patch and I applied it a while ago. I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
Hi Charles, On 11/08/2013 10:19 PM, Charles Keepax wrote: > Improve readability by creating a define for each microphone detection > level. > > Signed-off-by: Charles Keepax > --- > drivers/extcon/extcon-arizona.c | 21 - > include/linux/mfd/arizona/registers.h |9 + > 2 files changed, 25 insertions(+), 5 deletions(-) > > diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c > index 3c55ec8..6d914ba 100644 > --- a/drivers/extcon/extcon-arizona.c > +++ b/drivers/extcon/extcon-arizona.c > @@ -44,6 +44,17 @@ > #define HPDET_DEBOUNCE 500 > #define DEFAULT_MICD_TIMEOUT 2000 > > +enum { > + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | > + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | > + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | > + ARIZONA_MICD_LVL_7, > + > + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, > + > + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, > +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. > + > struct arizona_extcon_info { > struct device *dev; > struct arizona *arizona; > @@ -765,7 +776,7 @@ static void arizona_micd_detect(struct work_struct *work) > > mutex_lock(>lock); > > - for (i = 0; i < 10 && !(val & 0x7fc); i++) { > + for (i = 0; i < 10 && !(val & MICD_LVL_0_TO_8); i++) { > ret = regmap_read(arizona->regmap, ARIZONA_MIC_DETECT_3, ); > if (ret != 0) { > dev_err(arizona->dev, > @@ -784,7 +795,7 @@ static void arizona_micd_detect(struct work_struct *work) > } > } > > - if (i == 10 && !(val & 0x7fc)) { > + if (i == 10 && !(val & MICD_LVL_0_TO_8)) { > dev_err(arizona->dev, "Failed to get valid MICDET value\n"); > mutex_unlock(>lock); > return; > @@ -798,7 +809,7 @@ static void arizona_micd_detect(struct work_struct *work) > } > > /* If we got a high impedence we should have a headset, report it. */ > - if (info->detecting && (val & 0x400)) { > + if (info->detecting && (val & ARIZONA_MICD_LVL_8)) { > arizona_identify_headphone(info); > > ret = extcon_update_state(>edev, > @@ -827,7 +838,7 @@ static void arizona_micd_detect(struct work_struct *work) >* plain headphones. If both polarities report a low >* impedence then give up and report headphones. >*/ > - if (info->detecting && (val & 0x3f8)) { > + if (info->detecting && (val & MICD_LVL_1_TO_7)) { > if (info->jack_flips >= info->micd_num_modes * 10) { > dev_dbg(arizona->dev, "Detected HP/line\n"); > arizona_identify_headphone(info); > @@ -851,7 +862,7 @@ static void arizona_micd_detect(struct work_struct *work) >* If we're still detecting and we detect a short then we've >* got a headphone. Otherwise it's a button press. >*/ > - if (val & 0x3fc) { > + if (val & MICD_LVL_0_TO_7) { > if (info->mic) { > dev_dbg(arizona->dev, "Mic button detected\n"); > > diff --git a/include/linux/mfd/arizona/registers.h > b/include/linux/mfd/arizona/registers.h > index 4706d3d..10d9e70 100644 > --- a/include/linux/mfd/arizona/registers.h > +++ b/include/linux/mfd/arizona/registers.h > @@ -2196,6 +2196,15 @@ > /* > * R677 (0x2A5) - Mic Detect 3 > */ > +#define ARIZONA_MICD_LVL_0 0x0004 /* MICD_LVL - [2] */ > +#define ARIZONA_MICD_LVL_1 0x0008 /* MICD_LVL - [3] */ > +#define ARIZONA_MICD_LVL_2 0x0010 /* MICD_LVL - [4] */ > +#define ARIZONA_MICD_LVL_3 0x0020 /* MICD_LVL - [5] */ > +#define ARIZONA_MICD_LVL_4 0x0040 /* MICD_LVL - [6] */ > +#define ARIZONA_MICD_LVL_5 0x0080 /* MICD_LVL - [7] */ > +#define ARIZONA_MICD_LVL_6 0x0100 /* MICD_LVL - [8] */ > +#define ARIZONA_MICD_LVL_7 0x0200 /* MICD_LVL - [9] */ > +#define ARIZONA_MICD_LVL_8 0x0400 /* MICD_LVL - [10] > */ > #define ARIZONA_MICD_LVL_MASK0x07FC /* MICD_LVL - > [10:2] */ > #define ARIZONA_MICD_LVL_SHIFT2 /* MICD_LVL - > [10:2] */ > #define ARIZONA_MICD_LVL_WIDTH9 /* MICD_LVL - > [10:2] */ > Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
Hi Charles, On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. + struct arizona_extcon_info { struct device *dev; struct arizona *arizona; @@ -765,7 +776,7 @@ static void arizona_micd_detect(struct work_struct *work) mutex_lock(info-lock); - for (i = 0; i 10 !(val 0x7fc); i++) { + for (i = 0; i 10 !(val MICD_LVL_0_TO_8); i++) { ret = regmap_read(arizona-regmap, ARIZONA_MIC_DETECT_3, val); if (ret != 0) { dev_err(arizona-dev, @@ -784,7 +795,7 @@ static void arizona_micd_detect(struct work_struct *work) } } - if (i == 10 !(val 0x7fc)) { + if (i == 10 !(val MICD_LVL_0_TO_8)) { dev_err(arizona-dev, Failed to get valid MICDET value\n); mutex_unlock(info-lock); return; @@ -798,7 +809,7 @@ static void arizona_micd_detect(struct work_struct *work) } /* If we got a high impedence we should have a headset, report it. */ - if (info-detecting (val 0x400)) { + if (info-detecting (val ARIZONA_MICD_LVL_8)) { arizona_identify_headphone(info); ret = extcon_update_state(info-edev, @@ -827,7 +838,7 @@ static void arizona_micd_detect(struct work_struct *work) * plain headphones. If both polarities report a low * impedence then give up and report headphones. */ - if (info-detecting (val 0x3f8)) { + if (info-detecting (val MICD_LVL_1_TO_7)) { if (info-jack_flips = info-micd_num_modes * 10) { dev_dbg(arizona-dev, Detected HP/line\n); arizona_identify_headphone(info); @@ -851,7 +862,7 @@ static void arizona_micd_detect(struct work_struct *work) * If we're still detecting and we detect a short then we've * got a headphone. Otherwise it's a button press. */ - if (val 0x3fc) { + if (val MICD_LVL_0_TO_7) { if (info-mic) { dev_dbg(arizona-dev, Mic button detected\n); diff --git a/include/linux/mfd/arizona/registers.h b/include/linux/mfd/arizona/registers.h index 4706d3d..10d9e70 100644 --- a/include/linux/mfd/arizona/registers.h +++ b/include/linux/mfd/arizona/registers.h @@ -2196,6 +2196,15 @@ /* * R677 (0x2A5) - Mic Detect 3 */ +#define ARIZONA_MICD_LVL_0 0x0004 /* MICD_LVL - [2] */ +#define ARIZONA_MICD_LVL_1 0x0008 /* MICD_LVL - [3] */ +#define ARIZONA_MICD_LVL_2 0x0010 /* MICD_LVL - [4] */ +#define ARIZONA_MICD_LVL_3 0x0020 /* MICD_LVL - [5] */ +#define ARIZONA_MICD_LVL_4 0x0040 /* MICD_LVL - [6] */ +#define ARIZONA_MICD_LVL_5 0x0080 /* MICD_LVL - [7] */ +#define ARIZONA_MICD_LVL_6 0x0100 /* MICD_LVL - [8] */ +#define ARIZONA_MICD_LVL_7 0x0200 /* MICD_LVL - [9] */ +#define ARIZONA_MICD_LVL_8 0x0400 /* MICD_LVL - [10] */ #define ARIZONA_MICD_LVL_MASK0x07FC /* MICD_LVL - [10:2] */ #define ARIZONA_MICD_LVL_SHIFT2 /* MICD_LVL - [10:2] */ #define ARIZONA_MICD_LVL_WIDTH9 /* MICD_LVL - [10:2] */ Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. Actually Charles has already sent me this patch and I applied it a while ago. I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/11/2013 07:53 PM, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. Actually Charles has already sent me this patch and I applied it a while ago. Why did you applied extcon driver patch on your tree? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, Nov 11, 2013 at 10:53:56AM +, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. I will do an incremental patch to update them to defines. Actually Charles has already sent me this patch and I applied it a while ago. I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. Thanks, Charles -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, 11 Nov 2013, Charles Keepax wrote: On Mon, Nov 11, 2013 at 10:53:56AM +, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. I will do an incremental patch to update them to defines. Actually Charles has already sent me this patch and I applied it a while ago. I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. So I am partly to blame here. My public repos sometimes aren't as up-to-date and my private ones, but if I've replied to a patch and said I've applied it, I inevitably have. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Mon, 11 Nov 2013, Chanwoo Choi wrote: On 11/11/2013 07:53 PM, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. Actually Charles has already sent me this patch and I applied it a while ago. Why did you applied extcon driver patch on your tree? Good point, well presented! I should have just Acked the MFD parts in this case. It's not too late to pull it back - I'll do just that. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/11/2013 08:15 PM, Lee Jones wrote: On Mon, 11 Nov 2013, Charles Keepax wrote: On Mon, Nov 11, 2013 at 10:53:56AM +, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. I will do an incremental patch to update them to defines. Actually Charles has already sent me this patch and I applied it a while ago. I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. So I am partly to blame here. My public repos sometimes aren't as up-to-date and my private ones, but if I've replied to a patch and said I've applied it, I inevitably have. But this patch has only the dependency of extcon subsystem. At least, you have to get 'Acked-by' or 'Signed-off-by' from subsystem maintainer. I didn't agree applying this patch on mainline tree. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
I'm inclined to agree with you though, so if you want to send a patch based on v3.14-rc1 I'd be happy to accept it. Apologies for causing confusion here I checked your tree for the patch and didn't see it, so I assumed you had decided not to apply it. I must have missed it some how. So I am partly to blame here. My public repos sometimes aren't as up-to-date and my private ones, but if I've replied to a patch and said I've applied it, I inevitably have. But this patch has only the dependency of extcon subsystem. At least, you have to get 'Acked-by' or 'Signed-off-by' from subsystem maintainer. I didn't agree applying this patch on mainline tree. Please see my other mail. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On Fri, 08 Nov 2013, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) For the MFD parts: Acked-by: Lee Jones lee.jo...@linaro.org -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels
On 11/11/2013 08:19 PM, Lee Jones wrote: On Mon, 11 Nov 2013, Chanwoo Choi wrote: On 11/11/2013 07:53 PM, Lee Jones wrote: On 11/08/2013 10:19 PM, Charles Keepax wrote: Improve readability by creating a define for each microphone detection level. Signed-off-by: Charles Keepax ckee...@opensource.wolfsonmicro.com --- drivers/extcon/extcon-arizona.c | 21 - include/linux/mfd/arizona/registers.h |9 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 3c55ec8..6d914ba 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -44,6 +44,17 @@ #define HPDET_DEBOUNCE 500 #define DEFAULT_MICD_TIMEOUT 2000 +enum { + MICD_LVL_1_TO_7 = ARIZONA_MICD_LVL_1 | ARIZONA_MICD_LVL_2 | + ARIZONA_MICD_LVL_3 | ARIZONA_MICD_LVL_4 | + ARIZONA_MICD_LVL_5 | ARIZONA_MICD_LVL_6 | + ARIZONA_MICD_LVL_7, + + MICD_LVL_0_TO_7 = ARIZONA_MICD_LVL_0 | MICD_LVL_1_TO_7, + + MICD_LVL_0_TO_8 = MICD_LVL_0_TO_7 | ARIZONA_MICD_LVL_8, +}; MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 haven't the sequential value. I prefer '#define' keyword to define MICD_LVL_1_TO_7 / MICD_LVL_0_TO_7 /MICD_LVL_0_TO_8 instead of enum keyword. Actually Charles has already sent me this patch and I applied it a while ago. Why did you applied extcon driver patch on your tree? Good point, well presented! I should have just Acked the MFD parts in this case. OK, I understand. Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/