Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7038249imm; Tue, 28 Aug 2018 05:31:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbodqgaWSASVMqTaDci0wK4FFd7gAE6s+hVq30bDj2P70ol4CXPsyzzrKQouhuSRKUpm0vf X-Received: by 2002:a17:902:7488:: with SMTP id h8-v6mr1400586pll.16.1535459501374; Tue, 28 Aug 2018 05:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535459501; cv=none; d=google.com; s=arc-20160816; b=kvG3aHbOtj/tIzi3mbA+JkbTLmGQqxSYZP7F192GSNsc0Ogy7QwcuLUBEKDK5JV5by WwbP8KdO5l9EJsPLDR1ufoe9pmodTVpZz4VGsAEJIg4fq46h+A/HnymGw0AgLWgrEEj0 ekFHn94O+pMQtxbSUMQelSiAM4fAwxdVtKTS4GdC9UUFsrIvyvot4FgMk7WRO3ZM6JrJ vtPT5phB5n+PS1sfJFIWIjvSSBcWXjgcEID7Mt5hwVl/KtTAy3yRuzzxqHt1m++8OaLU 69lp1/ovz5whVBHfb1uG91WbabAl6j6m2v40P0o2y4EJJRXfDw+2/PW2bkjDZl1CNiNn jdiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=T9MVLl9QPlzFcIzhOf5KGkGxqZQ9OwmNB+AbR1kltMw=; b=zfZF34oBZ1BPzqXl23abyp9Weih6DSGr1aaLtG3ZtBaxDsJky4jA0o4Bk5Wu1y2RD8 x9mytu9//xFgORhsELgMmOWUzHzDt2gE2V9B0LkYDwnJRJWN7sS+f0Lo2jRbYSr5ujlO llSWgGIwSpKkqCCll/ADU1clmP+AXpD+JLjnc+bvRnGMfGzohN1EkzMkEEX5Ld9PDjAM y9rmHfrGPmSBhnOwc69c4NtrP2mJhJVZayJVMHLYzTbWdaUaT6Uv9RDowzLVU/RZSzAy wchqCNWb7tHluWi8F3+QnTXYEJtHB+kHe/TAcVMEWaMObUhcDeQIwHOAQqWwF0vnD99I LRbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o8Q5boRc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9-v6si853459plr.160.2018.08.28.05.31.25; Tue, 28 Aug 2018 05:31:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o8Q5boRc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727808AbeH1QVo (ORCPT + 99 others); Tue, 28 Aug 2018 12:21:44 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39937 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727162AbeH1QVo (ORCPT ); Tue, 28 Aug 2018 12:21:44 -0400 Received: by mail-wr1-f68.google.com with SMTP id n2-v6so1406053wrw.7; Tue, 28 Aug 2018 05:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T9MVLl9QPlzFcIzhOf5KGkGxqZQ9OwmNB+AbR1kltMw=; b=o8Q5boRcHiR8IQxyxn+de7uytXc8M8Mp3oqBSPDbPhJR+yMaV2xFghLrrbyeMfaKkg HSEsRDlWu9dt8vjkuaTmS7tMliQbs3Q5/f7fgQT07KUyPTUHxS0xZHXhJ8IK4Xl8+T5R lA21q+SRWgH6aE7PMaQ0g1N05NUq6LjXMvRbkx9etZVOq3WWo5VxIDBegR/ceJIcuEzr +DdkurRvwyb+RIU0ADS7L1wHY5jFXvSdclLoViaBsH/JaoVaFHGmMXromks5+6ev9ku/ gxyHomAzyNHUqNaAwtX8YMf5vkMvxgC2J8EOSWQlSDkelym8YGAvIlBKUKqsDc+yuhf0 zgHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T9MVLl9QPlzFcIzhOf5KGkGxqZQ9OwmNB+AbR1kltMw=; b=JStU7iKfD7dRRktawqpDCJthdbnFxmZa0m2pGPi8a83cngou1N7I8HXcFuYknopLC8 iEJkIqcJg0Ksx90EkYucHGOkeDJbcOYt8Pl3inJAJPWweQmOI520tnmNxAdwpLKj9GWM isJb15Yxtm9EBvrRh02kewvI//RG8BHoGA9awl+7+ZyMAh/i8ijAL5A9fibaqygkTcrS vYpeLUopqFx/LXeUummKetmVXskmpJNbRoE8BPJMtjiuylyat2i8L5LYRBqJVAzESRpb rtBCrYkB6TVblf7QvPvQs702hFz46AAuv6ianw7J4XK3K3gibfUgKkr3ufBLIby/S+5T uUoA== X-Gm-Message-State: APzg51DPpApEAwMwlpdeRRwAA+VVSkgWylPcLMA2lxNjDQusWFs4miNz IdaEyScyjFNrVo33R/sYRDZlvpLStM9Ret+GGTw= X-Received: by 2002:adf:b1db:: with SMTP id r27-v6mr1031799wra.95.1535459416267; Tue, 28 Aug 2018 05:30:16 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> <1535453838-12154-12-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: From: Sunil Kovvuri Date: Tue, 28 Aug 2018 18:00:04 +0530 Message-ID: Subject: Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver To: Arnd Bergmann Cc: LKML , olof@lixom.net, LAKML , linux-soc@vger.kernel.org, Sunil Goutham Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 28, 2018 at 5:40 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > From: Sunil Goutham > > > > This patch adds basic template for Marvell OcteonTX2's > > CGX ethernet interface driver. Just the probe. > > RVU AF driver will use APIs exported by this driver > > for various things like PF to physical interface mapping, > > loopback mode, interface stats etc. > > > > Signed-off-by: Sunil Goutham > > --- > > drivers/soc/marvell/Kconfig | 10 +++ > > drivers/soc/marvell/octeontx2/Makefile | 2 + > > drivers/soc/marvell/octeontx2/cgx.c | 117 +++++++++++++++++++++++++++++++++ > > drivers/soc/marvell/octeontx2/cgx.h | 20 ++++++ > > If this is a regular PCI ethernet driver, why do you put it into driver/soc > rather than drivers/net/ethernet/ ? No, this is not a ethernet driver, as mentioned in the cover letter this driver and AF driver doesn't handle any IO. There will be a separate ethernet driver (will submit that as well in future) which will communicate with these drivers for configuring hardware. The driver in question here is for a serdes controller which handles physical ethernet interfaces. Admin function driver gathers info w.r.t current state of physical ethernet interfaces from this driver and notifies actual ethernet driver about changes, if any. Thanks, Sunil. > > Arnd