Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2024073iob; Thu, 19 May 2022 23:12:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd5PzgS3bekDRUtv3/f3epYJYeVCqWBhtNQFDJVsOnmX7Pn/ULfQqmmzu3r2T+m7dEF4Rb X-Received: by 2002:a63:83c6:0:b0:3f5:d766:9c5d with SMTP id h189-20020a6383c6000000b003f5d7669c5dmr7225118pge.65.1653027133849; Thu, 19 May 2022 23:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653027133; cv=none; d=google.com; s=arc-20160816; b=smMuOEEb96Kmufkjt4TBpB13yIr9I25pt25nsYLzphOWwjQDtSZ5pvOYeiDik6f+2l sCr9ix7RTnFFCjm9kErA65yXyB4XF+R6KIS+ilL4B5efFtaN4nmLbaMXDNUR/MA2a888 UV4H3/ol76KGQf9WF+0XjkKz/Jftfot4mrZW/KCSUOBvhlIfxqkDQ3AWsYAQ32xGLWHy NhzKW/P9yl/99WNboA84zD7Rv945cSjOXpAg62X7qKP4owp8mHMfwoJMVgUX1g9RyU6F 4pGeJGEn7NsamvwhxhHtL8iKcp9O/g1zYKaX0b2PfhkFEv7POBYokVMU4URaApaEH+8q LRVA== 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=RftDzywG3r2aAn9dn2kxlngBMt6wN9yyHzisOWaRAY0=; b=KzkNbznvYD9FDtopQO8MgMgN2fz/aZPJB7bGC9Yh/IadL7IEgH0g7wkvLSHUFm/ghd WR1IeUcQUc49x1tmW5lEVZGSPD929DQL4hCdikCrPukm3wqIle/wlczWfiPteJTQ2FW2 pgFatbIlaQO/wVq9O1oiAVP84BZ7cKWJAs4UCFRIE0I8GT5DcR9k5nr1ifdJqrKIsdUf tktXtM0oB9yUYL2cxAmeSkd3QsKmQDUAZRdJdySpyDEtFt27krFS8xhhCBlU7JLySVhm 7gcPH8MlS3JkFID5iYJiZqDMB4dwxAlyB4VBWzSPgsvPaT0tFIIzvEjjbmwvvwlU6WHt CF+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AR+vTJME; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170902bf4c00b0015862deeb9dsi8355070pls.117.2022.05.19.23.11.58; Thu, 19 May 2022 23:12:13 -0700 (PDT) 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=AR+vTJME; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241053AbiESPc6 (ORCPT + 99 others); Thu, 19 May 2022 11:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241017AbiESPcq (ORCPT ); Thu, 19 May 2022 11:32:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 051D860ABF; Thu, 19 May 2022 08:32:43 -0700 (PDT) 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=RftDzywG3r2aAn9dn2kxlngBMt6wN9yyHzisOWaRAY0=; b=AR+vTJME19UjwVUasj8rGPp7Fr 8PadH/tNushEB0xq2HqXaHOWK3Jspk3nHeaFivvV4N1HEt/vFhhp/zO5L2ksFNDVBFB0keYF5o40N aAyX8U4dwODaCVq8jxZ5OLLTSZ10fD166r+OZo6JMssZztKRB+qracGilTqg9LWALut0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nri8h-003Vd3-Vj; Thu, 19 May 2022 17:32:35 +0200 Date: Thu, 19 May 2022 17:32:35 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: "netdev@vger.kernel.org" , Jakub Kicinski , "David S. Miller" , Paolo Abeni , Eric Dumazet , Florian Fainelli , Vivien Didelot , Vladimir Oltean , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Robin Murphy , Geert Uytterhoeven , Rob Herring , Frank Rowand , John Stultz , Alvin =?utf-8?B?4pS8w6FpcHJhZ2E=?= , Russell King , Heiner Kallweit Subject: Re: [RFC PATCH net 0/2] Make phylink and DSA wait for PHY driver that defers probe Message-ID: References: <20220513233640.2518337-1-vladimir.oltean@nxp.com> <20220519145936.3ofmmnrehydba7t6@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220519145936.3ofmmnrehydba7t6@skbuf> 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, T_SCC_BODY_TEXT_LINE 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 > > There is a very different approach, which might be simpler. > > > > We know polling will always work. And it should be possible to > > transition between polling and interrupt at any point, so long as the > > phylock is held. So if you get -EPROBE_DEFFER during probe, mark some > > state in phydev that there should be an irq, but it is not around yet. > > When the phy is started, and phylib starts polling, look for the state > > and try getting the IRQ again. If successful, swap to interrupts, if > > not, keep polling. Maybe after 60 seconds of polling and trying, give > > up trying to find the irq and stick with polling. > > That doesn't sound like something that I'd backport to stable kernels. > What motivates me to make these changes in the first place is the idea > that current kernels should work with updated device trees. By current, you mean old kernels, LTS etc. You want an LTS kernel to work with a new DT blob? You want forward compatibility with a DT blob. Do the stable rules say anything about that? Andrew