From: Brian Norris <computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Heiner Kallweit <hkallweit1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Javier Martinez Canillas
<javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>,
Dmitry Torokhov
<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading
Date: Thu, 12 Nov 2015 10:59:26 -0800 [thread overview]
Message-ID: <20151112185926.GC8456@google.com> (raw)
In-Reply-To: <56104E88.3040807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
+ others
On Sat, Oct 03, 2015 at 11:54:16PM +0200, Heiner Kallweit wrote:
> Seems like commit 43163022927b6e7d202a7e6f939c3f392465494d
> (allow arbitrary OF matching for "jedec,spi-nor") broke autoloading
> of the m25p80 module.
> MODALIAS is "spi:spi-nor" and removing "spi-nor" as device alias
> prevents module autoloading.
>
> Of course we could revert the removal of the "spi-nor" device alias.
> However it might be better to switch to DT-based matching for
> DT-configured devices.
>
> Adding a call to of_device_uevent_modalias to spi_uevent in spi.c
> solved the issue for me, drawback however is that just the first
> "compatible" value is used as modalias. In case of m25p80 this means
> that "jedec,spi-nor" has to be the first "compatible" value.
> This constraint might be too strict ..
>
> Having said that I'm not sure what could be a better way to fix
> the issue than just re-introducing the "spi-nor" device alias.
Is this [1] getting fixed in SPI any time soon? Looks like there was
some progress [2], but AFAICT it's not completed.
I'd just like to know what the way forward here should be for m25p80.
Really, "jedec,spi-nor" never autoloaded modules very reliably because
of the SPI core constaints. So I'm not sure I'd consider this a
regression, and I might be OK waiting around if it'll be fixed in a
reasonable time frame.
FWIW, I can do testing if somebody's tackling this still. Just CC me.
Regards,
Brian
[1] https://lkml.org/lkml/2014/9/11/458
[2] https://lkml.org/lkml/2015/8/20/109
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2015-11-12 18:59 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <56104E88.3040807@gmail.com>
[not found] ` <56104E88.3040807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-12 18:59 ` Brian Norris [this message]
[not found] ` <20151112185926.GC8456-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-13 19:40 ` spi: OF module autoloading is still broken (was: Re: m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading) Brian Norris
[not found] ` <20151113194031.GI8456-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-13 22:12 ` Mark Brown
2015-11-13 22:51 ` Brian Norris
[not found] ` <20151113225113.GJ8456-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-13 23:14 ` Mark Brown
[not found] ` <20151113231410.GV12392-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-11-13 23:48 ` Brian Norris
[not found] ` <20151113234857.GK8456-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-16 13:53 ` Mark Brown
[not found] ` <20151116135342.GD31303-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-11-16 17:26 ` spi: OF module autoloading is still broken Javier Martinez Canillas
[not found] ` <564A11D9.80109-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-16 17:51 ` Mark Brown
[not found] ` <20151116175112.GH31303-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-11-16 18:00 ` Javier Martinez Canillas
2015-11-16 17:19 ` Javier Martinez Canillas
[not found] ` <564A101F.9090807-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-16 17:49 ` Mark Brown
[not found] ` <20151116174942.GG31303-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-11-16 17:57 ` Javier Martinez Canillas
2015-11-16 19:24 ` Brian Norris
[not found] ` <20151116192434.GO8456-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-16 20:00 ` Javier Martinez Canillas
[not found] ` <564A35EB.5080008-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-16 20:47 ` Brian Norris
2015-11-16 21:32 ` Javier Martinez Canillas
[not found] ` <564A4B66.6090107-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-16 21:51 ` Brian Norris
[not found] ` <20151116215144.GQ8456-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-17 13:14 ` Javier Martinez Canillas
[not found] ` <564B2833.8030100-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2015-11-17 13:19 ` Mark Brown
2015-11-17 13:36 ` Javier Martinez Canillas
2015-11-18 20:07 ` Javier Martinez Canillas
2015-11-19 12:47 ` Javier Martinez Canillas
2015-11-17 13:34 ` Mark Brown
[not found] ` <20151117133455.GQ31303-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-11-17 13:38 ` Javier Martinez Canillas
2015-10-03 20:41 m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading Heiner Kallweit
[not found] ` <56103D97.60906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-10-03 21:35 ` Mark Brown
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=20151112185926.GC8456@google.com \
--to=computersforpeace-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=hkallweit1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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;
as well as URLs for NNTP newsgroup(s).