Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11963imu; Thu, 8 Nov 2018 13:54:24 -0800 (PST) X-Google-Smtp-Source: AJdET5fFlhQJr+bFMdZOXKxhKmjxkA06GHz/aETGE0c+egx7EsiAmIQUmiPZY+rJZrKuc6Z4gNZH X-Received: by 2002:a62:9316:: with SMTP id b22-v6mr6424369pfe.193.1541714064403; Thu, 08 Nov 2018 13:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714064; cv=none; d=google.com; s=arc-20160816; b=H8epxc+Qj3+uygjYiDqjaDa8Te2UFeeIUGSKBk/xGShBQ3fYnNO1hxvZcZ8PgvNtzj IOKcrBoCyr2s8Q5BAO3etxUeh0JN4/a040X+oDITGZVAqElHf8bVZPRDLMGh1AIFKQrf XX7uHp9y0yGQUCLRFr6HwZhefGEWxdVINzjJn/6oaPjytZONprww2CLoO6IRcAItVUEK ulygD2TGHL4s30HLmsebeNqST5Lij/tZ0uGCHOmQ3Y+p59TSupNjPNMIAy+gASwlePyy q1wo6ASEchNKU+AxYF33E62H3cggsHooi/vdfIn/Dgt1nB+jb7Lrs37NMj79PPRmJ051 S8Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nxfESlp+zxJQ3/6UjA1TtHlAqtNzTm0ZCWjhJCjlR/o=; b=LWun3RVvvab4OsIPOfCt9tEnRdXIF1cPQaJ3cOaJBWDDDaVeOgWsi1UwXuaCgkFvJf dw/+mAXO875DAcfNZhb3UQzfwbz1g+22BYTaK195pR6Pm4RK5AbCrs8jI5Od6qmhpu3k +Ts/qeQg9RH4rZqbO4VYV8JZZ8Pj1aeQ6MQYoWxM7sgfRFwcOtntelSoi4povArzCtxp 6TdnvJcwmrYM7KN0gIJBgLhkOd7tUmsDI3+MR/2pMXZoyfPyKSsueh1bdNo9H8p10MZC VEZukbMRTlJMpRpc+k8fHRsEfO2kmjY5A1Z28+oTJ1efNeKpvfjATPH5PMyhmuf/Epli ZP/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LVtEg8x3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si4610810pgh.251.2018.11.08.13.54.03; Thu, 08 Nov 2018 13:54:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LVtEg8x3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbeKIHaz (ORCPT + 99 others); Fri, 9 Nov 2018 02:30:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:45336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727371AbeKIHay (ORCPT ); Fri, 9 Nov 2018 02:30:54 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 32E4F20857; Thu, 8 Nov 2018 21:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714008; bh=NhpBTm/oRLe0nuBNiKKCgeoRKr/uUmuCh6seNyj/Uas=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LVtEg8x31cAvg3U9/ZlHRx/QAYsZ+9lehJu9AisQYagxueWpwJ4QkBw+P4aoCqAMQ JXXLNGpxYN9wejOwvEUX1vNY955hrIWpVW5W4wSmwgso5UfzyThpMS5XZnP5CfPUUQ 7GrWgTsqD98yxCOIYLKrcvlujA/Aij7epnkSOmlU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Roger Quadros , Lee Jones , Sasha Levin Subject: [PATCH 3.18 002/144] mfd: omap-usb-host: Fix dts probe of children Date: Thu, 8 Nov 2018 13:49:33 -0800 Message-Id: <20181108215054.961454759@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tony Lindgren [ Upstream commit 10492ee8ed9188d6d420e1f79b2b9bdbc0624e65 ] It currently only works if the parent bus uses "simple-bus". We currently try to probe children with non-existing compatible values. And we're missing .probe. I noticed this while testing devices configured to probe using ti-sysc interconnect target module driver. For that we also may want to rebind the driver, so let's remove __init and __exit. Signed-off-by: Tony Lindgren Acked-by: Roger Quadros Signed-off-by: Lee Jones Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/mfd/omap-usb-host.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -558,8 +558,8 @@ static int usbhs_omap_get_dt_pdata(struc } static const struct of_device_id usbhs_child_match_table[] = { - { .compatible = "ti,omap-ehci", }, - { .compatible = "ti,omap-ohci", }, + { .compatible = "ti,ehci-omap", }, + { .compatible = "ti,ohci-omap3", }, { } }; @@ -886,6 +886,7 @@ static struct platform_driver usbhs_omap .pm = &usbhsomap_dev_pm_ops, .of_match_table = usbhs_omap_dt_ids, }, + .probe = usbhs_omap_probe, .remove = usbhs_omap_remove, }; @@ -895,9 +896,9 @@ MODULE_ALIAS("platform:" USBHS_DRIVER_NA MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("usb host common core driver for omap EHCI and OHCI"); -static int __init omap_usbhs_drvinit(void) +static int omap_usbhs_drvinit(void) { - return platform_driver_probe(&usbhs_omap_driver, usbhs_omap_probe); + return platform_driver_register(&usbhs_omap_driver); } /* @@ -909,7 +910,7 @@ static int __init omap_usbhs_drvinit(voi */ fs_initcall_sync(omap_usbhs_drvinit); -static void __exit omap_usbhs_drvexit(void) +static void omap_usbhs_drvexit(void) { platform_driver_unregister(&usbhs_omap_driver); }