From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752521AbcIHA6r (ORCPT ); Wed, 7 Sep 2016 20:58:47 -0400 Received: from mail.kernel.org ([198.145.29.136]:39682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750772AbcIHA6e (ORCPT ); Wed, 7 Sep 2016 20:58:34 -0400 MIME-Version: 1.0 In-Reply-To: <20160907213519.27340-2-stephen.boyd@linaro.org> References: <20160907213519.27340-1-stephen.boyd@linaro.org> <20160907213519.27340-2-stephen.boyd@linaro.org> From: Rob Herring Date: Wed, 7 Sep 2016 19:58:09 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 01/22] of: device: Support loading a module with OF based modalias To: Stephen Boyd Cc: Linux USB List , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , linux-arm-msm , Andy Gross , Bjorn Andersson , Neil Armstrong , Arnd Bergmann , Felipe Balbi , Peter Chen , "devicetree@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 7, 2016 at 4:34 PM, Stephen Boyd wrote: > In the case of ULPI devices, we want to be able to load the > driver before registering the device so that we don't get stuck > in a loop waiting for the phy module to appear and failing usb > controller probe. Currently we request the ulpi module via the > ulpi ids, but in the DT case we might need to request it with the > OF based modalias instead. Add a common function that allows > anyone to request a module with the OF based modalias. > > Cc: Rob Herring > Cc: > Signed-off-by: Stephen Boyd > --- > drivers/of/device.c | 23 +++++++++++++++++++++++ > include/linux/of_device.h | 6 ++++++ > 2 files changed, 29 insertions(+) Acked-by: Rob Herring