From patchwork Thu Apr 4 19:55:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13618192 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E1B112883A for ; Thu, 4 Apr 2024 19:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712260513; cv=none; b=Ml26RVKrj4tiufCCTjSo2J2TKTc1ocl3nTO5LexexFT1TuN/ISG8r3JeSKabdbsbGvkk72dniJAfjjefNvDmv+earlKLyNJDZvlhl+dUjQwlDSDHhrkX3kLH9CZOfgNNnGVqEG+rBiRxWhbKS/Yln7vQjMu/rO2UxewX00PguAg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712260513; c=relaxed/simple; bh=qpKvFpR/lgaUPHC2KMxxHyDU4oxf7ERVf7bwoGvrwJE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Mq4WQQibSjD91Qk4GForVOpm0Eu01H1WUanG61FLzI1zmDay4D7Hrh2CN7HH/Gzd+qTWYgtMVz9r9qRx/nPgtzYvEEqa0BFPXhfL5KYTdLPkaEm6njcPmO0O+ZRiCsGypc5EXfbfYxIbWkIDrBwdVB3ZS52huz9y1158keqflXg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=I8eBt/Br; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="I8eBt/Br" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1dff837d674so12322555ad.3 for ; Thu, 04 Apr 2024 12:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1712260510; x=1712865310; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=dzQhApdW6DSVUxdS3UpwP/z9K1DISdp+VOvpA5AoJC0=; b=I8eBt/BrSR132VF8ZUXqW7s3jVqrfu0krUu3sd3G4fdQggONvE14rdoA0Gq6HPU/nF yuQ9AVzHxjHsNZMPHlpmg+7eHf51JbGyC+oRJZojPS1I1Ei4rUv2xmoOmTnZEhIj6Egd 1E5mUzvtE/scRcH3yGYZ/iHpnx8ZlpwALds1Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712260510; x=1712865310; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dzQhApdW6DSVUxdS3UpwP/z9K1DISdp+VOvpA5AoJC0=; b=Pd6+fJqJchPHFdM92xuPMZKGoQ1OztOPdusVesuPD1Qp8L6Y15C71vhxUzKEsVhhhv 1TTUTKiZ58JkULEJ/Mw2ZYx7cZnRUmA2cGZDCrpdBlgh6SGG2AiZvibzD8MSOJDox2g5 1YEDQ0TbQyyjAQnenb+NyoxqdGHwCFtgEm5KF21WdzfSRYE5uSVCqwAlOVDkHe+2ZxsP JGFVDqrnbpdKBX5HVKs/hWYxPiRFRFu6Hv4jMBNMXixan1aSunXqMUANNNFkQtJck6j3 4EWjN3b7vxteOCn8xhh1ohB59S1p82jc/f8lZlJNIZz3fkfhxQSjsshN55gCq94S0/pV /Jlg== X-Gm-Message-State: AOJu0YyTov0PiVeOMwkc4QddhAdllX0VE6aGn73LY4zQ0j4BvAX3jZSN SWSJdtcpM/mAKPd2eJNuaAdHlRIn+SO8J4xkrrzBXIgcWCS4AH1G9SNTmMyYrQ== X-Google-Smtp-Source: AGHT+IH6nxjwMbJ/mPOdYs1Bi8vCptxHrm3zxZBXpr/L6ivMA1f5gejpePSn3Jv2Bmyrmlc5MZZF1A== X-Received: by 2002:a17:902:c20d:b0:1e0:3113:a4e7 with SMTP id 13-20020a170902c20d00b001e03113a4e7mr485283pll.67.1712260510224; Thu, 04 Apr 2024 12:55:10 -0700 (PDT) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id p8-20020a1709027ec800b001e2526a5cc3sm9882487plb.307.2024.04.04.12.55.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2024 12:55:09 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, pavan.chebbi@broadcom.com, andrew.gospodarek@broadcom.com Subject: [PATCH net-next] bnxt_en: Fix PTP firmware timeout parameter Date: Thu, 4 Apr 2024 12:55:00 -0700 Message-Id: <20240404195500.171071-1-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Use the correct tmo_us microsecond parameter for the PTP firmware timeout parameter. Fixes: 7de3c2218eed ("bnxt_en: Add a timeout parameter to bnxt_hwrm_port_ts_query()") Reported-by: Pavan Chebbi Reviewed-by: Pavan Chebbi Reviewed-by: Andy Gospodarek Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c index 345aac4484ee..e661ab154d6b 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c @@ -131,7 +131,7 @@ static int bnxt_hwrm_port_ts_query(struct bnxt *bp, u32 flags, u64 *ts, if (!tmo_us) tmo_us = BNXT_PTP_QTS_TIMEOUT; tmo_us = min(tmo_us, BNXT_PTP_QTS_MAX_TMO_US); - req->ts_req_timeout = cpu_to_le16(txts_tmo); + req->ts_req_timeout = cpu_to_le16(tmo_us); } resp = hwrm_req_hold(bp, req);