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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65DE3C2B9F7 for ; Tue, 25 May 2021 02:03:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44E536141B for ; Tue, 25 May 2021 02:03:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbhEYCFY (ORCPT ); Mon, 24 May 2021 22:05:24 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55084 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbhEYCFX (ORCPT ); Mon, 24 May 2021 22:05:23 -0400 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=g8xlnZg8Jx1EpR1gdv4PlknglCwEvlw9U1PHrDmqOwM=; b=k+mE3gv6OzMdVv5ETedr4SNnxD rRAOJ4vfdymggeiI6ZB/5Ju0mOJieEH3s1PLNf1h+SmhRSXzsq+QNAESWG8J1kIeEenhjPdiGwicK r9b46LvJSNeohxTpX10Hz11LRUxvZq9lh7pAzafhoZidNWsXR6T9A3UtfrcV7au7cSjU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1llMQ8-0064KR-05; Tue, 25 May 2021 04:03:48 +0200 Date: Tue, 25 May 2021 04:03:47 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org, Florian Fainelli , Vivien Didelot , Vladimir Oltean , Russell King Subject: Re: [PATCH net-next 00/13] Add NXP SJA1110 support to the sja1105 DSA driver Message-ID: References: <20210524232214.1378937-1-olteanv@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210524232214.1378937-1-olteanv@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > There are some integrated NXP PHYs (100base-T1 and 100base-TX). Their > initialization is handled by their own PHY drivers, the switch is only > concerned with enabling register accesses to them, by registering two > MDIO buses. > > PHY interrupts might be possible, however I believe that the board I am > working on does not have them wired, which makes things a bit more > difficult to test. In general, internal PHYs have an internal interrupt controller, often in the switch register space. There then might be one interrupt from the switch to the host. It could be this one interrupt is missing on your board. But this is also quite common with mv88e6xxx boards. So i added code to poll the interrupt bit, i think 10 times per second. Polling one bit 10 times a second is more efficient than having phylib poll each PHY every second when it needs to read a number of registers. And the latency is better. Andrew