From patchwork Thu Jun 16 16:10:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 9181311 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1BCB06088F for ; Thu, 16 Jun 2016 16:07:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CA212835D for ; Thu, 16 Jun 2016 16:07:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 013E82835E; Thu, 16 Jun 2016 16:07:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B910A28362 for ; Thu, 16 Jun 2016 16:07:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bDZo8-0008HR-0X; Thu, 16 Jun 2016 16:06:16 +0000 Received: from mail-bl2on0084.outbound.protection.outlook.com ([65.55.169.84] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bDZnw-0007mG-58 for linux-arm-kernel@lists.infradead.org; Thu, 16 Jun 2016 16:06:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vXIKJu/GZC7C9p5/6kZiQbdKlGn+D01aaCMJVJ5lpT0=; b=UnreFkBH1UdFj2VdRJ2pPwT8hcxNMtWCBlLXsHRghY5nzqrPXRtX1ecyGp43rZWUL8Vwzvwi8hDjfimZaCXMc0PgXJvVsKIzh7wtQwdblaoI8gWq4QtqWE+1XqwOxXwUOHbThzrnUWKkg9PPEEKrckY/ugI+tMlk1yb+9HGPl3E= Received: from BLUPR0301CA0028.namprd03.prod.outlook.com (10.162.113.166) by BLUPR03MB102.namprd03.prod.outlook.com (10.255.212.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8; Thu, 16 Jun 2016 16:05:41 +0000 Received: from BL2FFO11FD017.protection.gbl (2a01:111:f400:7c09::116) by BLUPR0301CA0028.outlook.office365.com (2a01:111:e400:5259::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Thu, 16 Jun 2016 16:05:41 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com; vger.kernel.org; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BL2FFO11FD017.mail.protection.outlook.com (10.173.161.35) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Thu, 16 Jun 2016 16:05:40 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.140) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 16 Jun 2016 09:05:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vXIKJu/GZC7C9p5/6kZiQbdKlGn+D01aaCMJVJ5lpT0=; b=UnreFkBH1UdFj2VdRJ2pPwT8hcxNMtWCBlLXsHRghY5nzqrPXRtX1ecyGp43rZWUL8Vwzvwi8hDjfimZaCXMc0PgXJvVsKIzh7wtQwdblaoI8gWq4QtqWE+1XqwOxXwUOHbThzrnUWKkg9PPEEKrckY/ugI+tMlk1yb+9HGPl3E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by BY1PR03MB1483.namprd03.prod.outlook.com (10.162.210.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Thu, 16 Jun 2016 16:05:29 +0000 From: To: , , , Subject: [RFC] can: c_can: Update D_CAN TX and RX functions to 32 bit. Date: Thu, 16 Jun 2016 11:10:19 -0500 Message-ID: <1466093419-27575-2-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1466093419-27575-1-git-send-email-tthayer@opensource.altera.com> References: <1466093419-27575-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR08CA0057.namprd08.prod.outlook.com (10.141.200.37) To BY1PR03MB1483.namprd03.prod.outlook.com (10.162.210.141) X-MS-Office365-Filtering-Correlation-Id: 23929301-f567-476d-2bee-08d396001093 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1483; 2:uOWbnUNJb4rkfsllhPVmuJfipp73JPsL0P6hEx6HrixUqzckSETTrT9Xs5nV4el80+2z5PMWb5AlkDdYEobhYh1boDaNlmYz3I8XOvqJSSDxBkPsefFJgY+N59vq3eDaYbwlKuYtrgDwfT4alGEO2YlRWPR2WBmP8kCPQ96kSpa33fOZ/IYn6r1LcGhGlvoU; 3:PC7HI/mGC3p59BBXe/ETv0IRnKbyiN/Kf97ZuKT168pImD1mqBe0QU+7VV7DUzoXDyy3xTRwSH58ePB1l7n+HDQWPGj7zyYz1XZ4AzpinSNWRJuOWckqiSsny2/ZsMeq; 25:zqXQwiPffZuBA4DU7VHZd/Yf69h3cRBE0KK1w2RAW1xV14pPD9EEck3xF3mm8MkingbhEhWWnwv4eQzRDjU6beSVZSqs/qyHrEs4N26Nyyt2YJANC3TDJ4WQXfLIXHpCPKQqaAV+md+nzwoHAPBxpEGOxBwQivFprVus2M1IVuruDfd+StwJG9hJGBO+9gZJEKv2rOR5h90DEFPr2ABuVug1JURGe7La6B81XgHkCJo1BvBLjgS+RHlADngVWKHie+Jj0y21R/B7Xpgn60CMU2mP9tS4jVn/z5VhLnjq9dE5eFTzObXFE5iltU3h5z7j0Fvu2uECu1H0IKajuuAldtphPl2QFAhCCphzqKfaus0U6A6d9M8kccXj7KsvWv9DAO2pj8bKu0IJhCNkdF+/MQi98Q8AcyCOptSZWgFeE1M=; 20:/wRB2o2mjY1BREjkO+fJJTo/F0ZI8XCYJXblv1GQERVNoLE/2T8H7Hxs2ej6JGmOd5BrCTDXVZXOCfJLxbvpIHaUSXFHstYcok05oWi4VwkiPAamCRU/VZCWeZ91D53DHMQ+gGavh6XXoSEmddn5BEDge3PaLXnai9hhYyfKDvQ= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1483; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BY1PR03MB1483; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1483; BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13023025)(13017025)(13024025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BLUPR03MB102; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB102; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1483; 4:fRmB0sRGozgZA0Dfjrc1bAA8PxlTio+w2Cj8ZfjMIXJllhYxgV9CRlo1q7rR/Hd5MLuUDgy5X4HtjC1OQaSzc05RXj9ekNMMeALcX2nY1NKDrPj5PYTCESEzJwinKCaEfMn9C0wDZKrhOVIhm5Jwj11AylvrDGbbcMb6Cf0WByTH3CTcKwL+Qv1gex89pVcnHtCumHBdsep/HP4tqgZ6kmLUSjnJsKnlyFxFmUE1F+lTsJB7CjTmYnd8L1fXdcaVFKOkZmfcAV7JZ6VPV9tg+QdRyDRXOwRmPMGw3IccfypVEurFdlMaapC1A/wXCh2vw7tutURW1ts3UEFmZ5dSDuPKo0WKff8Wwoh0VydiZDA9WY0vdsu5OENkt5+RVb9rBn6Zp3iFZHggsadw6ajMzW9L5ImZLX8QtwmmiNR3oLXr5zwKMOzqEsvIp/TKtkKF X-Forefront-PRVS: 09752BC779 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(199003)(86362001)(86152002)(92566002)(2201001)(66066001)(229853001)(106356001)(47776003)(105586002)(50466002)(48376002)(101416001)(76176999)(50986999)(5004730100002)(19580405001)(19580395003)(42186005)(50226002)(2950100001)(68736007)(586003)(6116002)(3846002)(4001430100002)(5001770100001)(77096005)(107886002)(5003940100001)(8676002)(81156014)(81166006)(2876002)(4326007)(189998001)(97736004)(5008740100001)(33646002)(2906002)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1483; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:0; CAT:NONE; LANG:en; CAT:NONE; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BY1PR03MB1483; 23:eNIJSasBRcOYmtyuxYSCjrLgiKW10vVNj2IsWXN7u?= =?us-ascii?Q?cfx4oSWH3/8aH0lOX6DYyW0Mx+I1wPmMDprdm2SeCLJ7My9kO+vpt8L+0f8/?= =?us-ascii?Q?jmzma8G8/gOe0rfPjKET9RRdNrmb5yFdPjalGtX+5Su4F3euE+Ols6upDmkL?= =?us-ascii?Q?TvTqOrQAX23WGw1bYVnsCh0UhOiDyI4gCEQ8XSySiDUBI3GPUiQmCsqI6gqI?= =?us-ascii?Q?q1gOu+wCHHAuyxd1VssVIbMk5M3gPx72epAn1uyGYd298QedPQzdNMVcFRLA?= =?us-ascii?Q?Xl96DhZ55KaFGIvl2bn6tli8aqCHBCCaCittf3rwGBI+Tvei+cwWGqrkTtM3?= =?us-ascii?Q?t6c6TafuOAFH3EHfddc/wMjqecnzARD3yYcqGfJUBxOyuN7sBKHaUh2ayGQb?= =?us-ascii?Q?Qm5uAtBxF8akV+M6ebOG0BwwfsI7B+YB7h/BgnvCO28965uLKKO8g9kGVu3f?= =?us-ascii?Q?3Q1waC5K3SNV0ckyjbDFY4ALWxcajQc7yEqVt+OthDcm4ZzW0slVhLCIfYsq?= =?us-ascii?Q?xymGv5k4zuI43/KuNu9MmDnO9mqDVRRyHxErir0mjugkgs+vaeg326v3g1Et?= =?us-ascii?Q?lcpQLWsIDzXQraxA4BHL1oK6vIUX7CqPFBBVqJ94eZBX8Vkn747QDSTucIsS?= =?us-ascii?Q?PWqzPz1AQAu1MsBDPA4KYCpi9SnYf5/ujFqUDIQa/CQ61lmTyI7Wh72A0Cqe?= =?us-ascii?Q?ETOwMG0d4DK2+LGDQE/t31CtLILgXAAdJOZl6yTAKzX0kWQdOj+QYPuWbd35?= =?us-asc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fOo4YMFzg2Q5x8hC7w==; 24:VV7YQCjxQdVHrhkg3gNVSHQ5f3jCHHoSVvgX3Cvo8tPatNNgUkw+BkWn1FC84CaMp3krrTuD4QmP9arLj+xUC013Ue9Zd6iGvg8m0dcOH5Y=; 7:/NmPYRd+aEynVR2VsJjF1q9jy+wlbDsbFMFvCk+QNI5+5QGFN6RttHl0zaPFBOHS/39rJV0Fa747jRTndatmRltLm9L7M+XnAy2HQLLY2APWLlix/zMNTigLlr9VTvD0tiqi36T8HSO4zRlObHWPHxsmqd6jhqVpiG6vH/gBRQcYTvRPy/JiYIsrw3LjdTWSHO/lU+1zg2x3BKNh2H2Gfg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1483; 20:nEqLqgw1zhr9flSarML8DaVJfyuxx+sdK0tqfSRNqeI+/jClDBcJdPqknU4dWpOIHYKxZwotymnJUgLE2fAP+2SPwWtn8ncXRhT0LjrhvJJIniNSHzm2HJVzt+vFKvG76eNNAPpXM14zF2e59QMVARBcoOnKDC4xqI3L8x5ps24= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1483 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD017.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(92566002)(5003940100001)(106466001)(5004730100002)(356003)(229853001)(11100500001)(66066001)(956001)(81156014)(81166006)(16796002)(8676002)(105606002)(5008740100001)(21840400001)(8936002)(2876002)(6070500001)(107886002)(2906002)(4326007)(47776003)(97736004)(5001770100001)(33646002)(189998001)(76176999)(50986999)(85426001)(6116002)(6806005)(586003)(86362001)(3846002)(2950100001)(19580395003)(19580405001)(68736007)(50226002)(50466002)(4001430100002)(48376002)(2201001)(86152002)(3720700001)(77096005)(87936001)(7099028)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB102; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; CAT:NONE; LANG:en; CAT:NONE; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD017; 1:TPVpehA2EaUPJ3BccLhHsCKD0VmDXPgHd51N2XX1cooAUYaaEgFc/+bWh47heT7epk1x0WiId05PP3HOWiF4aNXjpM7NI9Wg/gIRIp+N98obEls1j2XceDbclJDyFRnCz+CdiVJ81uJNdlllYAnHBMZI063O8XLPSJ9huMgvlQk1Zb654pqp9Q4xMiKv7DyqFHXT6/rtjiRkfBOhQIX91g70fRbR2Yygor+tE+8j+2Lu7GdcX66MRu8arEu6uzAt37Z/IZJVFtqi1qxHG/QcPIsNlR9kx4SX63X1IxG1feAsKstOeprwPCcPGe0UcRIilYfUF7lc0MX8mF4XtZN3jf34BhYwEFgS52/RkRflJCWVlYTSZVM4P5BhIBZkmE+WEjcuddz04L+OZ8JWxANmKCdA/wbvP0YGr1fB/XVz2wj2vH2Fx6sTmiBRUvwvRS2yoMOwFR6eSn1vLkaCaeuJe2y9g7ExXARhuHdRp2DKI163kdQ80wAPiph9rzjEiR6XHoeZIc2O7iwVIsMjELp6qA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB102; 2:tIiSc8eOD8NA/oB0qWFMWdwKj9TqEjgNM5KWB/3fJ3ry1k+xwLEliG3f31gLmOz784jBU5hsAu6duFzVm2Ur2Llv1zxhtd7AMqbYz9Ic6jcUTf7O5eUY8DsvdH3TGNUMBBJwCOL8nN9tsXBlsiLpNkc37NZ0YXgnm8rV+P2um0SktK5+Ex/sCgZpRbJTco92; 3:OL/Fj3wQ6vDdviiDnftgLck8FvnfrSLJo7yO+5ZXGIDhR+7IS62l5570WJoSF4fDe14F4et6IykVQNv/+aoq0fRWYIJPBxORn7WWFDiKg58x1Ui1zFqpKeC0ervS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FRcTit58pxClYAknAVlibCUT2ctPL45evouM6OjdIlkHUmidarnw/tY7BMaetBc/Fkl0FuflXliIpkMLOjhodax68HOfEVVI= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB102; 4:wSxTHE6Up6Bmf60XD3iuuuQhwc4VKBQxOAtF1Q0rNAtFeNYH9cr02uAl/LAdTKoSOhFlBDlqkRkKCleyPjeTXLUSJea3/OdV7bv1zIZ72mVr60ZwJVjQluE7RSPxjqgeN3rgYlDPQkiHsqAB9TiJpPkqhthA+SFcCdYanaXdAzq+xA7hcQ9QNjV3yj+X0SFnojpdaVZuy96D/9zU1j/IsKazIpYBoouSQH13zSTTKLYNZP0xzDSpETn0vGmy2svFVgh2hLtj2sdTZPiUcXh5i/qlz41xjRGmUrEmC/dNBygaWjEyWV8PZMEmkw0KbNK56ATeMqiC0YLYAws4aU84mnDmWKt+Cij9rHCFaGYjsHeyHMe2P+9VcJ0YuKb2g76YGr7A/KA01UN6RuKIjSTvbZOFITBpviK3C24MOJ3rjs1YuFNFrc1eKKyGEIlnISnj1DGqo1S5WFgUfJ/EfRZ6ZoJbWLFtajSge4oC2RxANqD1S3hw4MjpOK7Gz3aKtU/6yAOSqPNRLc4FqSpctyqwGA== X-Forefront-PRVS: 09752BC779 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB102; 23:/ekPt0uQx8JFUZrDMfNaG91aio6tIdG1wOBL0pT4YN?= =?us-ascii?Q?jli8Rx3PxzbZj4i7hFJpXbbN+c2obnpHgCBEgzgE1WKZClaRCsIMA0Qm/svS?= =?us-ascii?Q?GdPHZ03xZz2ElQTNiaftAl2Vbe3s96HGjp2IsZEHh63tjeOD1mDrGV8XfC+8?= =?us-ascii?Q?mif65bRIsOt0G1xBsz2/UQ3j1MeckQgqAWyn7k4HNDPVlRyh4OBtrk9AdXik?= =?us-ascii?Q?RX0JOo6TjwSwCvTipb9cBE9RFglp79+NyUPE53Mo6WXv10iIIrM3ZvFYoxFF?= =?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9UOCbo+AFoucsxfWHIdVlVi6KH4V/LEiRw60sGEheHysR3zjcABJBn4qddZ5y8byxa5AoBWGJ6zjef4hfaAVVPGye3RqRwvJHZO4V6iYBHAZEhypGXP8D6Iiz8wcvuhRG+wnO1QQtSpX+fiel7MO/VRxhg X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB102; 20:EQCv4Sd5HojhodQ5w1Hde5sW2s0kgUbdoeB/56hgyzfZW0V475KVrjV8SETqSc5oMN1DmmuCjCVd9f+OiJ/ZMUW7Lc1WjXsJfIjWdTmcqF1lGXD+x5Nn4K/US30sogPoGj9oOWiq1M3Aq4nTMERAwmCmhYDfyo10ExHxABEP0OA= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2016 16:05:40.7718 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB102 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160616_090604_294249_64EA418A X-CRM114-Status: UNSURE ( 5.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tthayer@opensource.altera.com, tthayer.linux@gmail.com, linux-arm-kernel@lists.infradead.org, anilkumar@ti.com, linux-can@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer When testing CAN write floods on Altera's CycloneV, the first 2 bytes are sometimes 0x00, 0x00 or corrupted instead of the values sent. Also observed bytes 4 & 5 were corrupted in some cases. The D_CAN Data registers are 32 bits and changing from 16 bit writes to 32 bit writes fixes the problem. Testing performed on Altera CycloneV (D_CAN). Requesting tests on other C_CAN & D_CAN platforms. Reported-by: Richard Andrysek Signed-off-by: Thor Thayer --- drivers/net/can/c_can/c_can.c | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index f91b094..e3dccd3 100644 --- a/drivers/net/can/c_can/c_can.c +++ b/drivers/net/can/c_can/c_can.c @@ -332,9 +332,23 @@ static void c_can_setup_tx_object(struct net_device *dev, int iface, priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), ctrl); - for (i = 0; i < frame->can_dlc; i += 2) { - priv->write_reg(priv, C_CAN_IFACE(DATA1_REG, iface) + i / 2, - frame->data[i] | (frame->data[i + 1] << 8)); + if (priv->type == BOSCH_D_CAN) { + u32 data = 0, dreg = C_CAN_IFACE(DATA1_REG, iface); + + for (i = 0; i < frame->can_dlc; i += 4, dreg += 2) { + data = (u32)frame->data[i]; + data |= (u32)frame->data[i + 1] << 8; + data |= (u32)frame->data[i + 2] << 16; + data |= (u32)frame->data[i + 3] << 24; + priv->write_reg32(priv, dreg, data); + } + } else { + for (i = 0; i < frame->can_dlc; i += 2) { + priv->write_reg(priv, + C_CAN_IFACE(DATA1_REG, iface) + i / 2, + frame->data[i] | + (frame->data[i + 1] << 8)); + } } } @@ -402,10 +416,20 @@ static int c_can_read_msg_object(struct net_device *dev, int iface, u32 ctrl) } else { int i, dreg = C_CAN_IFACE(DATA1_REG, iface); - for (i = 0; i < frame->can_dlc; i += 2, dreg ++) { - data = priv->read_reg(priv, dreg); - frame->data[i] = data; - frame->data[i + 1] = data >> 8; + if (priv->type == BOSCH_D_CAN) { + for (i = 0; i < frame->can_dlc; i += 4, dreg += 2) { + data = priv->read_reg32(priv, dreg); + frame->data[i] = data; + frame->data[i + 1] = data >> 8; + frame->data[i + 2] = data >> 16; + frame->data[i + 3] = data >> 24; + } + } else { + for (i = 0; i < frame->can_dlc; i += 2, dreg++) { + data = priv->read_reg(priv, dreg); + frame->data[i] = data; + frame->data[i + 1] = data >> 8; + } } }