Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp627291rwb; Sun, 6 Nov 2022 11:03:20 -0800 (PST) X-Google-Smtp-Source: AMsMyM4ehLJytc8qqmF4xK1hANsNZxTNdBmzEQb59c1ho2bNxGzlN5jfa/gAYhC07JkcoVZJqOPO X-Received: by 2002:a05:6402:5489:b0:43b:b935:db37 with SMTP id fg9-20020a056402548900b0043bb935db37mr47922477edb.347.1667761400610; Sun, 06 Nov 2022 11:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667761400; cv=none; d=google.com; s=arc-20160816; b=TQeaKUJQ5lfxXY62X81ytIuoYbNc6N28IGjmRaa5zCDo34LGzKAVrRWUya+SbvVt9B GGyUkXpfBrUfy8FqrJaDbi91wRh4yW+hX666EJOYAfFCBav+BvufgiRYv16Zh15482BZ LicIJ/uA9vy2dX2OV/sD5nJuguc8PzrZ9VoEr0bgln1GBbqofTtue8Q2lANcWzeDfmbq ughTA4rli3Rb7MBIxgHvsLoChWb9Ti4XzyTfrSqBT2rI1o4/iSfziiYwCLd3hhy17S9M 8j0KCkzF3DZREOn/x4uXzX4niWhfOcrzO7iKbJUEsrwnETr/Hrj1b/UHxnpSIeQ4Gqla l/Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rUHXYEYFAqh3msBfRB5nJRUWohgoPXpOvXAFu1wqOwc=; b=uiUhcEwhq8sD3sphxvM7QyRdFsG4kb9F7ekiKfyWoGRLKK7uLqYqEoIuIJi3N5W5xo fj5Qfym+vD3tWxzyfG/B0O2hZqc1IN4bsotC3W/9o4tZp6sUELkhUKGihNVQLO0Pjj9m +rKvmxG5NXFfMGuA8pe84c7321f6nIOz+o7UPfpSnkNU8p/ImUEJurqFpcjaTiZpFcZI YG1HvkNyEl/McpxSYibOOa+c30fS/aY0e4yVuWbySo5hQr65Mwpc6S8Pbf86JBOfniy7 qlq11kT8LEFuF0J9uCbh4xni1TzManaI6JLuhtU0cjDJLEmSOvz0hbuv70k241/086IV AnVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="obXaSTt/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a170906390c00b00780805b99ccsi5106325eje.648.2022.11.06.11.02.57; Sun, 06 Nov 2022 11:03:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="obXaSTt/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbiKFSkq (ORCPT + 96 others); Sun, 6 Nov 2022 13:40:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKFSkp (ORCPT ); Sun, 6 Nov 2022 13:40:45 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 050E7FCCB; Sun, 6 Nov 2022 10:40:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B5BFBB80CA2; Sun, 6 Nov 2022 18:40:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F3B2C433C1; Sun, 6 Nov 2022 18:40:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667760041; bh=AVnsoYGb2+AD+XRwI/0qYBFYN0B977pukexcxCro4fM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=obXaSTt/yx69kdCi6VfoD+7BNQfjeRBCgEHNImgGqs3BLbmzZEzei7tX+sESkfaQU XmbyBUggVLVRN0HciufzMpVy8MXcGPnu8Wkm5VR3mZZmHsPmvRqE0XUAAs8h/WfKEx c68YBGqf5nsinyS+L6PZI3ILK+32mfvcq48GhpB1a+XzBBSX/UbJKQfMPSu5I/aRRA 4Kg9x1dXMgKaO4WTNR/mQT3PDILHgdRkWlwdxx3jpUE/sIEyHzqZeHaKlfmHHn8gcN g9b0Q4eqyWZa8XF1hoXfm5BfhYn5JC9vXue2V3dZrCG7mTJREeoghW0Rq/y/MMQ/j3 KKscj4Uiphagg== Date: Sun, 6 Nov 2022 20:40:36 +0200 From: Leon Romanovsky To: Veerasenareddy Burru Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lironh@marvell.com, aayarekar@marvell.com, sedara@marvell.com, sburla@marvell.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH] octeon_ep: support Octeon device CNF95N Message-ID: References: <20221101153539.22630-1-vburru@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221101153539.22630-1-vburru@marvell.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Nov 01, 2022 at 08:35:39AM -0700, Veerasenareddy Burru wrote: > Add support for Octeon device CNF95N. > CNF95N is a Octeon Fusion family product with same PCI NIC > characteristics as CN93 which is currently supported by the driver. > > Signed-off-by: Veerasenareddy Burru > --- > .../ethernet/marvell/octeon_ep/octep_main.c | 19 ++++++++++++++++--- > .../ethernet/marvell/octeon_ep/octep_main.h | 2 ++ > 2 files changed, 18 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c > index 9089adcb75f9..e956c1059fc8 100644 > --- a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c > +++ b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c > @@ -23,6 +23,7 @@ struct workqueue_struct *octep_wq; > /* Supported Devices */ > static const struct pci_device_id octep_pci_id_tbl[] = { > {PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, OCTEP_PCI_DEVICE_ID_CN93_PF)}, > + {PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, OCTEP_PCI_DEVICE_ID_CNF95N_PF)}, > {0, }, > }; > MODULE_DEVICE_TABLE(pci, octep_pci_id_tbl); > @@ -907,6 +908,18 @@ static void octep_ctrl_mbox_task(struct work_struct *work) > } > } > > +static const char *octep_devid_to_str(struct octep_device *oct) > +{ > + switch (oct->chip_id) { > + case OCTEP_PCI_DEVICE_ID_CN93_PF: > + return "CN93XX"; > + case OCTEP_PCI_DEVICE_ID_CNF95N_PF: > + return "CNF95N"; > + default: > + return "Unsupported"; > + } > +} > + > /** > * octep_device_setup() - Setup Octeon Device. > * > @@ -939,9 +952,9 @@ int octep_device_setup(struct octep_device *oct) > > switch (oct->chip_id) { > case OCTEP_PCI_DEVICE_ID_CN93_PF: > - dev_info(&pdev->dev, > - "Setting up OCTEON CN93XX PF PASS%d.%d\n", > - OCTEP_MAJOR_REV(oct), OCTEP_MINOR_REV(oct)); > + case OCTEP_PCI_DEVICE_ID_CNF95N_PF: > + dev_info(&pdev->dev, "Setting up OCTEON %s PF PASS%d.%d\n", > + octep_devid_to_str(oct), OCTEP_MAJOR_REV(oct), OCTEP_MINOR_REV(oct)); > octep_device_setup_cn93_pf(oct); > break; > default: > diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_main.h b/drivers/net/ethernet/marvell/octeon_ep/octep_main.h > index 025626a61383..123ffc13754d 100644 > --- a/drivers/net/ethernet/marvell/octeon_ep/octep_main.h > +++ b/drivers/net/ethernet/marvell/octeon_ep/octep_main.h > @@ -21,6 +21,8 @@ > #define OCTEP_PCI_DEVICE_ID_CN93_PF 0xB200 > #define OCTEP_PCI_DEVICE_ID_CN93_VF 0xB203 > > +#define OCTEP_PCI_DEVICE_ID_CNF95N_PF 0xB400 //95N PF AFAIK, correct comment style is /* */ and not //. BTW, patch should include target "[PATCH net-next]...". > + > #define OCTEP_MAX_QUEUES 63 > #define OCTEP_MAX_IQ OCTEP_MAX_QUEUES > #define OCTEP_MAX_OQ OCTEP_MAX_QUEUES > -- > 2.36.0 >