From patchwork Fri Oct 21 06:37:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13014302 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E760DC4332F for ; Fri, 21 Oct 2022 06:38:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbiJUGiI (ORCPT ); Fri, 21 Oct 2022 02:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbiJUGiH (ORCPT ); Fri, 21 Oct 2022 02:38:07 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A85D237F83 for ; Thu, 20 Oct 2022 23:38:05 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id s3so1072709qtn.12 for ; Thu, 20 Oct 2022 23:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QQWmrEu9Tfm9hkNDNlGKBjJ0Ad+qBSM8dkn2K0ofKnk=; b=H+GGLWjc6KoivSiJzFajb3VcuUfD1yyU5z4TPOBVB2Ru188Hg3rcDn92JiNwPIghlj YEauIrnb2oQHQpXOdPP9zx12sg+3BjCVvESTeB2+Jr+7cPWV3IhPegr8v5GzalF5cGCg IFZuV6RmRot7PYXbVw1u9U48szzJExnTgNaSU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QQWmrEu9Tfm9hkNDNlGKBjJ0Ad+qBSM8dkn2K0ofKnk=; b=lWlq2jtCK2Ch8x/fw4mmmoXJxEwCKmKX7S6FlZ0D7UKHvEE9VEDgHJPTwO8B/IOznI cmqsLs3ImOHNzQVYckNTiYtlOFMTbqtg8rT1adm+sBo2a0bLWORKRLzOkPVy+c0kRon6 Y/Zz+Nm7jTxq41JKuPjB8jGp1LJgSxdwIkNGrqMIcpvVl3LaPzMfNnyMyXSmbZPBDkCG 3ZN07fFKXENtCf1pBppXqMLHNbZR0hA5lgg65zehOmlfDmTOqYL1XVkSyl1szsn4hmuY jb6vJDQ63j9ywgQnN2rKMy+eC+hMyKqBHC1xmTqTHaOl7Lf3/xRFDlLyQ2z4iAjcObq6 Cjgw== X-Gm-Message-State: ACrzQf1FfKynMWGlCRBJUwZbmAZUf2r+Zrk/wUHzTPgnwiccLpncbmGl Nlo1jQc83TqRs4byfjgo9upUkCRa+ohntoV7 X-Google-Smtp-Source: AMsMyM7i5FHGPTX+GUqhIRfYCMLJUxt62gWUV54cgRBelnsmXZBteXQ50dtNYAKmNuaACHtNF7RUhA== X-Received: by 2002:ac8:7c47:0:b0:39d:16a6:eda0 with SMTP id o7-20020ac87c47000000b0039d16a6eda0mr5075852qtv.651.1666334284147; Thu, 20 Oct 2022 23:38:04 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id t12-20020ac8588c000000b0039cd4d87aacsm7688401qta.15.2022.10.20.23.38.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Oct 2022 23:38:03 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, gospo@broadcom.com, vikas.gupta@broadcom.com Subject: [PATCH net-next v3 0/3] bnxt_en: Driver updates Date: Fri, 21 Oct 2022 02:37:20 -0400 Message-Id: <1666334243-23866-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 X-Patchwork-Delegate: kuba@kernel.org This patchset adds .get_module_eeprom_by_page() support and adds an NVRAM resize step to allow larger firmware images to be flashed to older firmware. v3: Return more specific extack error when .get_module_eeprom_by_page() fails. Return -EINVAL from bnxt_get_module_eeprom_by_page() when we don't want to fallback to old method. v2: Simplify .get_module_eeprom_by_page() as suggested by Ido Schimmel Michael Chan (1): bnxt_en: Update firmware interface to 1.10.2.118 Vikas Gupta (2): bnxt_en: add .get_module_eeprom_by_page() support bnxt_en: check and resize NVRAM UPDATE entry before flashing drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 109 +++++++- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 234 +++++++++++++----- 3 files changed, 272 insertions(+), 72 deletions(-)