Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp749215imm; Thu, 4 Oct 2018 02:41:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ySmwVR2yOOEwYnrr6aNyNBi+J7S57azo2DuKrNXdaiRw9LJ2dNjGGR6AjrQOOBr21bYlY X-Received: by 2002:a17:902:7246:: with SMTP id c6-v6mr5834252pll.304.1538646103215; Thu, 04 Oct 2018 02:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538646103; cv=none; d=google.com; s=arc-20160816; b=rvIMPI6r3gOfizyucIqpPxsxCvYHxv2rinR5OT0IYgXydsO+XG7Q54pn2Ld1MZnSGu d0UfjeJfnD6QAPxl/PysOB9bYfsoZOGqydAaD6jNW2UT/iMovJsaEhY7s00Ned/yEdGA YOlaljwDtMk8ldtCVWKayLAmUetaSULdmeLtTRzySX8CvTHDruSKcdrhWMA2YQIHii0V /rJL87jCb/hoRf0jpHnNeYO8wWyh0ImUxJRLuR4pdn0IwN2nUh73oP4Ftn1dyZvA8+tT qa/SrZyexagIOODTJUdLJcSJ1p9gnNhNvJoVGuPVIe9JylNTGaFMBMCXyAXNKU2s4Jxn coBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:nodisclaimer:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=szDhh6nOqnkJbgduW4XKOjlZH4n18Fl3gh7dYiDtXAE=; b=rAd0cztCLz6SVZAeNLqlli+mD5FiNY4ZTAACKe4tC8AsUedXz6pDDVke3xn5EP9HnK Xv+9g/Zx5DPg1KjAjLzp4lVhTQSmE3nxUJ0Y93CYcHdt/3ikAmOCxTeECd0SnXd2mtVL +10onaIyTt2GB/pRqdHZ+8ghpk6hWABU+ZnuuzxWQoHRDO1mC+34Q2FXJEWQpW57kiut SLPqIGyH7ZEbMysPT+L8FOJelgRJIinKJl5B1rv1yTX7GPGC8BpefF7ky1Jn34vc2Xj1 XUiDRH+K4kZiVUUAx9IGYy5wlbmJPgP0EdYeoJay+7J6r5ONFb0vOCI3ZBHq2nLhXYG8 bt4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=KFGs94RJ; 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 p71-v6si4812824pfk.275.2018.10.04.02.41.25; Thu, 04 Oct 2018 02:41: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=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=KFGs94RJ; 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 S1727675AbeJDQcI (ORCPT + 99 others); Thu, 4 Oct 2018 12:32:08 -0400 Received: from mail-eopbgr10055.outbound.protection.outlook.com ([40.107.1.55]:51671 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727046AbeJDQcI (ORCPT ); Thu, 4 Oct 2018 12:32:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=szDhh6nOqnkJbgduW4XKOjlZH4n18Fl3gh7dYiDtXAE=; b=KFGs94RJwlL778gkZFHxMZaAtjwdMY9fLYGl2usjQUj0xDt7w9iH6AFDBO0zamDNBQHIeiQ9LNXrTOz/EZnJxCTq1T35yKc93PcO/h3IMMhieJ8vtMsncYC7tH6bH+iq//9cInzYBb9XieqxZUBKnIl5dwOp+xQ0IS2KaiS3DCg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Grant.Likely@arm.com; Received: from C02T10KAHF1T-1622.local (217.140.96.140) by VI1PR0801MB1757.eurprd08.prod.outlook.com (2603:10a6:800:5a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.18; Thu, 4 Oct 2018 09:39:36 +0000 Cc: nd@arm.com, Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux ARM , linuxppc-dev@lists.ozlabs.org, Frank Rowand Subject: Re: drivers binding to device node with multiple compatible strings To: Grant Likely , leoyang.li@nxp.com References: From: Grant Likely Message-ID: Date: Thu, 4 Oct 2018 10:39:33 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: CWLP265CA0054.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:12::18) To VI1PR0801MB1757.eurprd08.prod.outlook.com (2603:10a6:800:5a::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9041118f-fee6-4654-e8ec-08d629dd4d23 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR0801MB1757; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801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8Y3lbvH7S+qblcOmIkueDxXX6c/47IRhLlCbLRSvvvn08Yt4+GFfRemzUl2WRk1is7dUJlhe2qLDoBUboEwRiyVvQRzhrLwJMXGX0yOZ4TTco2JKTDDq+cITSWxotird3v/pL+7t471xXlRVkr3aLmqHlmcuSDgJTR9uc7qT+YKfS4ZCap5UNWHB93V+ODkSaLL9GajPyur1HzrT8k7ihOKxe5FOGEfRUbp2GLZR6PjCdZVacEzSDYP32kQBqKFcJxWYh73yxA1Irycif10=;4:WTgXM+Wc4XrKJVHwj8LrCOtX298ERU/gX6w7D/5jyDPx+sCQRqnozsOesmzd/sSlZRwOVBNDeYYEzWq9PcGtTME9h4PwF3WJ2I5t+Wx/NxZTNgGIb2Xfrn3Z8vX1yAHb0VoT4Tdx7t2cQlptkjQbpHIZLFQ5A7sX9gy3HguTXdNrHhQ8FqWTu7iHF4+L0X7mb0n0joS7JrMgjBVhMGGvqppZ8EyNo7EvrCvETouAAWB5Vc8y5lt0L/tp1c8V41fRxr/zmEedNIp/izzIvnr8NfZxEz4MtOcJMCtaWEb1sMi0YaN4I/0Yso5EqljbMsOZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(10201501046)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699051);SRVR:VI1PR0801MB1757;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0801MB1757; X-Forefront-PRVS: 0815F8251E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(366004)(396003)(136003)(189003)(199004)(31014005)(4326008)(25786009)(3846002)(76176011)(65826007)(6116002)(6666003)(81156014)(8936002)(5660300001)(14444005)(6486002)(68736007)(36756003)(52116002)(2486003)(52146003)(23676004)(229853002)(67846002)(316002)(31686004)(54906003)(58126008)(478600001)(6512007)(47776003)(72206003)(65806001)(65956001)(66066001)(106356001)(50466002)(105586002)(93886005)(81166006)(97736004)(305945005)(230700001)(476003)(7736002)(186003)(53936002)(64126003)(31696002)(26005)(6246003)(86362001)(956004)(2616005)(2906002)(486006)(11346002)(39060400002)(16526019)(53546011)(446003)(386003)(6506007)(8676002)(44832011);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0801MB1757;H:C02T10KAHF1T-1622.local;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDFNQjE3NTc7MjM6T2kwL2I1eDVYZTVBRTFYSU1LdEVwb1Bi?= =?utf-8?B?Rk51bjNtNlZsaGw3dkg1Z3ZSV1dGbXEyb0dCYTZHeVRmK2JVeW9nSkdSSzJJ?= =?utf-8?B?dlR0cXZTYmZJdU9CdDJzSTBzQlVUZVVPTldGdGh2ZnV3WGJwZDkyRlIyYmg5?= =?utf-8?B?SUoyM1l1ZzRQMzZ6bTNBSVo1MmtSdkNNOFk4TlhZWk5kdHJObTJyVm5YNVpE?= =?utf-8?B?QXBJRUtJZ0pVSmVKL2xIK0FDei9aWXA2YkZCTnFjeUY0TGJ2MjFhU0c2NUFu?= =?utf-8?B?cXRSZVVIaitHT3ZwMmQwYmhSeEVlMFREZ1ZvbTl2dEpkWHF2SHl6U3ZZVFRu?= =?utf-8?B?RCtKSnNYZFFycGs4R29lbWl3bDBtSjN3aStBTVc4dEdxZi91QUh4RVc1QTh6?= =?utf-8?B?TWhETG1xMllVMWlORUdDNjBja2RnYUhNRENyV2NlakNsaFNlNWtmcE1EUzlR?= =?utf-8?B?S1RTVUFEUEluSm1NaktlM0V4ZG9IQ3QwdGdwODZZN2sv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Output: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 09:39:36.8295 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9041118f-fee6-4654-e8ec-08d629dd4d23 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1757 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2018 10:32, Grant Likely wrote: > On Fri, Sep 28, 2018 at 10:01 PM Li Yang wrote: >> >> On Fri, Sep 28, 2018 at 3:07 PM Rob Herring wrote: >>> >>> On Thu, Sep 27, 2018 at 5:25 PM Li Yang wrote: >>>> >>>> Hi Rob and Grant, >>>> >>>> Various device tree specs are recommending to include all the >>>> potential compatible strings in the device node, with the order from >>>> most specific to most general. But it looks like Linux kernel doesn't >>>> provide a way to bind the device to the most specific driver, however, >>>> the first registered compatible driver will be bound. >>>> >>>> As more and more generic drivers are added to the Linux kernel, they >>>> are competing with the more specific vendor drivers and causes problem >>>> when both are built into the kernel. I'm wondering if there is a >>>> generic solution (or in plan) to make the most specific driver bound >>>> to the device. Or we have to disable the more general driver or >>>> remove the more general compatible string from the device tree? >>> >>> It's been a known limitation for a long time. However, in practice it >>> doesn't seem to be a common problem. Perhaps folks just remove the >>> less specific compatible from their DT (though that's not ideal). For >>> most modern bindings, there's so many other resources beyond >>> compatible (clocks, resets, pinctrl, etc.) that there are few generic >>> drivers that can work. >>> >>> I guess if we want to fix this, we'd need to have weighted matching in >>> the driver core and unbind drivers when we get a better match. Though >>> it could get messy if the better driver probe fails. Then we've got to >>> rebind to the original driver. >> >> Probably we can populate the platform devices from device tree after >> the device_init phase? So that all built-in drivers are already >> registered when the devices are created and we can try find the best >> match in one go? For more specific loadable modules we probably need >> to unbind from the old driver and bind to the new one. But I agree >> with you that it could be messy. > > It's a tradeoff. Oops! Accidentally hit send too early. It's a tradeoff. If the platform device population is deferred until after all drivers are loaded, then there isn't any mechanism to ensure some devices get probed early in the init sequence. As Rob said, while it is a problem in theory, there haven't been a lot of actual cases where it is a problem. The solution has been to either remove the generic match from the device, or we can blacklist particular devices from the generic driver. g. >> >>> >>> Do you have a specific case where you hit this? >> >> Maybe not a new issue but "snps,dw-pcie" is competing with various >> "fsl,-pcie" compatibles. Also a specific PHY >> "ethernet-phy-idAAAA.BBBB" with generic "ethernet-phy-ieee802.3-c45". >> >> Regards, >> Leo