From patchwork Wed Nov 29 04:53:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shinas Rasheed X-Patchwork-Id: 17238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp122368vqn; Tue, 28 Nov 2023 20:54:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHj3hoKyK9wieE/ZVKrDCNpal0OYWobjkeBcG9SWh169dmYu4lcAbGSpMlLy/UNoTpPTHM3 X-Received: by 2002:a05:6359:1781:b0:16b:c8cd:1f05 with SMTP id mb1-20020a056359178100b0016bc8cd1f05mr15581743rwb.17.1701233644391; Tue, 28 Nov 2023 20:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701233644; cv=none; d=google.com; s=arc-20160816; b=VMs7em7zyNTOV3AQiLomkXivm6FbdOfDYq6RGNo81VURCf/+raEUIcPjDLH1cAt3Zk 3r//3yB4JobG1jl9ebb+SSnw6IHZ02mD+qeUqiKQ77QSlx1GH0YIsvb6y3Noth9EpnYa UpcsefynO2BoLQ73BHWrMEf6SrM4jAQan1yTB3dDFfd5ApEYGbmLcTuOF5Vxd5k5wadm /PJZ9cfoDOZ4tTnsILQBlq8PIloAjTM33tlSPmt4YSm0PBYfifCdwLCHtrZxs1L/V2Ie zEQYm8XkkYr85Qk8EaGJccoe3U2U43X7g7W8x2drqzSy+dilkWFl1lnS6L07Qw3u9Kwn AORg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=opgqyZX6LMVrmkQX5DCOWm0LZevDwASGJmt2zGyiYfA=; fh=gNr59YhJeSqFpzAl5yMorJ8nj6h+jiBYcBCAuclPfFg=; b=ZalU1lgbyBW55sVZHF07CMKfzdeiJWX7zO/7cEoNvIyGk9pokxSiTncvX+QUCXnbpO 47hz/oEQ/dtwq1mfvMGoSqxzaLqp/0XUJgtfoXfxGsffZX1HuEr5NpvDNeiOcfSQBxEu NpHpBjHkmW3od42zuIqaawVlbgcCEiEEs1eGmOnv8OegST7waapcY5PaPhedQyL2dD6K 1oC2zAdeq0wy1ZohNIpfoHNXIoA8gRsnbWPq/rygLjmO2bxiE5J7jx/ddSNJJRkbzVbi 6WzrwRXtDBNl9lq2m9Dm725qCCWMbORT3xup1sNfM+A9snTqvMy/AO//j5+wDKkEaXRW hx0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=cf7pphZ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f9-20020a63e309000000b005c1faa82c06si13321332pgh.470.2023.11.28.20.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 20:54:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=cf7pphZ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DF96180C0A52; Tue, 28 Nov 2023 20:54:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376904AbjK2Exx (ORCPT + 99 others); Tue, 28 Nov 2023 23:53:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbjK2Exw (ORCPT ); Tue, 28 Nov 2023 23:53:52 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EF0710E7; Tue, 28 Nov 2023 20:53:58 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AT3jmWc006444; Tue, 28 Nov 2023 20:53:53 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=opgqyZX6LMVrmkQX5DCOWm0LZevDwASGJmt2zGyiYfA=; b=cf7pphZ0DfoQv1234ijBTwjtKhRvMlsQd1cb0+TjAAdIE7re0SBi94+9sh4Glhj1EtwX vDf7mcXm2Yjfe+EWhJr3uiBJoyb4ZVX5Ap/0FZ94o6ERg67Ls19SIgm7jtjVRjjyrsWZ HoE1DJtLkpsjGAiI8w8Yosgo1J+zOe33k2+jDfonjRQoSNnuxnM9Z3rn5Pnzmprb4wek SPqg55Ju8FcmCljqkbwzLZjv9unWkZzNZVnV9eQJNEuhwmAO1rbEXVT71MODUZmg+Ott vvadVSjwvQhe5UqXybNHIH1tWg84okkr9SaSIeu/tKorwfiTKnFUVFObvgCRAsJrQD3S 9w== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3una4dmdra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 20:53:53 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 28 Nov 2023 20:53:51 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 28 Nov 2023 20:53:51 -0800 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 85EE63F7043; Tue, 28 Nov 2023 20:53:50 -0800 (PST) From: Shinas Rasheed To: , CC: , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v2 0/2] support OCTEON CN98 devices Date: Tue, 28 Nov 2023 20:53:46 -0800 Message-ID: <20231129045348.2538843-1-srasheed@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: X_1OoNhzm7c87nwF5OHdvZsYAuJtKUFG X-Proofpoint-ORIG-GUID: X_1OoNhzm7c87nwF5OHdvZsYAuJtKUFG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-29_01,2023-11-27_01,2023-05-22_02 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 20:54:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783872769720827029 X-GMAIL-MSGID: 1783872769720827029 Implement device unload control net API required for CN98 devices and add support in driver for the same. Changes: V2: - Changed dev_info print to dev_dbg in device_remove API V1: https://lore.kernel.org/all/20231127162135.2529363-1-srasheed@marvell.com/ Shinas Rasheed (2): octeon_ep: implement device unload control net API octeon_ep: support OCTEON CN98 devices .../ethernet/marvell/octeon_ep.rst | 1 + .../marvell/octeon_ep/octep_cn9k_pf.c | 24 +++++++++++++++---- .../marvell/octeon_ep/octep_ctrl_net.c | 16 ++++++++++++- .../marvell/octeon_ep/octep_ctrl_net.h | 11 +++++++++ .../ethernet/marvell/octeon_ep/octep_main.c | 4 ++++ .../ethernet/marvell/octeon_ep/octep_main.h | 1 + .../marvell/octeon_ep/octep_regs_cn9k_pf.h | 4 ++++ 7 files changed, 56 insertions(+), 5 deletions(-)