From patchwork Mon Dec 4 14:17:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 844268 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yr6Rc2ryjz9t16 for ; Tue, 5 Dec 2017 01:18:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752947AbdLDOSR (ORCPT ); Mon, 4 Dec 2017 09:18:17 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54764 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751950AbdLDOSP (ORCPT ); Mon, 4 Dec 2017 09:18:15 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id D139720B52; Mon, 4 Dec 2017 15:18:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id BAACD20D06; Mon, 4 Dec 2017 15:17:44 +0100 (CET) From: Thomas Petazzoni To: "David S. Miller" , Sergei Shtylyov , =?utf-8?q?Niklas_S=C3=B6derlund?= , Geert Uytterhoeven , Simon Horman Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Thomas Petazzoni Subject: [PATCH 0/2] net: sh_eth: add support for SH7786 and big-endian Date: Mon, 4 Dec 2017 15:17:42 +0100 Message-Id: <20171204141744.18599-1-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.13.6 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, I've recently been working on an SH7786 based platform, which uses the sh_eth network controller. One peculiarity of my setup is that the CPU is configured big-endian (even though little-endian is more traditional in the Linux SuperH world), and the sh_eth driver was not ready for this. The first patch simply adds the sh_eth_cpu_data structure that describes the SH7786 controller. The second patch fixes the driver for big-endian operation. However, I'd like this patch to be carefully reviewed by Sergei Shtylyov who already did some endianness related changes in this driver. Indeed, my change is based on the assumption that the DMA descriptors are in the native endianness of the CPU. Thanks, Thomas Thomas Petazzoni (2): net: sh_eth: add support for SH7786 net: sh_eth: make work on big endian systems drivers/net/ethernet/renesas/sh_eth.c | 89 ++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 34 deletions(-)