From patchwork Wed Jul 28 18:11:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 488433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT, SPF_HELO_NONE, SPF_PASS, T_TVD_MIME_NO_HEADERS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 796C8C4338F for ; Wed, 28 Jul 2021 18:12:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6082D6056B for ; Wed, 28 Jul 2021 18:12:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbhG1SMD (ORCPT ); Wed, 28 Jul 2021 14:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhG1SMB (ORCPT ); Wed, 28 Jul 2021 14:12:01 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF144C061757 for ; Wed, 28 Jul 2021 11:11:59 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id mt6so6454808pjb.1 for ; Wed, 28 Jul 2021 11:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=mkSpKUj1ZL/9ZrVz0ulV5Dyp50r1kqMTQKtaFa3fnEI=; b=b0NlGdt+/GTxx7TKYHCzc6hbNxWhIXZS6cx6dhR4ehX8WB20K9EJoaNvCd/4ybQtA2 jAlgzrtxad8sAkWXtQ0DrRd1RtT3uBh5zQ3LFZvE5K7FehgUXlX0I6ZPsZ7oPnphLg1S RYc3M3R6r+K1f+QEkYyfGhpqVoWNuMADFuGc8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mkSpKUj1ZL/9ZrVz0ulV5Dyp50r1kqMTQKtaFa3fnEI=; b=PBWF/3CaBkPNeOsEwe7Stj/uVSu1zy6w6NtP26p1I0LZhlEhp4zq1w6kUlhIDJRmYJ lzGOXdN0esBrNcKMpBNQgz07Scek2M+fZ7lqXMbCRD8XdLtcbpEaAtM9A+d0VbAN6uUE 5WaPvDF2bgzshBGUxZdec9vHJsrnpyEkUXfI+ddkSDPOvgT2JuK5rlkrvg2ryA2qMsCQ bZsdg+ZzWv4pQfTurm9c+rT0h+zu2cigsLBPsxPXU5V8wyEGh0fmRH2Lxanw7vrho+um y4pFXRCx43Eop9PRAQHI79YlZXsnQXGSqHUC9Wn1OUnuk7Tp+1wMhzG55gc825Qr1XrI Zh4g== X-Gm-Message-State: AOAM533fbrFRJ/SbqitoLYaCHL2qxmiNX5qjpO/55wd8I7dzrpevP9mK WWhFDulWPQG5pzw1+PTwxUFvdw== X-Google-Smtp-Source: ABdhPJx5WL7mHgo0kwuv71o57xzz6bJ7Eyn0IuzXMqqVZbH+N0JDkucFtKMc/WeXvhKcZWuX17DBpA== X-Received: by 2002:a17:902:9a41:b029:12b:8e55:d2b1 with SMTP id x1-20020a1709029a41b029012b8e55d2b1mr926752plv.78.1627495919185; Wed, 28 Jul 2021 11:11:59 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id a16sm678901pfo.66.2021.07.28.11.11.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jul 2021 11:11:58 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com, richardcochran@gmail.com, pavan.chebbi@broadcom.com, edwin.peer@broadcom.com Subject: [PATCH net-next 0/6] bnxt_en: PTP enhancements Date: Wed, 28 Jul 2021 14:11:39 -0400 Message-Id: <1627495905-17396-1-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series adds two PTP enhancements. This first one is to register the PHC during probe time and keep it registered whether it is in ifup or ifdown state. It will get unregistered and possibly reregistered if the firmware PTP capability changes after firmware reset. The second one is to add the 1PPS (one pulse per second) feature to support input/output of the 1PPS signal. Michael Chan (2): bnxt_en: Move bnxt_ptp_init() from bnxt_open() back to bnxt_init_one() bnxt_en: Do not read the PTP PHC during chip reset Pavan Chebbi (4): bnxt_en: 1PPS support for 5750X family chips bnxt_en: 1PPS functions to configure TSIO pins bnxt_en: Event handler for PPS events bnxt_en: Log if an invalid signal detected on TSIO pin drivers/net/ethernet/broadcom/bnxt/bnxt.c | 62 +++- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 11 + drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 319 +++++++++++++++++- drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h | 53 +++ 4 files changed, 423 insertions(+), 22 deletions(-)