Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1637070

Re: [PATCH 2/2] [PATCH 2/2] iio: adc: sun4i-gpadc-iio: Fix module autoload when OF devices are registered

From Jonathan Cameron <jic23@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] [PATCH 2/2] iio: adc: sun4i-gpadc-iio: Fix module autoload when OF devices are registered
Date 2017-05-08 00:10 +0200
Message-ID <tECxk-3oj-23@gated-at.bofh.it> (permalink)
References <tCsiJ-6wM-7@gated-at.bofh.it> <tCsiK-6wM-25@gated-at.bofh.it> <tCvzY-hZ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 02/05/17 03:09, Chen-Yu Tsai wrote:
> On Tue, May 2, 2017 at 6:45 AM, Eduardo Molinas <edu.molinas@gmail.com> wrote:
>> If the driver is built as a module, it won't be autloaded if the devices
>> are registered via OF code because the OF device table
>> entries are not exported as aliases
>>
>> Before the patch:
>> $ modinfo drivers/iio/adc/sun4i-gpadc-iio.ko | grep alias
>> alias:          platform:sun6i-a31-gpadc-iio
>> alias:          platform:sun5i-a13-gpadc-iio
>> alias:          platform:sun4i-a10-gpadc-iio
>>
>> After the patch:
>> $ modinfo drivers/iio/adc/sun4i-gpadc-iio.ko | grep alias
>> alias:          of:N*T*Callwinner,sun8i-a33-thsC*
>> alias:          of:N*T*Callwinner,sun8i-a33-ths
>> alias:          platform:sun6i-a31-gpadc-iio
>> alias:          platform:sun5i-a13-gpadc-iio
>> alias:          platform:sun4i-a10-gpadc-iio
>>
>> Signed-off-by: Eduardo Molinas <edu.molinas@gmail.com>
> 
> Acked-by: Chen-Yu Tsai <wens@csie.org>
> 
> Can we merge this as a fix for 4.12?
Applied to the fixes-togreg branch of iio.git.

Thanks,

Jonathan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] [PATCH 1/2] iio: adc: sun4i-gpadc-iio: Fix module autoload when PLATFORM devices are registered Eduardo Molinas <edu.molinas@gmail.com> - 2017-05-02 00:50 +0200
  [PATCH 2/2] [PATCH 2/2] iio: adc: sun4i-gpadc-iio: Fix module autoload when OF devices are registered Eduardo Molinas <edu.molinas@gmail.com> - 2017-05-02 00:50 +0200
    Re: [PATCH 2/2] [PATCH 2/2] iio: adc: sun4i-gpadc-iio: Fix module  autoload when OF devices are registered Chen-Yu Tsai <wens@csie.org> - 2017-05-02 04:20 +0200
      Re: [PATCH 2/2] [PATCH 2/2] iio: adc: sun4i-gpadc-iio: Fix module  autoload when OF devices are registered Jonathan Cameron <jic23@kernel.org> - 2017-05-08 00:10 +0200
  Re: [PATCH 1/2] [PATCH 1/2] iio: adc: sun4i-gpadc-iio: Fix module  autoload when PLATFORM devices are registered Chen-Yu Tsai <wens@csie.org> - 2017-05-02 04:20 +0200
    Re: [PATCH 1/2] [PATCH 1/2] iio: adc: sun4i-gpadc-iio: Fix module  autoload when PLATFORM devices are registered Jonathan Cameron <jic23@kernel.org> - 2017-05-08 00:10 +0200

csiph-web