From: Javier Martinez Canillas <javierm@redhat.com>
To: Kieran Bingham <kieran.bingham@ideasonboard.com>,
linux-kernel@vger.kernel.org
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>, linux-media@vger.kernel.org
Subject: Re: [PATCH] media: i2c: adv748x: Export I2C device table entries as module aliases
Date: Wed, 9 Aug 2017 12:58:18 +0200 [thread overview]
Message-ID: <a984305d-6ba2-5b1a-b68a-98a9bcd245df@redhat.com> (raw)
In-Reply-To: <e446df61-defc-4c9e-0f5a-d7afce878156@ideasonboard.com>
Hi Kieran,
On 08/09/2017 12:29 PM, Kieran Bingham wrote:
> Hi Javier,
>
> Thankyou for the patch
>
You are welcome.
> On 09/08/17 10:37, Javier Martinez Canillas wrote:
>> The I2C core always reports a MODALIAS of the form i2c:<foo> even if the
>> device was registered via OF, and the driver is only exporting the OF ID
>> table entries as module aliases.
>>
>> So if the driver is built as module, autoload won't work since udev/kmod
>> won't be able to match the registered OF device with its driver module.
>
> Good catch, and perhaps I should have known better :D
>
> I've only worked on this driver as a built-in so far :-) #BadExcuses
>
A better excuse I think is that after all these years, one would had thought
that the I2C OF modalias issue would had been finally fixed, but not yet :)
>> Before this patch:
>>
>> $ modinfo drivers/media/i2c/adv748x/adv748x.ko | grep alias
>> alias: of:N*T*Cadi,adv7482C*
>> alias: of:N*T*Cadi,adv7482
>> alias: of:N*T*Cadi,adv7481C*
>> alias: of:N*T*Cadi,adv7481
>>
>> After this patch:
>>
>> modinfo drivers/media/i2c/adv748x/adv748x.ko | grep alias
>> alias: of:N*T*Cadi,adv7482C*
>> alias: of:N*T*Cadi,adv7482
>> alias: of:N*T*Cadi,adv7481C*
>> alias: of:N*T*Cadi,adv7481
>> alias: i2c:adv7482
>> alias: i2c:adv7481
>>
>> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
>
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>
Thanks!
Best regards,
--
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement
Red Hat
next prev parent reply other threads:[~2017-08-09 10:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-09 9:37 Javier Martinez Canillas
2017-08-09 10:29 ` Kieran Bingham
2017-08-09 10:58 ` Javier Martinez Canillas [this message]
2017-08-09 11:05 ` Kieran Bingham
2017-08-09 11:16 ` Javier Martinez Canillas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a984305d-6ba2-5b1a-b68a-98a9bcd245df@redhat.com \
--to=javierm@redhat.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®