Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1296724
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5] extcon: add Maxim MAX3355 driver |
| Date | 2015-12-22 12:20 +0100 |
| Message-ID | <qIt8Z-3dF-3@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <qHNjs-1Lq-11@gated-at.bofh.it> <qHPOi-3sH-13@gated-at.bofh.it> <qHYyd-vp-13@gated-at.bofh.it> <qI6vL-5Iq-9@gated-at.bofh.it> <qIjMm-5Et-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello.
On 12/22/2015 4:13 AM, Chanwoo Choi wrote:
>>>>> This patch depend on GPIOLIB configuration as following:
>>>>> I modified it with following diff and applied it.
>>>>>
>>>>> diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig
>>>>> index ba4db7d..3d89e60 100644
>>>>> --- a/drivers/extcon/Kconfig
>>>>> +++ b/drivers/extcon/Kconfig
>>>>> @@ -54,6 +54,7 @@ config EXTCON_MAX14577
>>>>>
>>>>> config EXTCON_MAX3355
>>>>> tristate "Maxim MAX3355 USB OTG EXTCON Support"
>>>>> + depends on GPIOLIB || COMPILE_TEST
>>>>
>>>> If it won't compile w/o gpiolib, what's the use of COMIPLE_TEST?
>>>> And no, it shouldn't depend on gpiolib. It has empty stubs for the case of CONFIG_GPIOLIB=n. Obviously something is wrong with the GPIO headers, I'll look into it.
>>>
>>> Yes. When GPIOLIB is disabled, the build issue don't happen.
>>
>> What? It surely does happen!
>
> hmm....
> Sure. you need to check the include/linux/gpio/consumer.h.
>
> Because of build error happen, you miss to include the "linux/gpio/consumer.h"
> header file in extcon-max3355.c. Please test it for enough time.
Yes, with this file #include'd, it build fine now.
>>> because include/linux/gpio/consumer.h implement the dummy function
>>> for all gpio functions if CONFIG_GPIOLIB is disabled.
>>
>> Linus W. advised to #include this header explicitly -- I'll try and post.
>
> Don't necessary. I already updated it including the "include/linux/gpio/consumer.h".
I saw that, yes.
>>> For correct operation of max3355, you should add the dependency
>>> to the extcon-max3355.c driver. This driver use the GPIO library
>>> certainly.
>>
>> I disagree. The driver will just cease to load in this case. I don't see why we need such dependency. Only compilation time dependencies should be
>> specified, I think.
>
> This driver have to depend on GPIOLIB.
> Why are you disagreeing the COMPILE_TEST dependency? It is just compile test
> without anything.
I agree now. I still disagree about the gpiolib dependency though.
MBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5] extcon: add Maxim MAX3355 driver Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2015-12-19 00:20 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Chanwoo Choi <cwchoi00@gmail.com> - 2015-12-20 15:40 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2015-12-20 18:20 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Chanwoo Choi <cw00.choi@samsung.com> - 2015-12-21 03:40 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2015-12-21 12:10 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2015-12-21 20:40 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Chanwoo Choi <cw00.choi@samsung.com> - 2015-12-22 02:20 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2015-12-22 12:20 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Chanwoo Choi <cw00.choi@samsung.com> - 2015-12-23 03:20 +0100
Re: [PATCH v5] extcon: add Maxim MAX3355 driver Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2015-12-23 21:00 +0100
csiph-web