Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp62647lfe; Fri, 15 Apr 2022 19:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9Lwb/V7p7gkXlCfymopypzDHf0CURHUASp///BT+DzGPUVGdK1JWYfTgWkEnKrKNJaEOJ X-Received: by 2002:a05:6a00:15ca:b0:505:bf6f:2b48 with SMTP id o10-20020a056a0015ca00b00505bf6f2b48mr1729546pfu.64.1650076638634; Fri, 15 Apr 2022 19:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650076638; cv=none; d=google.com; s=arc-20160816; b=eST1+5F4uchT0WvopoIE+T4lyZNauL6+GFGmPDhSuRy0x1C+opElbGBx/c4TgY2+EX ugjNX3ptySxCM0bw6iw+NAFfVN4rspRH4Axx4aGbO5US9hvIC1uumlAdk39zFX5RX3NT 8s8uj0/vjQia/FxjevhQAAxWpu3ZFG1Z39iB8d1LSrxU/4ZWc/8MqHTEvYVdRAUzMpv2 Uq1v1UUBBCtPDh8rSzC/Koo3ob5S0qW4ry9kaiz+6pNccEcIDy4kwXsx0yYTBTss0hq/ Z4TIyxu0gMEj+xNlvpnyG89ipNEppYJBoVnLO2487+7ShKWGNakWojJ8qNIMFMffDS4J qWdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=F0pTlxAinUbb6FemkC+KZxtVJbOqwkBFq9OGtQw7qnQ=; b=UgElJpS4nQ04alQc3jIjuu0bpKx6nVzY5TH92MfXDcIPPcK02ztKZsDOW5hnJ2TTPq D0Lz/PNIsLEKcBioBw+koIqIizXS5KV3iWWIIgYYdivrt1Ki7bi5VR0atYNEr5s4mGEE 6OfAVpII9OWiGNPTt9a2n3cfo2rUWj3LqKk140kakrZHZIEAJHZrkZAVcMt0OtUFSs7M i4xjgVyH9Hr2GeAtoSc3qL5NglC7iErxi9VHF9cbDW6Vbj2mfTUKskLesNsZE0QisdGe knVtjk4aFDq2vC77azoXNJQHTqnTo3Nb6wcXFD68A12t8ltEZbf0awsDIpeKUTIi4vP/ KH6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id cl4-20020a056a0032c400b004fac74c8c8asi1843210pfb.329.2022.04.15.19.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E66811242FA; Fri, 15 Apr 2022 18:47:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236994AbiDNRRD (ORCPT + 99 others); Thu, 14 Apr 2022 13:17:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245527AbiDNRQq (ORCPT ); Thu, 14 Apr 2022 13:16:46 -0400 Received: from out28-173.mail.aliyun.com (out28-173.mail.aliyun.com [115.124.28.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3BF03617D; Thu, 14 Apr 2022 10:11:44 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1074771|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0686534-0.00765563-0.923691;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047212;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=17;RT=17;SR=0;TI=SMTPD_---.NQlfgH1_1649956298; Received: from 192.168.30.128(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.NQlfgH1_1649956298) by smtp.aliyun-inc.com(33.38.168.42); Fri, 15 Apr 2022 01:11:39 +0800 Subject: Re: [PATCH v2 1/2] dt-bindings: dwc2: Add bindings for new Ingenic SoCs. To: "H. Nikolaus Schaller" , Krzysztof Kozlowski Cc: Krzysztof Kozlowski , Greg Kroah-Hartman , hminas@synopsys.com, Rob Herring , linux-usb@vger.kernel.org, linux-mips , Linux Kernel Mailing List , OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS , dragancecavac@yahoo.com, dongsheng.qiu@ingenic.com, qipengzhen , rick.tyliu@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com, reimu@sudomaker.com References: <1649788201-87620-1-git-send-email-zhouyanjie@wanyeetech.com> <1649788201-87620-2-git-send-email-zhouyanjie@wanyeetech.com> <6F03670F-9040-4560-AD78-CC7A03EC678F@goldelico.com> <0AE74BF9-46F1-44EC-8E5F-40EA12851AD0@goldelico.com> <76ea346b-0645-97b5-f8fb-5b46b4bcc80b@linaro.org> From: Zhou Yanjie Message-ID: <40d34f8b-4ab7-5ced-b533-da1f4b501cdc@wanyeetech.com> Date: Fri, 15 Apr 2022 01:11:37 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2022/4/14 下午6:00, H. Nikolaus Schaller wrote: > >> Am 14.04.2022 um 09:32 schrieb Krzysztof Kozlowski : >> >> On 13/04/2022 21:30, H. Nikolaus Schaller wrote: >>> So we need "snps,dwc2" to get any driver match and I thought the "ingenic,jz4780-otg" is redundant. >>> >>> But maintainers convinced me to keep it as a dummy compatible in the .dtsi for potential future >>> specialization (which does not exist and seems not to be necessary). >> Isn't exactly the next patch 2/2 using such specialization? >> >>> Unless I can convince them >>> that this is never ever needed. Which is beyond my knowledge and almost everyone. >>> >>> So we can't remove the "snps,dwc2" here. >>> >>> Well, we can with more work elsewhere. >>> You have to extend the dwc2_of_match_table to include all ingenic devices. >>> >>> Therefore we now know 3 potential solutions: >>> a) remove "ingenic,jz4780-otg" from jz4780.dtsi (my proposal) >>> b) add "ingenic,jz4780-otg" to dwc2.yaml together with "snps,dwc2" (your proposal + my suggestion here) >>> c) add only "ingenic,jz4780-otg" to dwc2.yaml and extend the match table in drivers//usb/dwc2/params.c (new proposals) >>> >>> From consistency point of view I think variant b) is the right one. a) was rejected and c) only adds redundant code. >> c) was already proposed by Zhou, so if you think the code is not correct >> (the params for jz4780) maybe nack it there, so we will know that driver >> needs fixes. > Ah, ok. Now I see. I was just focussed on this patch and related dtbscheck > messages and did not read patch 2/2. > > Yes, looking at both, they are variant c). Sorry that I didn't see it earlier. It looks like we need a [3/3] to remove "snps,dwc2", which not only solves the dtbscheck complaining problem, but also doesn't affect normal use after removing "snps,dwc2". > > As said: I am open to anything as long as the dtbscheck doesn't complain any more. > > BR and sorry for the confusion, > Nikolaus