Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753033AbcLEWIP (ORCPT ); Mon, 5 Dec 2016 17:08:15 -0500 Received: from mout.gmx.net ([212.227.15.15]:59751 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752383AbcLEWIN (ORCPT ); Mon, 5 Dec 2016 17:08:13 -0500 From: Lino Sanfilippo To: davem@davemloft.net, charrer@alacritech.com, liodot@gmail.com, gregkh@linuxfoundation.org Cc: andrew@lunn.ch, roszenrami@gmail.com, markus.boehme@mailbox.org, f.fainelli@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Gigabit ethernet driver for Alacritechs SLIC devices (v4) Date: Mon, 5 Dec 2016 23:07:15 +0100 Message-Id: <1480975637-18245-1-git-send-email-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:wNBZigJr4xg1aI0jUKVl8+Lh7xTiQBiy/CTiWRz/VpJlYglNNII 9FZmKn8pvXdtTrf8KtLvhO0zI58p4pHi9kb00m0FnzjWi0f38X17/c9bu+XwYeWvYNDoC/u BQ7D0kO63ellbpVvaWCWTAfC2mkrFsowWLtZK6SAyLue20fa0jvH7iCcTb86E5RbilU7QdI XTmIovMOzaad4W3XF+CuA== X-UI-Out-Filterresults: notjunk:1;V01:K0:tD8FqtbNtQg=:z42MdXBDHZJ9VPYvumwYUh wjFmPb8i3ecEvc+s7R1jL0V4kd/19/+UMRRfCQfDUj/5AmR0OKdcgCG9vJBmZiv9gK6y8KvF8 9EnF34C7WtuQbn7uwtXYKaJuchBbRCPi1iVBA0Vdxjx/rxCWLq7lUB5ma826OfhDP3HwQasJf pX9rxgOjiY+TwDx9NDw9o2DAWqztRO+oQrDwKCpWRmh5HJ9EElwIpmg9y4TiWGMzF45TDsZyi 8A9ZBVg5OTBWw8KQ/pKxbOJVOTXKwzsPgHvg2VmypbO88mDGheSATMJM2anYu/yAp5y3nH9G9 +2xr/OE46YMLouM7pyQLn6Sy+BSkO3gBrWDYAM4hqk3tiW/8RmXRjKKfA5ohgpw4FSMGawFQg v+T+sEU8umPlTCa8CeYRjX/b2+kf6dqCy7LzhOaBgb9UNT4CTvGMWJzYBPiI+akDSoGHK9zaj 0nEIzKUqgQSQgNnp97Zh4Rb+R+7nmGY4lm5qNkriJ73QHTMQvTrHtY4PV/0ggn1EJHT/sFe6e AFOvybdGekeL9sjuPmNPpEeLWqRFV0EpQqqbqDdthbDinnCw6iQfKLCd8uI2vDAwQfxxp7fNV FOb4grK/azfeTdu4GaiDPVtV4rVNOSvDi8+s+G2qNbjvz26OPCCZPd1LU9rrUIXFHk0uaFk57 N+HeAaoCuRlFZ9fbGyHjMX2sXUX8/3XMNzbH/2TUwfgrZtGeQAkOHvma/0QVi8aUMcfe5CK2G wSvUTVKAMhBrfTF4mWqc8XUx+bvcVAqD6qSaXd9MmkRBDJQWy9sttBTtfP8FDtRmToWKJpHfG Azhmca+ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2055 Lines: 44 Hi, this is the forth version of the slicoss gigabit ethernet driver (which is a rework of the driver from Alacritech which can currently be found under drivers/staging/slicoss). The driver is supposed to support Mojave, Oasis and Kalahari cards, for both copper and fiber. If this code is accepted the staging version can be removed. The driver has been tested on a SEN2104ET adapter (4 Port PCIe copper). v4: - fix wrong driver name in Kconfig file (reported by Rami Rosen) - remove unused variable from driver struct (reported by Rami Rosen) - return "err" instead of 0 in slic_load_rcvseq_firmware() (reported by Rami Rosen) - Fix typos in constants, comments and error message (reported by Markus Böhme) - fix various warnings concerning signedness (reported by Markus Böhme) - improve line formatting (reported by Markus Böhme) - add comment describing the need for SLIC_MAX_TX_COMPLETIONS (suggested by Florian Fainelli) - do not zero out complete rx descriptor (suggested by Florian Fainelli) - add missing write barrier (reported by Florian Fainelli) - remove unneeded assignment of net_device to skb (reported by Florian Fainelli) - use napi_complete_done() instead of napi_complete (suggested by Florian Fainelli) - use napi_schedule_irqoff() instead of napi_schedule (suggested by Florian Fainelli) - do not map error returned by slic_init() to -ENOMEM - do proper dma syncs before and after rx descriptor status is set to 0 - if after dma sync for CPU rx descriptor is not used return it to HW by means of dma sync for device v3: - dont add defines to pci_ids.h but instead put it into the drivers header file (requested by Greg Kroah-Hartman) v2: - remove unusual padding in statistic strings (suggested by Andrew Lunn) - for mdio register and bit names use defines from mii.h instead of own ones (suggested by Andrew Lunn) - remove unused defines - ensure PCI flush at two more places - use mmiowb before lock to prevent mmio writes leaking out of lock - fix some typos in comments - add copyright and GPL header Regards, Lino