Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2785695lqo; Tue, 14 May 2024 09:04:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+ixFFw4aFKoHuvWoZVLC+J8vpeQdmQ0kQbykCa+M/3Lh0SGYK+s8tOd3I1rgZY0/4qbRA/B2S+HTAow3XhjAXAeIy5ox7aWkCtqqGTQ== X-Google-Smtp-Source: AGHT+IEZK/fRS2nd8pu/4+ElMEU8N0An0oJo9/o2OKiWCFxNPzGR6P/kIByLiwyLLAHF7LtDTerL X-Received: by 2002:a05:6102:b0f:b0:47c:607:eed2 with SMTP id ada2fe7eead31-48077e1b774mr12848974137.18.1715702658944; Tue, 14 May 2024 09:04:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715702658; cv=pass; d=google.com; s=arc-20160816; b=n50PtrAVoIVnVxPI4LwiA+0Ud/5DYpJ2SunDO0CC2o7AF1sbuPvQcLWxkP3d0120jN Va0KRFVkVOkvL1rYKpfVVcY6jFb9wljLbxrMo0gtC5OjKblSTBvw1CzgLj3QLJTWgCWT YW3y5NkxjGbQHVgKoDJ47Xujh9I62c62312YK39RDQxrshMXfYjtI5ZA76w88Gyg+hqO PRLhYcPLvSa0nZIL8gvKckZhw8GM8lt0n/HqoOQ/PLDEKdpOn7MyTZUDCi5ITVepnwOa PuqSZGqmBW0DwtCKYEg17AySwlcOJDBexfTPsa2ciU+SlhoXNupNwAXDUQWg9un9cDme 2TCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nqqrgKHL4xYReiawvhKRPnjqiWmBMYRmxiWusT788zQ=; fh=cQhHd9jKPGej8nHySYScthOig5c4GhS9xAkIqXbKkTQ=; b=vsiKhXheQvzpyUqWL8bIItIZSdZZU703dcPtmt/BBuMIyJt5zpzY/0MA62haRrEnVz qq2P81ObbjyVXp/G4qYGUScOv8RopVKvhTkNG4Dr0ta5uGhUGQVjjLDq0zsGIBvqI46t e+MNFKaSnyJ/6nDiY5CY8ADV8SPX3cvODc0R+X9t7jqDySCsrzn/udYoIsiSZLrM467T zpIGNs/k6jFLT4JczCzBSFDJpXy2wWqPJka0PPr8fTOI0IJNY3o7XDIn++2srm34CsD0 XCeokC2cvSyYcK5W+nBDCJtGPzMczI9/3RTQbwdXWySuP7F6CIy3IODlm6EzQhXYXpzp jmAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=chVAlGxR; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-178901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-4806cc90a65si2239183137.576.2024.05.14.09.04.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 09:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=chVAlGxR; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-178901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F6341C21C0A for ; Tue, 14 May 2024 16:04:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 895BB1802A1; Tue, 14 May 2024 16:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="chVAlGxR" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 014781292D2; Tue, 14 May 2024 16:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715702637; cv=none; b=p1/hDP7+8UIKy4WZvIfoH8aqxY8fryzLsA9Ru18lTOfPiAvN7Y2POrisGAjMD7SwVvKGFSryrGJjYRrc0eMrVayEP8KMWmDTVz8pumrghuG4P9W/vA8Q5tHI2zwhRqQ48aFHBvyhhZeuLq0OjhvzR7sGH8zemE3uzI1eFXYJH0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715702637; c=relaxed/simple; bh=DIj9Bf8iNALKtoElpdqCERvL/swGwTHjMYy3HwDYoUk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=B/aLSi3+somshRH/DQ1ryCBHMd6cgixoTt0/anzv9EkMrd3qcnvM7huawTNCMdRGqvWrrSHK8C+tVCb+WV49m1Bwm5B3QkZwy7cC8WW08kMIMOzIMzVByWFCBh9q+poJIJVp37LvinGlcIBln/YFuB77E2NvqXPmNYF4yR4+81U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=chVAlGxR; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1715702636; x=1747238636; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DIj9Bf8iNALKtoElpdqCERvL/swGwTHjMYy3HwDYoUk=; b=chVAlGxRosrMVYJSht5rDAunz3qDJ36BZXDXWk5XSnedmM+AoYO9UkMT Uyzda7bGkR7gUR4+7J37bWceJZO8CSU9FYHqB4Zzay81VVUNu2q1UYNSK mBFQNk5dFf34vMNzU1dliy1nPv30FhwpWIpJvFjVr3lY1RZUyxDtxDE35 RK4ANSZopIvQ+Cmlc+ubibsPE0In+C1NzXhNDvGFSRAx5AuCqr9jLNYiu cG45fV1a+RxZXh4Te8TAGCC/cr0l2on9x52IIUglYNVb9rFh0g1gzn0fD Q5mW01kZA3IF0DdwzIrARkUAptbnOxe+TBxqIoKTm6wqR5dIexxb9WiDJ g==; X-CSE-ConnectionGUID: fa/uIrenSP6Bi4ynGM2+AQ== X-CSE-MsgGUID: HCpUCcM4TuywJfN4mJzLkg== X-IronPort-AV: E=Sophos;i="6.08,159,1712646000"; d="scan'208";a="192034024" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 14 May 2024 09:03:48 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 14 May 2024 09:03:30 -0700 Received: from che-ld-unglab06.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 14 May 2024 09:03:26 -0700 From: Rengarajan S To: , , , , , , , , CC: Subject: [PATCH net-next v2 1/2] lan78xx: Enable 125 MHz CLK configuration for LAN7801 if NO EEPROM is detected Date: Tue, 14 May 2024 21:32:00 +0530 Message-ID: <20240514160201.1651627-2-rengarajan.s@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240514160201.1651627-1-rengarajan.s@microchip.com> References: <20240514160201.1651627-1-rengarajan.s@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain The 125MHz and 25MHz clock configurations are enabled in the initialization regardless of EEPROM (125MHz is needed for RGMII 1000Mbps operation). After a lite reset (lan78xx_reset), these contents go back to defaults(all 0, so no 125MHz or 25MHz clock). Signed-off-by: Rengarajan S --- drivers/net/usb/lan78xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index ba6c8ac2a736..7ac540cc3686 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2944,6 +2944,8 @@ static int lan78xx_reset(struct lan78xx_net *dev) return ret; buf |= HW_CFG_MEF_; + buf |= HW_CFG_CLK125_EN_; + buf |= HW_CFG_REFCLK25_EN_; ret = lan78xx_write_reg(dev, HW_CFG, buf); if (ret < 0) -- 2.25.1