Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp34542imm; Thu, 27 Sep 2018 15:27:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV62LwsysHnX5HJw1igBm/+8d5li9N9KryZNueorwj7XeLXuxBXy0QhBBmOEBmDudR5UI4eZ+ X-Received: by 2002:a17:902:bb0d:: with SMTP id l13-v6mr12980965pls.71.1538087278829; Thu, 27 Sep 2018 15:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538087278; cv=none; d=google.com; s=arc-20160816; b=a1b7odPChwPxYjvgIR7LndKbjLa9Z00+KFwz6gDM0O07v14GWOlR+13IfCgWhaB+/J lFPzdHBSlX+0/w0kHXRZyDN8/H6GkfZvXx5k0QNWM/WvrUYaE5ah/+nRbD7M9t2yGHe/ zdUDaZbhzjImCLA066i+CVB4OZibVYk6vaUFsz2E4qTtlGwFc/8Id2HjaWjLBS3UABRE RTZzkg2xySOvWmfGhO6o4dPNTgSCyC/tWT5H95LqVe74/l7nXMKVA0erp4gFnUTlN/Fh VbKmgxPFvnJcSUiiCNOjG3V6cuWXMadtj2YOktAz8/9KWmwgtLlpecd/yuSxyJQjB6vb aB6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version; bh=ShoJtjcjQb0gjp7YdjvKzVSuec6myPwgPyE/EvL7OBk=; b=CtD7Jb6GIoztegZGRuEYU5G1QpOaWPtC4yYSVQKKZnO5GJV0+aMcvdDVqHDm9VZTDQ Adww85jqTrDRclLV1/pRK4WufbrHfJ67Xy6QTEUjNspPPGJ1Ti4YUu4OdKEeE+oP4uaL kd39anAHK4zGYG8xKq0xr0wL3ZD0xvQmYk7bhNGlizjwZxBQBKb/+OURhvI6AJ4orZG5 EQjCh1dJEbSE9sCdpyCdt5ewB+fINNAOb90OQpJgBawlYLWqi5snHAEMiu8ziQZol4Wq EtHAgh2/Fvs19rwDTBdZ8OvQg532V/c/Na4ahtNpLllF22tQca5Xe3pDWZJYpfWN18ji 7BiQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5-v6si3267810plf.411.2018.09.27.15.27.43; Thu, 27 Sep 2018 15:27:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726337AbeI1EqZ (ORCPT + 99 others); Fri, 28 Sep 2018 00:46:25 -0400 Received: from mail-oi1-f169.google.com ([209.85.167.169]:46331 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbeI1EqZ (ORCPT ); Fri, 28 Sep 2018 00:46:25 -0400 Received: by mail-oi1-f169.google.com with SMTP id k64-v6so3600923oia.13; Thu, 27 Sep 2018 15:25:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ShoJtjcjQb0gjp7YdjvKzVSuec6myPwgPyE/EvL7OBk=; b=nkhZLniEuREpRMk7mFtAf6CTr6hnO/Cy2hLqdvIiop1WfZuR19rdDzYeQpLp8eJYzV mnXdWDKgTs5kDJPmGE4daNO/dk05HG2xwV5vmX3akh7kt+d1RTpP+JApt+2w0pnYQzK0 +s3ZT+mWvyFPyTwsG5b6dM/6xcKY+2MdMMtQTbnh5MyOrgR9OCH9Gk/1GZ5TiCRUPVcT wHJQ3k8UFmuBk7Of/RL3NuLzpvqzBWjqcBeas0AILE2E4/Ell0u3kU76UCMVNVxg0/ab q3msP8lCjPK//uJUpWNJ1LB8iFv07H5tA2o6b8Eiw5hrQaOMQeADHmprZKcFl6XkP/0M mx0Q== X-Gm-Message-State: ABuFfojVnrHEpqgs8tOcECOND9QwJysal3FEDPCJyV2B4P+CTjK1gIDb WuUqGw5g1AJHtnW9wU8ux72rANpe0mA= X-Received: by 2002:aca:853:: with SMTP id 80-v6mr4054353oii.333.1538087154635; Thu, 27 Sep 2018 15:25:54 -0700 (PDT) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com. [209.85.167.169]) by smtp.gmail.com with ESMTPSA id y131-v6sm636891oie.25.2018.09.27.15.25.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 15:25:54 -0700 (PDT) Received: by mail-oi1-f169.google.com with SMTP id 13-v6so3668964ois.1; Thu, 27 Sep 2018 15:25:54 -0700 (PDT) X-Received: by 2002:aca:fd89:: with SMTP id b131-v6mr4395787oii.30.1538087154014; Thu, 27 Sep 2018 15:25:54 -0700 (PDT) MIME-Version: 1.0 From: Li Yang Date: Thu, 27 Sep 2018 17:25:42 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: drivers binding to device node with multiple compatible strings To: Rob Herring , Grant Likely , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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