Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1262218rda; Mon, 23 Oct 2023 07:28:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQ/pcu0wkb4+QisLe7nkytvEexLJ5XpJdNffgbAuBsAOARiN7GdHQN0HZm3BC5ZIthuVGi X-Received: by 2002:a05:6a00:2308:b0:6be:367a:2a71 with SMTP id h8-20020a056a00230800b006be367a2a71mr8706672pfh.16.1698071310133; Mon, 23 Oct 2023 07:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698071310; cv=none; d=google.com; s=arc-20160816; b=uvm9EZRIScaboMqXyO4DlQM0/TmLFxCGqniuBYSee+smHVEI9BSo42dR585u/cBlbT WLp3PxxkM+iuhqJ7H+G7lId9ok5Jjh2WDBZNRhpimIfmAIRmd6O8vrBv12ACvsrtodp0 CGpDu3NwjcZNju2LegNGcIZ3JiylzPDsN9H0CU9HPOuF2O5HjXkZy1soZM/h3oyszd+Y UtAARxDVxwdk0vV2qra4L9K5t4+wherNKLvMrlXD0a3lzfScfRi9N3I+vbPqtit0Cr6z NGXjWMQxRVGJkmjem+d78TsO7gGX44b1RflnOsAV7zXRZpLhcVJnGFRhEl9xUqDDnWWk e7Rg== 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=sPMDCYa/eOvobhpB1VjCXUms41/R3FiMxkI8iUKywDY=; fh=zaeLSoG+RrzXp7PQXpFIGaqRAjLFRHF4i4KCk8/qb7M=; b=jdw8ZXVvtPd0mlgUAMEI6C1EM/Fp6OHABm1ysgQJcp7cLZ75u2ir+XCaAlheVI4Q5p Qc2Tu7tf6uPj+CsD3v6ZrqmRdwgL63E3XlyvTbwbWAZ0htaN7/V0KE47pTeEbrzRn/eR IWg6Q0Bd3qrPgWZp3+6zH1g3HfBAKcvy8g/5RJBluDpkfIKS0N4cK+LjcnAgXBg8J22w kF+3veg0EMiwsXJ4S5Tjwn/Dh4r1I5kudd+dE4c2WAkUdMPBjmkaUYVLgswDV3gnbIh4 i9y3PAQbcHU81ggxnQVQXjQqxaqvd0Js9twHmsIeUm8bkrDurKl6oxFhGVKUW1y1TiGa nDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jfp2GZfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id y17-20020a056a00191100b0068fce4338bdsi6711198pfi.62.2023.10.23.07.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:28:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jfp2GZfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A41208083DC3; Mon, 23 Oct 2023 07:28:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbjJWO2P (ORCPT + 99 others); Mon, 23 Oct 2023 10:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjJWO2O (ORCPT ); Mon, 23 Oct 2023 10:28:14 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6CD3DD; Mon, 23 Oct 2023 07:28:10 -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=sPMDCYa/eOvobhpB1VjCXUms41/R3FiMxkI8iUKywDY=; b=jfp2GZfWZO5vRu5SlGBeGwS9G1 VBSd4G9YruH6A4xRuvPE7fXFrufnfnVlxioWMn8lSb6KR+CFKsyXji4GgyFcmTanIzQDXEcolTPp4 MC9mDatDpeInPyav9nX9minyyJf66k2GRGtKYuuh8n1piL3P71dwv+ayBB7r/8tZKP4c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1quvuW-00323v-AQ; Mon, 23 Oct 2023 16:28:04 +0200 Date: Mon, 23 Oct 2023 16:28:04 +0200 From: Andrew Lunn To: "Jia, Fang" Cc: Heiner Kallweit , Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: phy: fixed link 1000 or 100 set with autoneg off Message-ID: References: <9dd0e0b8-751b-170a-7c8f-bc084efae69b@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9dd0e0b8-751b-170a-7c8f-bc084efae69b@windriver.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:28:27 -0700 (PDT) > Thanks very much for your reply. > > Actually, due to some reason, the phydev's default aneg state is off. > And we just found if use ethtool to set, it had the same result. I find it surprising it defaults to aneg off. Are you sure something has not turned it off before you look at it? The emulator does not support writing to any registers. However, fixed_mdio_write() does not return an error, it just does nothing. It needs testing, but maybe try making it return -EOPNOTSUPP. That should prevent auto-neg being turned off, but it might also break everything if it tries to do some other write during probe or link up. It could be it needs a more select response, allowing writes to some bits, like the reset bit, and start auto-neg, but not others like disable auto-neg. Andrew