Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2624351ybd; Thu, 27 Jun 2019 16:08:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ8GeiZXNjiYTFwRgZ17KojLsho27d1QX7K7AjA5r3WSK6OdboPfBbCWeSdzoYgSYuYAn9 X-Received: by 2002:a17:902:1486:: with SMTP id k6mr7413882pla.177.1561676931401; Thu, 27 Jun 2019 16:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561676931; cv=none; d=google.com; s=arc-20160816; b=yKjwGecSJcGRL1OBZ32IEd72I2by2FNGr8Y6es3ncp0D75G4k+ClyXETDJe+OeOoYy 8IDh6RkwNaRQBMj4h7aqpmNUkcuv0luDPsZZ6hvmuYjE8+NGtqhnZ5JXDfwxqEq80TV8 8TTx+gWLjK01ca4YKjyfR0ivl4MQg1tOBei+3p11YXFaXxPaEVJZjUBN6y361/ZaWQRp wn/Y8cffL108EtvNFgHX7cw1n1VhRy+0m6ZuuXSwrc85fQNLs8crXL8GRzpjgKtri6Pm 9+BS43Hu5qIFBvYt5mV+kmnZzs4gaqIJFLmh95DvxFAgpR7gMkpxTWG8Sy6FKulVMZ5h kb+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=rJANy5DvWMNMgavrynmdKX4bSoBBhA1xLvcPKuLTd88=; b=Cd/CxPiZn46mYDy2Kpa9LW1TS0NGqk8LvC9RTUohiUic5TlZI/CgyzUcB8ggROoTjQ IpUByR61W3cogRzmtEy1+wHniLER5KXWHJUFmNhAEfvp5BbiJYTXUvYKMYyyaQt9J2Q/ aZXgOYzEUJZL1AgaTashc+Jx5h8h+7unaBzppyQoHWo+CCJ9971966I6YBLrW4fmqX2h qS5MQYW1OJKEnPLuFocqi2f8wr9Nyug6IgaSYZ/iiyzYzU+l4bTxXvSnZgBxMkI8oXrW BvHy0dHWJH9udQ2K2ZchoQ92NJJg+7Hl9KTQ3nlIoqH7Jb31cYmsBbtR9XyK84NaflyY bCQw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si420124pfn.84.2019.06.27.16.08.34; Thu, 27 Jun 2019 16:08:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726667AbfF0XI0 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 27 Jun 2019 19:08:26 -0400 Received: from mga18.intel.com ([134.134.136.126]:20610 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfF0XI0 (ORCPT ); Thu, 27 Jun 2019 19:08:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2019 16:08:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,425,1557212400"; d="scan'208";a="185442799" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by fmsmga004.fm.intel.com with ESMTP; 27 Jun 2019 16:08:23 -0700 Received: from pgsmsx114.gar.corp.intel.com ([169.254.4.160]) by PGSMSX101.gar.corp.intel.com ([169.254.1.223]) with mapi id 14.03.0439.000; Fri, 28 Jun 2019 07:08:22 +0800 From: "Ong, Boon Leong" To: Jose Abreu , "Voon, Weifeng" , "David S. Miller" , "Maxime Coquelin" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Giuseppe Cavallaro" , Andrew Lunn , "Florian Fainelli" , Alexandre Torgue , "Gomes, Vinicius" Subject: RE: [RFC net-next 1/5] net: stmmac: introduce IEEE 802.1Qbv configuration functionalities Thread-Topic: [RFC net-next 1/5] net: stmmac: introduce IEEE 802.1Qbv configuration functionalities Thread-Index: AQHVJdrXUsdOVQF/k0iKWNkitFHiIaau88qAgAE4duA= Date: Thu, 27 Jun 2019 23:08:21 +0000 Message-ID: References: <1560893778-6838-1-git-send-email-weifeng.voon@intel.com> <1560893778-6838-2-git-send-email-weifeng.voon@intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2Y5NDUxYzUtYTJhYi00NDRmLTgzZmItODYzMmIzMTgyYjg1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaUJFb0JmNGllSThLMnA3MFFCOVBRejdaQ2VhZURBa0NjM2pHQ21JV2NZZHJKKzhoOUtrMUNOQTNYczUwY1E2biJ9 dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >-----Original Message----- >From: Jose Abreu [mailto:Jose.Abreu@synopsys.com] >>From: Voon Weifeng >> diff --git a/drivers/net/ethernet/stmicro/stmmac/dw_tsn_lib.c >b/drivers/net/ethernet/stmicro/stmmac/dw_tsn_lib.c >> new file mode 100644 >> index 000000000000..cba27c604cb1 >> --- /dev/null >> +++ b/drivers/net/ethernet/stmicro/stmmac/dw_tsn_lib.c > >XGMAC also supports TSN features so I think more abstraction is needed >on this because the XGMAC implementation is very similar (only reg >offsets and bitfields changes). > >I would rather: > - Implement HW specific handling in dwmac4_core.c / dwmac4_dma.c >and >add the callbacks in hwif table; > - Let TSN logic in this file but call it stmmac_tsn.c. OK. Thanks for above feedback. > >> @@ -3621,6 +3622,8 @@ static int stmmac_set_features(struct net_device >*netdev, >> */ >> stmmac_rx_ipc(priv, priv->hw); >> >> + netdev->features = features; > >Isn't this a fix ? Yup. We will split this out as a patch and send separately.