Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4122245rwj; Tue, 20 Dec 2022 06:24:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4m1xXdZsXAJouz2p1UPANuRaaxe2byusuvD1CvZKoQeAjwjnhpB2V9jFUocNevMuGIfbDi X-Received: by 2002:a17:90b:a0a:b0:223:2038:343a with SMTP id gg10-20020a17090b0a0a00b002232038343amr30380613pjb.8.1671546287948; Tue, 20 Dec 2022 06:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671546287; cv=none; d=google.com; s=arc-20160816; b=hw+OJ53i7LuyaFjvIuoOOgWhwg1zmS4ZcpMMb7jgpWIgubIoJhnTJo+vlE+QytuGzc ZyRAoGJvrKmMiQnZevssTA0CdDn/iy3bsD1OJWTWFYxQHrDKQnZpm4sumhqbxlmGkJZN E5GipX5sKViISYdQ9uHjGjUmjUsJinM6DjPGQbq5Bibopl8O9f2aJKBeHPZKYSxBPSFV VgrpN87ji7jAImwOsly7qw7s+UiD5wWLyLlD5Cjc5e8wonAa31w9WttOldXB40kKckNy pCyuqF+eL73R73SX2vDYetRMNd5HugG3xIQLIw/qWMi/lG61j7Xw90WTWq657zJrEVbj Txww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yG9JT2qsJ2n+skS1+0XzJ/VYZa3AXEt7ITVQuCUV1C0=; b=cQ53jAjrI+IqzcQtxaH/9KkZGQ3oIyHUo4pxVctLfZbK66fRuaXMyF1QpT/yUJxPo2 fe1RYUcr/q8DSB+D1j+4I4CoO035BJ+fx0XzE1jA++qVADgZ9ygODqJuqMemtE5jJkzO HHgxwnhO1BfeHlDyr/EifZSyNao5MPlHsPEZfJX6H/a/6wQSPnGbLSv9cAGzIIGYXg6x YGiOIXjNf62FV8mAvx4y1SVJbbCEo+NEkJUh4JQDstBnY7DbzYu664omkCwFAyOUCz+5 FFloow3zgVTjoqUGaOAw0xQXq8gqchYYmCX6BhTynqeizfqgU0BprBPZ1VbD7JIYmO6Y wMJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aT1aKF06; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr18-20020a17090b4b9200b00223bc9f1731si7572074pjb.170.2022.12.20.06.24.38; Tue, 20 Dec 2022 06:24:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aT1aKF06; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233121AbiLTNWF (ORCPT + 70 others); Tue, 20 Dec 2022 08:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbiLTNV4 (ORCPT ); Tue, 20 Dec 2022 08:21:56 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D91B16496; Tue, 20 Dec 2022 05:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=yG9JT2qsJ2n+skS1+0XzJ/VYZa3AXEt7ITVQuCUV1C0=; b=aT1aKF06u3GCpyS2nN5Mip9dok 7cSBZ4usFrAq3Yov6E7gOReOYM8xYez4xHpA1TM4NAuF8rJRxO9Oecfjkld/zx9V0q/yDNGViyN76 SC3ywvArxUg2Z20BmlXsd+vGOkgWYdNY2YFOoQ+i7scdGE6Kde4jnaTg4YMVLJESGNPU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p7cYk-0005b6-06; Tue, 20 Dec 2022 14:21:30 +0100 Date: Tue, 20 Dec 2022 14:21:29 +0100 From: Andrew Lunn To: Michael Walle Cc: Krzysztof Kozlowski , Rob Herring , Xu Liang , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next v1 3/4] dt-bindings: net: phy: add MaxLinear GPY2xx bindings Message-ID: References: <20221202151204.3318592-1-michael@walle.cc> <20221202151204.3318592-4-michael@walle.cc> <20221205212924.GA2638223-robh@kernel.org> <99d4f476d4e0ce5945fa7e1823d9824a@walle.cc> <9c0506a6f654f72ea62fed864c1b2a26@walle.cc> <2597b9e5-7c61-e91c-741c-3fe18247e27c@linaro.org> <6c82b403962aaf1450eb5014c9908328@walle.cc> <796a528b23aded95c1a647317c277b1f@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <796a528b23aded95c1a647317c277b1f@walle.cc> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 > (2) Krzysztof pointed out that there is still the issue raised by > Rob, that the schemas haven't any compatible and cannot be > validated. I think that applies to all the network PHY bindings > in the tree right now. I don't know how to fix them. i've been offline for a while, i sabotaged my own mail server... You can always add an unneeded compatible, using the PHY devices ID: - pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$" description: If the PHY reports an incorrect ID (or none at all) then the compatible list may contain an entry with the correct PHY ID in the above form. The first group of digits is the 16 bit Phy Identifier 1 register, this is the chip vendor OUI bits 3:18. The second group of digits is the Phy Identifier 2 register, this is the chip vendor OUI bits 19:24, followed by 10 bits of a vendor specific ID. It would be fine to do this in the example in the binding, but i would add a comment something like: "Compatible generally only needed to make DT lint tools work. Mostly not needed for real DT descriptions" Examples often get cut/paste without thinking, and we don't really want the compatible used unless it is really needed. This is however a bigger problem than just PHYs. It applies to any device which can be enumerated on a bus, e.g. USB, PCI. So maybe this limitation of the DT linting tools should be fixed once at a higher level? > (3) The main problem with the broken interrupt handling of the PHY > is that it will disturb other devices on that interrupt line. > IOW if the interrupt line is shared the PHY should fall back > to polling mode. I haven't found anything in the interrupt > subsys to query if a line is shared and I guess it's also > conceptually impossible to do such a thing, because there > might be any driver probed at a later time which also uses > that line. > Rob had the idea to walk the device tree and determine if > a particular interrupt is used by other devices, too. If > feasable, this sounds like a good enough heuristic for our > problem. Although there might be some edge cases, like > DT overlays loaded at linux runtime (?!). My humble opinion is that it is not worth the complexity for just one PHY which should work in polling mode without problems. I think the boolean property you propose is KISS and does what is needed. Andrew