Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1140502imm; Fri, 28 Sep 2018 12:44:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV63iqeMw05RINEFJogo3RXtNXtz1xj+i1mLtwHgbf1h+4/I/7XWxcS3bbipZwjxNpc0gyrsb X-Received: by 2002:a17:902:5a45:: with SMTP id f5-v6mr137463plm.26.1538163845844; Fri, 28 Sep 2018 12:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538163845; cv=none; d=google.com; s=arc-20160816; b=Y56k90KncTlvvextP1AuknKxVoH9xI0+XjS/koysB6reUNPZ7DwBLJzDhF04MWj6c4 IcDF942P6stWaZSEau69liBZAw2cW0ykoZIklZlMsCgugGt9EOUYxevir3HsA60JlfBx VfhEj32clnR/LGv1n6Pce9jeNq9BzIBhFV1WHdcVsdU6/Mweor0cDjo9xosuhYzeQOC7 N6KvPcq8knBMtXSuD2fSI16ZuAr/yn+Ud67HdV2xePuZ3cfVcd7Z5J9OTsZ4UMbQWzhZ baoWww5Lrk68Ecy6r9uuqFs+giO/lt1q84vBommxLjQz690Xv5AwY3MaGtWzE2Im5AYO EkMw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=qaPhD6rv8H89D7FJbfdnco6OZQTc6wBSoptqEJoVefg=; b=qe0ENwKmKXSN6kOOMgGGpvcYRPHZ4AAYLlLtgx5HU8cFaLbfnxiNKCZZda5Hqst/mc 5MEo76ZDZJfLzelcyNppmyMDrMC0Ydj++U05VRr1VBe/QHVmnFy+QP3g8YOS1qoACieE 1JRbLZWSfWjOZkQdDDN0ZiKFuTLdnNkA+sulQdV9nCz2xpq2Dw3CRXDBzTUEdm/6Sdcj Xgrf8pn0YfQS5R3zX7kZXr0EMbbjgD8uFUgHdbtTW9Rjfs5eVotsLR6ZxDlqqtXvfoFI dW/WgDkvHD1KdE/eH8mjEKrzHh6yUCGZwpWPwi7hRiugOFstqfvkyVlN8tveLH23HY6m pmNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L0la1++K; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si5786502pld.322.2018.09.28.12.43.50; Fri, 28 Sep 2018 12:44:05 -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=@gmail.com header.s=20161025 header.b=L0la1++K; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbeI2CJA (ORCPT + 99 others); Fri, 28 Sep 2018 22:09:00 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44287 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbeI2CI7 (ORCPT ); Fri, 28 Sep 2018 22:08:59 -0400 Received: by mail-pg1-f194.google.com with SMTP id g2-v6so5147728pgu.11; Fri, 28 Sep 2018 12:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=qaPhD6rv8H89D7FJbfdnco6OZQTc6wBSoptqEJoVefg=; b=L0la1++Ko4JUBdPvRXO2icIbw5IY1p3cE22UDvKo3xGZ5qYOBLGt5wkhExKUJMfg6X 6R6K5vdge37mQytFGnZVM7SP8HR6krvXygH2iRiIQLeZD4IkDHQSlfnFs5sF20qoSMBt OmA984k7WorJMCnrQEph+8GiHdcINRAN+Gij22EkxxRRCEwWE1JqJkyiOFOGpozv1cln z8Cwm3pu4Y0mUW8uEO4mbUPHyG4UD8jBgNM0mRautZ2bHc73mSuwnJYBmSQEoDkEmUB5 /JTKEFGpDWsLCHRdmqXJsOWqMrupqQhk1a87ZozpMV7lfEORmB9frVrkKRneW4zpipwG OixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qaPhD6rv8H89D7FJbfdnco6OZQTc6wBSoptqEJoVefg=; b=tSTnv9Ii/VZjQSNa1gXn542D+IWzSoMNOAzZTnVCNa5J7u6mpXDFsvS/YhIxERQqkr oU853YhhjDcMEkLWeh0wL9huQM5rftsVCQqN6rYXeaJeQ9Pzmlhd/FKyQkYOxGwoQjM1 GFR2TDJlmND4+rgYi0bllShp86EstPxeiojFGN+l3HMhbteG4P5nzrmi/YUgllu99yTZ I9+93y8kGHmyb4z1s5WGMViyRfW5pD0sA3kUeGoKev0057fRm/T9r8eRrqUndbNZ4QqU u+HVObfSOOSzSp7rpUOiCkl9zuW0Nt/FolIl7NL7DuXutr/G7SQeZN9pgt9TY+BIaR9m u2Sw== X-Gm-Message-State: ABuFfojncJHDNpPueRiIMNxoQR9tGdht6AuhEqC4RhghMSbp8w1FopE6 YsaeB9VPABEwl+L1S7t/rZg= X-Received: by 2002:a17:902:6907:: with SMTP id j7-v6mr112200plk.232.1538163823229; Fri, 28 Sep 2018 12:43:43 -0700 (PDT) Received: from [192.168.1.70] (c-24-6-192-50.hsd1.ca.comcast.net. [24.6.192.50]) by smtp.gmail.com with ESMTPSA id 77-v6sm8181310pfw.159.2018.09.28.12.43.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 12:43:42 -0700 (PDT) Subject: Re: drivers binding to device node with multiple compatible strings To: Li Yang , Rob Herring , Grant Likely , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linuxppc-dev , Frank Rowand References: From: Frank Rowand Message-ID: Date: Fri, 28 Sep 2018 12:43:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Frank On 09/27/18 15:25, 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? > > Regards, > Leo >