From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB218C43217 for ; Thu, 1 Dec 2022 15:54:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbiLAPyh (ORCPT ); Thu, 1 Dec 2022 10:54:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232035AbiLAPye (ORCPT ); Thu, 1 Dec 2022 10:54:34 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2970CAA8F0 for ; Thu, 1 Dec 2022 07:54:34 -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=/9rpmG1HlPICYfeHlwA7HplL/Ogaz+WTaWtjq3aweDY=; b=S5+tfmxeFgFo0yNAALWI7Qspag V4WGrsn3bWFXtxkjaPnzygjQ4SPrRQJ+9vuZmAtvdcalNzsPV4zRJaUtE37GaOpXrhBGdcDg2yVS7 yo+wWfDcteoB2sglHiDbbYWa6aIxjWLI8IP+Zh7XxgvWvAs46GhSFL1cCPsbN67xZ/AM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p0ltK-0044j4-KF; Thu, 01 Dec 2022 16:54:26 +0100 Date: Thu, 1 Dec 2022 16:54:26 +0100 From: Andrew Lunn To: Michael Walle Cc: Heiner Kallweit , Russell King , Horatiu Vultur , netdev@vger.kernel.org, Xu Liang Subject: Re: GPY215 PHY interrupt issue Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > So, switching the line to GPIO input doesn't help here, which also > means the interrupt line will be stuck the whole time. Sounds like they totally messed up the design somehow. Since we are into horrible hack territory..... I assume you are using the Link state change interrupt? LSTC? Maybe instead use Link speed change and Duplex mode change? And disallow 10/Half. Some PHYs change to 10/Half when they loose link. They might be enough to tell you the link has changed. You can then read the BMSR to find out what actually happened. This is assuming that interrupts in general are not FUBAR. Andrew