Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp967466rwl; Wed, 12 Apr 2023 06:40:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bREGVijyupgMVp3U/jKbic99ECEBRy3G3NOdiVSI6djBbDV7oCr0D06/KpPnEmnhc5s74V X-Received: by 2002:a05:6a20:4b11:b0:eb:6ff5:5187 with SMTP id fp17-20020a056a204b1100b000eb6ff55187mr2552450pzb.24.1681306821006; Wed, 12 Apr 2023 06:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681306820; cv=none; d=google.com; s=arc-20160816; b=motwy66TL8oeALo47MKVCJwnSjVzmXyRc93Y5cM/2y0GqZtru/nDKOSIW+gJQsouV1 1atsx+mws581IRUXvaU4kZgtxvEN9OEccGUaZ+S/q3TieS4hW7JroyZDr+47E52y1XjS pizb/csC6wtbZ+awRO/vRnyVsAyMXRLjf+cdgwyHlcqn/8mwFsAdULc+q02zVpstXVMU fPuh29OAeBsp209nyhvr278WF87DxIqVPRP6R1BHR36PvthVRoWI4hjgohDT46pvdvVW gEj2bpZv825FzSuFIVzKAYD8wxQtrZ3vo1NEs8nbV/kaSO+tztP9Cq4IE8YDeF/es8wO x1vw== 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=95c8hqCUy1osdLkjPROBeoXrOcZ+996LAq0uwKDBgcY=; b=h9RfyTcG4bvYR/lV3Lp0lKmgfkMgHsnrWxKOnpaJHmC/Iojg2t/9w8i40wLyzGvESm DnMaQdRWp4i5w7EIwJ9xIq3mB/oO5Et/Afo1B1aXGQoty6zzbJqPi8m/be4DTr6/XFXm hDuwBnvrGNa/sHiZS4K/3Z57+WNxJzv2DouFiBq4bHCoqLc3VNWr004Y0dWO1tD7nhxz zxjGCcHx/neiqHHWLhl9Rj7KJchH3pU5o6fZmuuJsTF3M1R5lKBS7IPyczi0TOs040Li kPBysmO97R4nrtKX+pD5ozZwSDlYaxbIuU8EF0zRP6J8fRaECl2q25YKghO//CyjS/X0 G11w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=J0beavLQ; 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 141-20020a621793000000b005907558613bsi201288pfx.17.2023.04.12.06.40.09; Wed, 12 Apr 2023 06:40:20 -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=J0beavLQ; 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 S230376AbjDLNfh (ORCPT + 99 others); Wed, 12 Apr 2023 09:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbjDLNfe (ORCPT ); Wed, 12 Apr 2023 09:35:34 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3550B83E8; Wed, 12 Apr 2023 06:35: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=95c8hqCUy1osdLkjPROBeoXrOcZ+996LAq0uwKDBgcY=; b=J0beavLQOXA6yYaoa144vCrYYN WuiZH7ZcdY74NmFrQCNwZ1UkCa9KV+DTmh7wXXUeCcsiCU7Jh+AlooZeWYdEm3SymxlYLs2vIsq1z Jj0Q4OFfsa0yv7dc9cUQgeDDCRrX9V5pRM5jFxqsMPZrHSrpWwHhm3ioLk2g6tMz+xbo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pmacL-00A5zh-4Z; Wed, 12 Apr 2023 15:34:33 +0200 Date: Wed, 12 Apr 2023 15:34:33 +0200 From: Andrew Lunn To: Lukasz Majewski Cc: Simon Horman , Heiner Kallweit , Eric Dumazet , "David S. Miller" , Jakub Kicinski , Russell King , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: smsc: Implement .aneg_done callback for LAN8720Ai Message-ID: <7330ff6d-665f-4c79-975d-6e023c781237@lunn.ch> References: <20230406131127.383006-1-lukma@denx.de> <20230412132540.5a45564d@wsk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412132540.5a45564d@wsk> 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, URIBL_BLOCKED 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 > > This actually seems like a fix. So it should probably be based on net, > > and have a Fixes: tag. > > I've rebased it on the newest vanila kernel. Please see the netdev FAQ. It talks about the two git trees used for networking. > It turned out that this IC has a dedicated bit (in vendor specific > register) to show explicitly if auto neg is done. > > > > > Lukasz, how does this bit differ to the one in BMSR? > > In the BMSR - bit 5 (Auto Negotiate Complete) - shows the same kind of > information. > > The only difference is that this bit is described as "Auto > Negotiate Complete" and the bit in this patch indicates "Auto > Negotiation Done". > > > Is the BMSR bit > > broken? > > This bit works as expected. I would avoid the vendor bit, if it has no benefit. A lot of developers understand the BMSR bit, where as very few know this vendor bit. BMSR can probably be handled with generic code, where as the vendor bit requires vendor specific code etc. Andrew