[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOesGMj6nyjYjxQ23Vk0L76fYQo7YPeKoKrPptq8TVdv7Cwa-g@mail.gmail.com>
Date: Thu, 18 Apr 2013 15:05:47 -0700
From: Olof Johansson <olof@...om.net>
To: Matthew Garrett <matthew.garrett@...ula.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
"platform-driver-x86@...r.kernel.org"
<platform-driver-x86@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Benson Leung <bleung@...omium.org>, dirk@...ndel.org,
Olof Johansson <olof@...om.net>
Subject: Re: [PATCH] Platform: x86: chromeos_laptop: defer probing if no i2c
busses found
On Thu, Apr 18, 2013 at 2:55 PM, Olof Johansson <olof@...om.net> wrote:
> If chromeos_laptop is loaded before the DRM driver, the i2c busses will
> not yet be available. Defer probe for that case and try again later.
>
> Trickling the error up to the module init function is unfortuantely a
> little awkward, since the i2c bus lookup and device registration happens
> as a dmi callback.
Uh, wait, hold off on this. I'm returning -EPROBE_DEFER from the
module init function. It's not valid outside of the driver model.
-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists