From mboxrd@z Thu Jan 1 00:00:00 1970 From: b32955@freescale.com (Huang Shijie) Date: Tue, 9 Jul 2013 15:46:34 +0800 Subject: [PATCH] of: match the compatible in the order set by the dts file In-Reply-To: <20130709070541.GQ516@pengutronix.de> References: <1373013818-11365-1-git-send-email-b32955@freescale.com> <20130709070541.GQ516@pengutronix.de> Message-ID: <51DBBFDA.70302@freescale.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org ? 2013?07?09? 15:05, Sascha Hauer ??: > Why don't you set the matching order in the driver the way you want it > to be, i.e.: > > { .compatible = "fsl,imx6q-uart", ... }, > { .compatible = "fsl,imx21-uart", ... }, > { .compatible = "fsl,imx1-uart", ... }, > yes. i can set it like this. but this method looks like a ugly workaround. thanks Huang Shijie From mboxrd@z Thu Jan 1 00:00:00 1970 From: Huang Shijie Subject: Re: [PATCH] of: match the compatible in the order set by the dts file Date: Tue, 9 Jul 2013 15:46:34 +0800 Message-ID: <51DBBFDA.70302@freescale.com> References: <1373013818-11365-1-git-send-email-b32955@freescale.com> <20130709070541.GQ516@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; Format="flowed" Content-Transfer-Encoding: base64 Return-path: In-Reply-To: <20130709070541.GQ516-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Sascha Hauer Cc: grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org 5LqOIDIwMTPlubQwN+aciDA55pelIDE1OjA1LCBTYXNjaGEgSGF1ZXIg5YaZ6YGTOgo+IFdoeSBk b24ndCB5b3Ugc2V0IHRoZSBtYXRjaGluZyBvcmRlciBpbiB0aGUgZHJpdmVyIHRoZSB3YXkgeW91 IHdhbnQgaXQKPiB0byBiZSwgaS5lLjoKPgo+IAl7IC5jb21wYXRpYmxlID0gImZzbCxpbXg2cS11 YXJ0IiwgLi4uIH0sCj4gCXsgLmNvbXBhdGlibGUgPSAiZnNsLGlteDIxLXVhcnQiLCAuLi4gfSwK PiAJeyAuY29tcGF0aWJsZSA9ICJmc2wsaW14MS11YXJ0IiwgLi4uIH0sCj4KeWVzLiBpIGNhbiBz ZXQgaXQgbGlrZSB0aGlzLgoKYnV0IHRoaXMgbWV0aG9kIGxvb2tzIGxpa2UgYSB1Z2x5IHdvcmth cm91bmQuCgp0aGFua3MKSHVhbmcgU2hpamllCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fXwpkZXZpY2V0cmVlLWRpc2N1c3MgbWFpbGluZyBsaXN0CmRldmlj ZXRyZWUtZGlzY3Vzc0BsaXN0cy5vemxhYnMub3JnCmh0dHBzOi8vbGlzdHMub3psYWJzLm9yZy9s aXN0aW5mby9kZXZpY2V0cmVlLWRpc2N1c3MK From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752941Ab3GIHop (ORCPT ); Tue, 9 Jul 2013 03:44:45 -0400 Received: from [216.32.180.185] ([216.32.180.185]:21279 "EHLO co1outboundpool.messaging.microsoft.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751960Ab3GIHoo convert rfc822-to-8bit (ORCPT ); Tue, 9 Jul 2013 03:44:44 -0400 X-Forefront-Antispam-Report: CIP:70.37.183.190;KIP:(null);UIP:(null);IPV:NLI;H:mail.freescale.net;RD:none;EFVD:NLI X-SpamScore: 2 X-BigFish: VS2(zzc89bh1432Izz1f42h1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6h1082kzzz2dh2a8h668h839h93fhd25he5bhf0ah1288h12a5h12a9h12bdh1354h137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h190ch1946h19c3h1ad9h1b0ah1d0ch1d2eh1d3fh1dfeh1dffh1155h) Message-ID: <51DBBFDA.70302@freescale.com> Date: Tue, 9 Jul 2013 15:46:34 +0800 From: Huang Shijie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 MIME-Version: 1.0 To: Sascha Hauer CC: , , , , Subject: Re: [PATCH] of: match the compatible in the order set by the dts file References: <1373013818-11365-1-git-send-email-b32955@freescale.com> <20130709070541.GQ516@pengutronix.de> In-Reply-To: <20130709070541.GQ516@pengutronix.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8BIT X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2013年07月09日 15:05, Sascha Hauer 写道: > Why don't you set the matching order in the driver the way you want it > to be, i.e.: > > { .compatible = "fsl,imx6q-uart", ... }, > { .compatible = "fsl,imx21-uart", ... }, > { .compatible = "fsl,imx1-uart", ... }, > yes. i can set it like this. but this method looks like a ugly workaround. thanks Huang Shijie