Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2234087imm; Thu, 18 Oct 2018 11:07:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV60HaiboTXvX9p05J+2L3GAItBkREZaqrs4xqqrHK5SUxp5D1U6dzBuaTPAcYGaq14pHZtPW X-Received: by 2002:a63:df03:: with SMTP id u3-v6mr10505934pgg.362.1539886063420; Thu, 18 Oct 2018 11:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539886063; cv=none; d=google.com; s=arc-20160816; b=JSRaEvZMWqtSMMBdw43/C6zpuZi4hqV/lvRuO+GFidd1+jWfqo8Qq1QnJZKQExGiNC g3/rO6WjtLA9UdOxCeXg+WfDViL3ltXISi0l4ltQ9YjRLrraqXfvBVeodbDz2g+NLv4+ ncxjJp2ksNrCCOROEUd/TGWHbHqymW7TerBmkB+OhC/oDB1rTvIhgCNvdGyFO1DGia9S ShvgsFjktzTemrvut4GvD+7bXuWwxMt3xfHZPhr6BJXwQu0k/xLdwtF0v5Z5ii93ecO9 ntmUzxhMPGbIndfavKoc0naHu2QfMPUrWCYbJQc1H48LrFDLVha+NqELeG6244jFoan2 zwbA== 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=crseLZf+G41t7r98RMcqCryltSgZQKPJIEKu0vxMmtY=; b=aeZjFN7dw8hkP+yfibnkcTZ7dh3f0wTWEUoK/B0CA9uO8RVhF/QV1z5cjrDD0p1KZz vj1S5Ucu7qLKPad9Zp7opLKgcO08E+Zdx7v68odR9ZU9imXSZjG5/89eWbPV6GrpaeFI BdUo8HP0f2Oy97YXQgCe7G/ja5G9eJwQHfwPUe/k2uCTMVo52D5yuq6INYzS5gtOHhyR xgu2VWlS6BIacvhdjiKkIE9gnUeDRc5hHz9LippG098IsBneywPWfePmrKD1JK35h8cs z5Kdy93k02HgU9yFZeYAgoFejtkyqFiDEcVv+f3ZLInzkrUCxXpXi0lU0Xoi5OUi2xD8 qXUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VqrWOJtL; 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 3-v6si20348679plx.33.2018.10.18.11.07.27; Thu, 18 Oct 2018 11:07:43 -0700 (PDT) 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=VqrWOJtL; 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 S1730444AbeJSCI0 (ORCPT + 99 others); Thu, 18 Oct 2018 22:08:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:57404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbeJSCI0 (ORCPT ); Thu, 18 Oct 2018 22:08:26 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 D70E120658; Thu, 18 Oct 2018 18:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885978; bh=xJb0c1oyBo1O/MtR2zxf5Kh2i6JDNQGziMAKtW4q+Jo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VqrWOJtLUyIpJzQpYEAE5IaVETrqqHPUKFgIlf239gpli7tTmAfO664cLjNAp2mKw AGUA/GsEKSt/JqhX/WCwp4ZS8VD8uuHLpnNmF7A3vWTFMH+DBwKaCs9A6a6ubX7FTK UdBr49WlThZx+uNIZUnvnT88YCCs8nUp7aCG2BEs= 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 4.4 04/48] mfd: omap-usb-host: Fix dts probe of children Date: Thu, 18 Oct 2018 19:54:39 +0200 Message-Id: <20181018175428.064612168@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@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 4.4-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 @@ -548,8 +548,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", }, { } }; @@ -875,6 +875,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, }; @@ -884,9 +885,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); } /* @@ -898,7 +899,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); }