From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755964AbdJJIcv (ORCPT ); Tue, 10 Oct 2017 04:32:51 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34517 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755430AbdJJIcr (ORCPT ); Tue, 10 Oct 2017 04:32:47 -0400 X-Google-Smtp-Source: AOwi7QAW6fI99xSgyrOD+0r4l/TIlcnyrfsxAlR+De+Gv0aIypjIWaZxOkCv4RiIa3fabxnBCS8NTA== Subject: Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712 To: Chaotian Jing , Ulf Hansson Cc: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , yong mao , Linus Walleij , Heiner Kallweit , Phong LE , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-mediatek@lists.infradead.org, "linux-kernel@vger.kernel.org" , srv_heupstream References: <1507604480-23246-1-git-send-email-chaotian.jing@mediatek.com> <1507604480-23246-2-git-send-email-chaotian.jing@mediatek.com> <1507620951.19789.7.camel@mhfsdcap03> <1507623748.19789.10.camel@mhfsdcap03> From: Matthias Brugger Message-ID: Date: Tue, 10 Oct 2017 10:32:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1507623748.19789.10.camel@mhfsdcap03> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/2017 10:22 AM, Chaotian Jing wrote: > On Tue, 2017-10-10 at 10:09 +0200, Ulf Hansson wrote: >> On 10 October 2017 at 09:35, Chaotian Jing wrote: >>> On Tue, 2017-10-10 at 09:26 +0200, Ulf Hansson wrote: >>>> [...] >>>> >>>>> + >>>>> +static const struct of_device_id msdc_of_ids[] = { >>>>> + { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, >>>>> + { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, >>>>> + { .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat}, >>>>> + { .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat}, >>>>> + {} >>>>> +}; >>>>> +MODULE_DEVICE_TABLE(of, msdc_of_ids); >>>> >>>> As already stated in the other reply. These new compatible changes >>>> needs to be discussed and acked before the driver starts using them. >>>> >>>> In other words, make patch3 to precede this one. >>> but, then there will have a probe issue as mentioned in previous mail >>> list. that's why I separate the binding file changes to 2 patches. >> >> That sounds seriously wrong. Aren't the bindings backwards compatible? >> >> Kind regards >> Uffe > > As Matthias mentioned before: > " >>> NAK, this has to be: >>> You have to add the fallback compatible ("mediatek,mt8135-mmc") to > the binding >>> description as otherwise the driver does not get probed. >>> >>> Regards, >>> Matthias > " > the original compatible in driver is "mediatek,mt8135-mmc", so that if > drop "mediatek,mt8135-mmc" in bindings file(User may refer it and drop > "mediatek,mt8135-mmc" in their DTS), the driver will not get probed. > If you change the driver as you did in this patch, then there is no probing problem. Regards, Matthias