Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5455990imm; Tue, 16 Oct 2018 10:29:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV63dNoKIyOYMIRW66b59TUtc+xQXYvXSYme8anidjuMkRwRdwy5TJ8UBc3oOJZqeSmROfy0o X-Received: by 2002:a62:425b:: with SMTP id p88-v6mr22989360pfa.96.1539710975908; Tue, 16 Oct 2018 10:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710975; cv=none; d=google.com; s=arc-20160816; b=Buf8sFRv5YgSOpUDykSufMqtK0NScJx8Cc1w0BEXH5Tz0qYWeujkxO3UCcjs8DfpxW arneQrKJWJtFSWDq9aLhdnft10ebBBQdtyzYwr8Ke1OWi9i9ueBNQ0do0PlEgS38qj5K LNv8zdqckzJ2JZIgQB3eq76+Z124poFT1GVYsoCvHzz+I1lfohVvTyfds40B9DKe44qH cMnVIeS0jQv/9gzIgRmAmgupmVMTez3mEs+FwcuVY/J5uO7+oTQRq3NbBDqYtSpzLgBk wTBXhSApUyfE5QWopmKri3fJASRthNn8XS4OnjtZwhAEeliGzzUNsH1LBJYvzrQWSCdm FVXA== 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=dyOYU4bnD8LxCeQcmliEqJidu0BUZu01wc1SwZCunrk=; b=H9d/DLxBSp6RS2XNgTc6SfPFWfK9IG5qRjykAOtSTbz4XXrCCKNlgNy5bn+c4gS1Qe EulfXrFTtMRuJVlUJRrsuAZ/z9PiTwhuU4g5B7P7Y4Q63kUS1lQvZbOpKoz8+YAjFkQj iatfOXzw/yaKrIYElXXrPy5JUG+Ks5cD1ZU/Jl9m/nmj/S01jeFsE31xm4fpfpzrCUf7 pI2pk9Ar9HGg2TXb6rsrh28f8yKIiGiZiGZv0fzL0wa0kPyifbsFYpRFSf6ocS8oKbyF iYbsqhaPigOZx+jwa8VQJa0XNIMy22/G8U5bh+TATCtzU3jhtfQD9k6JKWu5/pbo3pct Pn2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hbi1JjBK; 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 m66-v6si15749473pfm.191.2018.10.16.10.29.20; Tue, 16 Oct 2018 10:29:35 -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=hbi1JjBK; 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 S1731761AbeJQBQL (ORCPT + 99 others); Tue, 16 Oct 2018 21:16:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbeJQBQK (ORCPT ); Tue, 16 Oct 2018 21:16:10 -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 83F6C20866; Tue, 16 Oct 2018 17:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710684; bh=xf4uPhx1Y1fd2hCxERAYbvnulWxBS+P5phOgWJDUgvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hbi1JjBKuNI8LuaBXYYMf506ir9EYY7wyP6gbzEl09HD1gjo8ZJ/HiWT9IN8JVlqb tQliBkb3AzqTf0u2jtO+hBa9a4RewHM/gMdIXN4JCfI68HJQ/6fyvTWvLImyQROz/R 8yr/mSh+hGQXaou8AEkiiiuvGgLLWKeLVXYnd+q8= 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.9 05/71] mfd: omap-usb-host: Fix dts probe of children Date: Tue, 16 Oct 2018 19:09:02 +0200 Message-Id: <20181016170539.636542236@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@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.9-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); }