Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2391384ioo; Sat, 28 May 2022 12:10:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIZ1vL4JPVPS35o55VnG30ZUbrKtz174dGFV+OmDi83PbwvCNobpINCxB06rrIiCyOBNEw X-Received: by 2002:a05:6a00:7d6:b0:518:9fa0:7dc with SMTP id n22-20020a056a0007d600b005189fa007dcmr30993391pfu.36.1653765013795; Sat, 28 May 2022 12:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653765013; cv=none; d=google.com; s=arc-20160816; b=te5sK/4MqTLZ+WGXBzNawVJxHaPberGj/3HXen2E9SmQFNQBvZsy65FDAa1FJikzB/ PgNelX4i6zMs9F/X4Q5MNthnmUFx6s8iTQuoicomryF2q7uiUasKporeZeisJRJqdd9P GDT/3AzIHi0AWTL1VcHLCDFfTt6qIjS9RXsFC3KVGofMR5SMTK3uwC7ZnCRnuNCXSfxf T0U5oahNoVe6PE+xjHinU5+QYLAEyh9pXovCuUCEPfXXM6jTxWWaxULkiVn6jwpA+Kst HZYZAsMvdCMX6oDDv4qNmeo7ZEr2J81SsTZ7JGEvPkipZieK6LzO+jQYJj9vp2nD4t60 82PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BqjBnCKbg0vQQWoRoRu+U3yA95zF7E+JOp83Kt5L2a4=; b=YGcZd8nmDXOqHclCHojEkM6OLKvidI04NYhHNkmf+XOuSe0vw8TgbMVtzYf2jK6SIB 8MpHtUJ21hdmqnd6y3KOfu+P9Rw4AP618UD0wXrfitCiIuDWNmYqlrZwXSoKNj/qlyrP SlWpmP4LdmQH/R9fOGMP501EkAEu0jQ1P+prRYLf0YTGNdTiMyvZzu7whFJLlP2OETYC j4zEwwk8lOKBRPxrGHL5JY+nXuwzoSwqxZmZUWPVGnFuK9mTFWs74vF8jIjeeIpkm6XM xF/uetinjZUDgSrt6h/nFTUUDx8EmsCBV7DvZxHRrjXlydQ8hOwBn7PL9lQMMhJqlrRP nH9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CMShrFkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k189-20020a636fc6000000b003fac21d77cdsi11238967pgc.547.2022.05.28.12.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CMShrFkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41FA940913; Sat, 28 May 2022 11:47:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233235AbiE0Bt6 (ORCPT + 99 others); Thu, 26 May 2022 21:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233258AbiE0Btz (ORCPT ); Thu, 26 May 2022 21:49:55 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE22DE2758; Thu, 26 May 2022 18:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653616194; x=1685152194; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kut1lyhhg+8YOva3L1ERzYHZ76rCQIBn6vcFl8mahxg=; b=CMShrFktcY0NLyPNxmttBRR/xL8ehJK5Au/otaUsEhJt34VwXKUcY7XQ QbjW1KTa2mfHxXx2Fj0OKjyQRQy99LK2y0HxOwrdNkuq5xi0f4OCOFbOr +GLiTYL593qQCVl+8dLsMs0kcCGdJwF3gMkzxwGOETKNXBzSetLtuwKZD kvkEjDLcpYnGVlBs9xNvv6s3TJlhi/voiiApKirWHm1al0FqXkOrrWjU6 xYjArUS7ittlou6gYWz3pbFPXHPNTJeenz9hC70qYbzygpUna/+EWmSQ6 2jX+XiFAurMfrEkyfS1LElxct8PsGNMbiCrwjxC+fi1MRD0lMDS5n6S0R w==; X-IronPort-AV: E=McAfee;i="6400,9594,10359"; a="274451648" X-IronPort-AV: E=Sophos;i="5.91,254,1647327600"; d="scan'208";a="274451648" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2022 18:49:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,254,1647327600"; d="scan'208";a="631230192" Received: from linux.intel.com ([10.54.29.200]) by fmsmga008.fm.intel.com with ESMTP; 26 May 2022 18:49:53 -0700 Received: from linux.intel.com (ssid-ilbpg3-teeminta.png.intel.com [10.88.227.74]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 116F7580B54; Thu, 26 May 2022 18:49:49 -0700 (PDT) Date: Fri, 27 May 2022 09:47:09 +0800 From: Tan Tee Min To: Andrew Lunn Cc: Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Dan Murphy , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Voon Wei Feng , Sit Michael Wei Hong , Ling Pei Lee , Looi Hong Aun , Wong Vee Khee , Tan Tee Min Subject: Re: [PATCH net-next v2 1/1] net: phy: dp83867: retrigger SGMII AN when link change Message-ID: <20220527014709.GA26992@linux.intel.com> References: <20220526090347.128742-1-tee.min.tan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Thu, May 26, 2022 at 02:32:14PM +0200, Andrew Lunn wrote: > On Thu, May 26, 2022 at 05:03:47PM +0800, Tan Tee Min wrote: > > This could cause an issue during power up, when PHY is up prior to MAC. > > At this condition, once MAC side SGMII is up, MAC side SGMII wouldn`t > > receive new in-band message from TI PHY with correct link status, speed > > and duplex info. > > > > As suggested by TI, implemented a SW solution here to retrigger SGMII > > Auto-Neg whenever there is a link change. > > Is there a bit in the PHY which reports host side link? There is no > point triggering an AN if there is already link. > > Andrew Thanks for your comment. There is no register bit in TI PHY which reports the SGMII AN link status. But, there is a bit that only reports the SGMII AN completion status. In this case, the PHY side SGMII AN has been already completed prior to MAC is up. So, once MAC side SGMII is up, MAC side SGMII wouldn`t receive any new in-band message from TI PHY. Thanks, Tee Min