Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp477139rdb; Thu, 19 Oct 2023 09:32:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRGJnAaX8gG4XG3id/SePllASBWWKHw30zBpF2i6lujNX2pODgjWUUNyVjz2HnVRev9KB6 X-Received: by 2002:a17:902:d4c4:b0:1c7:37e2:13fb with SMTP id o4-20020a170902d4c400b001c737e213fbmr2794746plg.55.1697733148989; Thu, 19 Oct 2023 09:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697733148; cv=none; d=google.com; s=arc-20160816; b=ARkqMgWIjuA9wvR4iiwX/eoWNtOksBcESo//b4LYYeMKrHAdHJ70brlqW97aPj4FR7 cIfY5DDOK4X9iAM+wjZi6KAPnoo9nHBkNuJXwnM+Ucab4lMm+Ev9XlYTuNHTaecxwJZP lpKtu3XsZGVMjWAAwLUzqkXZ+935JPl+HCYjDI+OcBlsn///7mIqOxpvcqmiq9lRNl+R 3rZbB8dku7uADxxaQpQ0AReZPc+hAX0eidI/reYkscKdw88URKBM4oB9tW7wq8Fl0TOs CtB15Sn/L4OXrRki377Kp4+y32c5v5fQHCe7FRTyYTjn/c/jYX3y85k3VKfLu+EC/gFW cgtQ== 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=snMnwniYmlxP3Y9Ip2eEixKebfiIM8G3x6wXC6QAwiQ=; fh=FUiHKYHn79dBA/VN/j9THP+WaWznP8fs5tXJncx788c=; b=ss/XJlmQXSx0nMV2i5eN6d6zlK9PWp8J9xzUeUv0zbmgKkl45YIS1vo0LshJ1TkrnS oQQgMVC7UnLXLaWsx5Ov6UUi48wp2b4JpFhZyUsBT5ccOSJcQEfy2/K8Hk/5TKMBT8iu MfI385XPh1kegixtZ75CSovEJ0/RyvTtOwZ0HxUolUEntvn3Wzk8ui2bWTYXe491hsCq qqb5j0vSoTCfa/Eq9WSGsf/DAYC8E01rWNx+TJmg8CJgbPQbilDYRtnXBqbj2KWbRBWI yN5ihjpb3u9wLrq9jHRsatIFvebMdOhQRV9JrCtdC4STflk8Q2si1XDXYFpoY+0VJLwq Koaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GVnrVvlU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id g15-20020a1709029f8f00b001c724f99800si2357007plq.44.2023.10.19.09.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 09:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GVnrVvlU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9EFA781C203B; Thu, 19 Oct 2023 09:32:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbjJSQcT (ORCPT + 99 others); Thu, 19 Oct 2023 12:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbjJSQcS (ORCPT ); Thu, 19 Oct 2023 12:32:18 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD08C114; Thu, 19 Oct 2023 09:32:16 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so2101063a12.1; Thu, 19 Oct 2023 09:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697733135; x=1698337935; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=snMnwniYmlxP3Y9Ip2eEixKebfiIM8G3x6wXC6QAwiQ=; b=GVnrVvlUfWwRP8Bwx2PI/Hf68EABzxG8SWq289UvyeOqgKOphlDEfEUDil9gjrxb/n gk1K4s9O9mzBXJrkHZ9QP2wIn5q+MdfR7+hDjXrMVCrO4Nh8A3LJoIWp5zhTUutvAPbP M7oO0cYkQwQFnScyHVr/c6LNwacMfjpX6MSC9mDZZwXDS4G8Fj/+/I0QYcbqV/8ZMHOU bKAG9CvciSC1tYA/EI91U3PITKE9kWa+SVb1rFrEm0I1Vg+nfcX1E1A9jZ7vrMmmo2k4 vJN4hPoxwDgYigsBr307Lew/cDmuSPf05Jn1RjxJolwvry7mphvELIPSZppzISVzHIcd jPrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697733135; x=1698337935; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=snMnwniYmlxP3Y9Ip2eEixKebfiIM8G3x6wXC6QAwiQ=; b=nbShNq8DptN2VGE0CDkHflsbeGnTgF/cUZ2t+v5uKRpVfWiAog/v6gsNSh7Xi3M2QG UL8PfvvBM4s+ZQ2tfM5jVaDDZPvDA8EAXifN+/GSRd56+hrWLmBNJDxikyKYaQNwRHkk u0cjTqszNHhwj2ncK1uy2aIsjp7UqL/TVOX5uQk2v54vJiuosSsfI30aUSMhaeLQRTwi x29uMi9uIXokfkr9DjjhcQVchsfH/iziwzZ1oACgAdIg3v74EIF5qaccEppm1c1WZ6YH +3htLsnO+23CIiJge6LJDV2hHtWq4NOR6KfJT1jSq4iCum/Vqf4dDuLeye+Jt8QuPQl3 /HaA== X-Gm-Message-State: AOJu0Yz5/nSewviklNjHI2e8P8WlZkHtbPQV8ZWy7ZiVRlC79rf6+ipf CnQ5Dc8JRYu81xq0uY0Sigo= X-Received: by 2002:a17:907:2d0f:b0:9ba:8ed:ea58 with SMTP id gs15-20020a1709072d0f00b009ba08edea58mr2246411ejc.30.1697733134928; Thu, 19 Oct 2023 09:32:14 -0700 (PDT) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id ck3-20020a170906c44300b009bf7a4d591dsm3888016ejb.32.2023.10.19.09.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 09:32:14 -0700 (PDT) Date: Thu, 19 Oct 2023 19:32:12 +0300 From: Vladimir Oltean To: Oleksij Rempel Cc: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , kernel@pengutronix.de, linux-kernel@vger.kernel.org, Russell King , netdev@vger.kernel.org, Alexander Stein Subject: Re: [PATCH net-next v3 2/2] net: phy: micrel: Fix forced link mode for KSZ886X switches Message-ID: <20231019163212.yzt6erzptuifs5yn@skbuf> References: <20231019111459.1000218-1-o.rempel@pengutronix.de> <20231019111459.1000218-3-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019111459.1000218-3-o.rempel@pengutronix.de> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 09:32:26 -0700 (PDT) On Thu, Oct 19, 2023 at 01:14:59PM +0200, Oleksij Rempel wrote: > Address a link speed detection issue in KSZ886X PHY driver when in > forced link mode. Previously, link partners like "ASIX AX88772B" > with KSZ8873 could fall back to 10Mbit instead of configured 100Mbit. > > The issue arises as KSZ886X PHY continues sending Fast Link Pulses (FLPs) > even with autonegotiation off, misleading link partners in autoneg mode, > leading to incorrect link speed detection. > > Now, when autonegotiation is disabled, the driver sets the link state > forcefully using KSZ886X_CTRL_FORCE_LINK bit. This action, beyond just > disabling autonegotiation, makes the PHY state more reliably detected by > link partners using parallel detection, thus fixing the link speed > misconfiguration. > > With autonegotiation enabled, link state is not forced, allowing proper > autonegotiation process participation. > > Signed-off-by: Oleksij Rempel > --- Reviewed-by: Vladimir Oltean