Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1370222/?format=api
{ "id": 1370222, "url": "http://patchwork.ozlabs.org/api/patches/1370222/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20200924021113.9964-1-xiaoliang.yang_1@nxp.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20200924021113.9964-1-xiaoliang.yang_1@nxp.com>", "list_archive_url": null, "date": "2020-09-24T02:11:13", "name": "[net] net: mscc: ocelot: fix fields offset in SG_CONFIG_REG_3", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "317fed5444cc3633095224094b991f44572e16cb", "submitter": { "id": 74132, "url": "http://patchwork.ozlabs.org/api/people/74132/?format=api", "name": "Xiaoliang Yang", "email": "xiaoliang.yang_1@nxp.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20200924021113.9964-1-xiaoliang.yang_1@nxp.com/mbox/", "series": [ { "id": 203825, "url": "http://patchwork.ozlabs.org/api/series/203825/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=203825", "date": "2020-09-24T02:11:13", "name": "[net] net: mscc: ocelot: fix fields offset in SG_CONFIG_REG_3", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/203825/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1370222/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1370222/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming-netdev@ozlabs.org", "Delivered-To": "patchwork-incoming-netdev@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=23.128.96.18; helo=vger.kernel.org;\n envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>)", "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=nxp.com" ], "Received": [ "from vger.kernel.org (vger.kernel.org [23.128.96.18])\n\tby ozlabs.org (Postfix) with ESMTP id 4BxdzK1Wxfz9sSt\n\tfor <patchwork-incoming-netdev@ozlabs.org>;\n Thu, 24 Sep 2020 12:19:41 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n id S1726650AbgIXCTj (ORCPT\n <rfc822;patchwork-incoming-netdev@ozlabs.org>);\n Wed, 23 Sep 2020 22:19:39 -0400", "from inva021.nxp.com ([92.121.34.21]:50516 \"EHLO inva021.nxp.com\"\n rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n id S1726281AbgIXCTi (ORCPT <rfc822;netdev@vger.kernel.org>);\n Wed, 23 Sep 2020 22:19:38 -0400", "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 37260200FF3;\n Thu, 24 Sep 2020 04:19:37 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C052C200B30;\n Thu, 24 Sep 2020 04:19:31 +0200 (CEST)", "from localhost.localdomain (mega.ap.freescale.net [10.192.208.232])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B64E9402BE;\n Thu, 24 Sep 2020 04:19:24 +0200 (CEST)" ], "X-Greylist": "delayed 142090 seconds by postgrey-1.27 at vger.kernel.org;\n Wed, 23 Sep 2020 22:19:38 EDT", "From": "Xiaoliang Yang <xiaoliang.yang_1@nxp.com>", "To": "xiaoliang.yang_1@nxp.com, davem@davemloft.net,\n netdev@vger.kernel.org, linux-kernel@vger.kernel.org,\n allan.nielsen@microchip.com, joergen.andreasen@microchip.com,\n UNGLinuxDriver@microchip.com, alexandre.belloni@bootlin.com,\n fido_max@inbox.ru, alexandru.marginean@nxp.com, po.liu@nxp.com,\n claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, leoyang.li@nxp.com", "Subject": "[net] net: mscc: ocelot: fix fields offset in SG_CONFIG_REG_3", "Date": "Thu, 24 Sep 2020 10:11:13 +0800", "Message-Id": "<20200924021113.9964-1-xiaoliang.yang_1@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "INIT_IPS and GATE_ENABLE fields have a wrong offset in SG_CONFIG_REG_3.\nThis register is used by stream gate control of PSFP, and it has not\nbeen used before, because PSFP is not implemented in ocelot driver.\n\nSigned-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>\n---\n include/soc/mscc/ocelot_ana.h | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/include/soc/mscc/ocelot_ana.h b/include/soc/mscc/ocelot_ana.h\nindex 841c6ec22b64..1669481d9779 100644\n--- a/include/soc/mscc/ocelot_ana.h\n+++ b/include/soc/mscc/ocelot_ana.h\n@@ -252,10 +252,10 @@\n #define ANA_SG_CONFIG_REG_3_LIST_LENGTH_M GENMASK(18, 16)\n #define ANA_SG_CONFIG_REG_3_LIST_LENGTH_X(x) (((x) & GENMASK(18, 16)) >> 16)\n #define ANA_SG_CONFIG_REG_3_GATE_ENABLE BIT(20)\n-#define ANA_SG_CONFIG_REG_3_INIT_IPS(x) (((x) << 24) & GENMASK(27, 24))\n-#define ANA_SG_CONFIG_REG_3_INIT_IPS_M GENMASK(27, 24)\n-#define ANA_SG_CONFIG_REG_3_INIT_IPS_X(x) (((x) & GENMASK(27, 24)) >> 24)\n-#define ANA_SG_CONFIG_REG_3_INIT_GATE_STATE BIT(28)\n+#define ANA_SG_CONFIG_REG_3_INIT_IPS(x) (((x) << 21) & GENMASK(24, 21))\n+#define ANA_SG_CONFIG_REG_3_INIT_IPS_M GENMASK(24, 21)\n+#define ANA_SG_CONFIG_REG_3_INIT_IPS_X(x) (((x) & GENMASK(24, 21)) >> 21)\n+#define ANA_SG_CONFIG_REG_3_INIT_GATE_STATE BIT(25)\n \n #define ANA_SG_GCL_GS_CONFIG_RSZ 0x4\n \n", "prefixes": [ "net" ] }