Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2049373imu; Wed, 28 Nov 2018 21:16:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/WvHqijv+9qpqxt9Co7zmRP68EOD28ncZTwRcfkH4Qm2hdqLx7cSYuiLIhROHighEe52FAp X-Received: by 2002:a63:7c13:: with SMTP id x19mr77874pgc.45.1543468599500; Wed, 28 Nov 2018 21:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543468599; cv=none; d=google.com; s=arc-20160816; b=mafucwh2oRWw5gheaDM+VD4y8XEvrbMJ4YEdOBiYNeC4Co+UUvsqT8CxO0eCyX0l+L l8Qoqp7u7Z/HbUkKmRgE2ZqGd25mTOVIZjBSnWppH+CNepXATCseUq9yPC2sNNtFRzSA ry4JvKauyEC4zBhOvLjvUxdvc56tVLZVEzei6a5j/oeZtSapSgHQnGWcbHOKmraJB9qA 4SSvucFFx/iyP5uKDzDr4veveVTuZCmCkJ9GQmXOjHAkTtkzChfYSPHdXpaomCSqF+gN 27SAGHwfbN2Ulf6qlD6dE7ZxUvzQCtxI6g2hfbxvo8CPva3+wkYrAoWBdJ9LfY5ya7FV /xWg== 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; bh=4mvUoBjvZmdv/xRkkS/F74/xuNUcXIOfpcGJAkJEMt8=; b=mMgF+6UBM0yUK9hmYaCR6r+NiaCK0GM+uDCqUZUH9/5xwoCYoBdy14VEpCRXXbsMu6 KA4ZzH5DclEy9GMFuX33UYfNQIPkkFunCUaSkEodc3/BWHWFFx8nv5hvyPDHVGoRQy/U UEsYWXVNROh8iohJjPEZMhlVMMbvHv/HgTDi1znnvij0Ju1vPPhSweGph2NxjwcAhWb8 SMqhJ227Lzm7MYmkfUBNL1XFzq2h03/hqmyNdxF1SIe5kp/PP4TfAs8yCnk4Y4/c1kgm 8pdcVaI8db2d63RuWE38PV5Oi/9CtX59Y8qWWH6bCpyEYvWWjNkm2U7MLLee/3z/HZOl 0CeQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si804972pgl.485.2018.11.28.21.16.24; Wed, 28 Nov 2018 21:16:39 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbeK2QRR (ORCPT + 99 others); Thu, 29 Nov 2018 11:17:17 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36714 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727402AbeK2QRR (ORCPT ); Thu, 29 Nov 2018 11:17:17 -0500 Received: by mail-ot1-f68.google.com with SMTP id k98so651499otk.3; Wed, 28 Nov 2018 21:13:12 -0800 (PST) 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=4mvUoBjvZmdv/xRkkS/F74/xuNUcXIOfpcGJAkJEMt8=; b=NJZe8CWEbfSsMjXkH9VOWs6pOxdfWzS6HBnGPZwOBE/iKXy7Zxxgj1y3eKCP2DbKMj U8pjiqac3HI0zdDFUEENY6NFkb9vs12SqaXrOK2cZhe12myEXkUlC0aNxN+RNlcaYtDP dAdYpsZTlV3S/ciLmzn5fL3fr5CwTpvHj1YrYdQC2JO8pTQTiSvEmfeyEOvhrz6A8nMJ yQjffstorNVSgSkqAH2ySwBjEKnkMwXzDf5EaCrDw/us8FxB+iKUu0MaqCGUGI/U9Gn8 xWjBeZvMtFeNONCNCYuJtnf2PeDu5g/1pYp1YPX/ggtYLQGSyr8/Ea6yd/RAeHwWKgA8 oa3w== X-Gm-Message-State: AA+aEWax9BGBPwb63IXaT2907P5anYNU68YylvKzbkBBswF6jEWrW412 Q03MEDXEio+kW7TAAWYIRGC5pQeiEfoaHVT+kHQ= X-Received: by 2002:a9d:46b:: with SMTP id 98mr41844otc.339.1543468392452; Wed, 28 Nov 2018 21:13:12 -0800 (PST) MIME-Version: 1.0 References: <1542967157-8053-1-git-send-email-harini.katakam@xilinx.com> <5b550305-ff96-fdf6-883e-b6ae69ad3124@ni.com> In-Reply-To: <5b550305-ff96-fdf6-883e-b6ae69ad3124@ni.com> From: Harini Katakam Date: Thu, 29 Nov 2018 10:43:01 +0530 Message-ID: Subject: Re: [RFC PATCH] net: macb: Apply RXUBR workaround only to versions with errata To: Brandon Streiff Cc: Harini Katakam , Nicolas Ferre , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Simek 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 Hi Brandon, On Thu, Nov 29, 2018 at 2:39 AM Brandon Streiff wrote: > > On 11/23/2018 3:59 AM, Harini Katakam wrote: > > +/* Errata mask bits */ > > +#define MACB_ERRATA_RXLOCKUP 0x00000001 > > + > > /* LSO settings */ > > #define MACB_LSO_UFO_ENABLE 0x01 > > #define MACB_LSO_TSO_ENABLE 0x02 > > @@ -1085,6 +1088,7 @@ struct macb_config { > > struct clk **rx_clk); > > int (*init)(struct platform_device *pdev); > > int jumbo_max_len; > > + u32 errata; > > }; > > > > struct tsu_incr { > > @@ -1214,6 +1218,8 @@ struct macb { > > > > int rx_bd_rd_prefetch; > > int tx_bd_rd_prefetch; > > + > > + u32 errata; > > }; > > Hi Harini, > > Could this be made into simpler by instead adding a caps bit, named > (perhaps) MACB_CAPS_BUGGY_RXUBR or MACB_CAPS_NEEDS_RXUBR_RESETS or > something? > > That would save needing to add a new u32 field into the macb_config and > macb structs (both of which already have this caps field). Thanks for the review. Yes, the caps field already has all that. The only reason I separated it was that CAPS generally referred to a feature and this is a workaround for an errata. There's no functional need, of course and I'm ok to integrate it as well. Regards, Harini