Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1633585ima; Thu, 25 Oct 2018 02:19:29 -0700 (PDT) X-Google-Smtp-Source: AJdET5cloBj8D6wxIWn8CfqQKl9oPYadKlOVCb8Nb9tIJsO0Hff5UZkCJFKGKq3ZtDVJ9Vx09k4w X-Received: by 2002:a17:902:6a8b:: with SMTP id n11-v6mr757810plk.16.1540459169799; Thu, 25 Oct 2018 02:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540459169; cv=none; d=google.com; s=arc-20160816; b=UAJNeV1FZUi5EmP6BrGITPZAutCm5tZMzkFkAnSDxXcpD2XvpzCD2QO6VrZ8DrFiCP PPDqgWViV1W0c2iXaBEYKL9ZWGxGw7vna08+GtiE0gV350FhcwlXHS40FphPHU5RyZzf KemtekJnG6/nqnFDG1qPqMb3AtqTyd1lwJnA0jUe2GKpGPIHiOWn8YNjtsEgVbj354om LALuUaBel+kyaYz8Hxxy4ZLDpcym8ZcHxPfTUcMCEmZWouorZSL7N/oDnLVizURJJfxL GPrjpU9osHzAbzUwzstFaqc5heZRjnzmgh6eucVe3uFF0ucgkGtKFd00XMoP+TDcW408 oIyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uVmdv88a5BWKD+wlMALZW0vsc2CIDk+k3Fc/zpkYKiU=; b=gKLpVzSj+qfPU/nIWz5+U8PJRAKjN2HST8Oix5pn7xaD1D4URI5zo8vmwHXjzcFFmg 33aljofsge3YBrlA4dbQsEYsFIWkHuR8DUras5BUz5wF9cSHhxC/Hv1KcCexWR0nL+mN xhcNUtlU8yMnH56C0QfP7vCrLosMPTOyOOBXvz5uU0ZAEe1nSIKus7qIez0I6Z+d4f2I L42rYjkEN23B1VBKVZu5P2HZfaXNphPRLhQvc5O3Y20yZz68tO6uLOG7ZDdMV7xPYfFg 47ypKAFL4NT2z0SGL9rP9k7RzUAfitA/5R1MIAOvqjBmF5KPCYcU2m0KT3xlIrrdoCDD uWXg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23-v6si7524081pgg.372.2018.10.25.02.19.11; Thu, 25 Oct 2018 02:19:29 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726800AbeJYRuk (ORCPT + 99 others); Thu, 25 Oct 2018 13:50:40 -0400 Received: from mga05.intel.com ([192.55.52.43]:27871 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbeJYRuj (ORCPT ); Thu, 25 Oct 2018 13:50:39 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2018 02:18:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,423,1534834800"; d="scan'208";a="244242618" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga004.jf.intel.com with ESMTP; 25 Oct 2018 02:18:39 -0700 Received: from andy by smile with local (Exim 4.91) (envelope-from ) id 1gFbmm-0002DP-VY; Thu, 25 Oct 2018 12:18:36 +0300 Date: Thu, 25 Oct 2018 12:18:36 +0300 From: Andy Shevchenko To: Sven Van Asbroeck Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, afaerber@suse.de, treding@nvidia.com, david@lechnology.com, noralf@tronnes.org, johan@kernel.org, monstr@monstr.eu, michal.vokac@ysoft.com, arnd@arndb.de, gregkh@linuxfoundation.org, john.garry@huawei.com, geert+renesas@glider.be, robin.murphy@arm.com, paul.gortmaker@windriver.com, sebastien.bourdelin@savoirfairelinux.com, icenowy@aosc.io, yuanzhichang@hisilicon.com, stuyoder@gmail.com, linus.walleij@linaro.org, maxime.ripard@bootlin.com, bogdan.purcareata@nxp.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH anybus v1 0/4] Support HMS Profinet Card over Anybus Message-ID: <20181025091836.GV10650@smile.fi.intel.com> References: <20181024142456.10084-1-svendev@arcx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181024142456.10084-1-svendev@arcx.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 10:24:52AM -0400, Sven Van Asbroeck wrote: > This patch set adds support for the HMS Industrial Networks AB Profinet card. > > Profinet is an industry technical standard for data communication over > Industrial Ethernet, designed for collecting data from, and controlling, > equipment in industrial systems, with a particular strength in delivering data > under tight time constraints (on the order of 1ms or less). > > The profinet card itself is connected to the system via an industrial bus > called 'anybus'. > > I have followed the bus driver/client driver pattern, and created an anybus > bus driver, plus a client driver for the profinet card. > > In case this patch set gets (eventually) accepted, drivers for other anybus > client cards may follow: flnet, cc-link, ... > > The anybus slot on the host is located on an 'anybus bridge', which is > custom h/w designed by Arcx. Its driver is modeled as an mfd, which > instantiates two anybus slots. I highly recommend to look at my recent (for few month?) reviews -- they are almost repeating each other. Also check what we have under lib/ (hint: read linux/kernel.h for inline and exported function helpers). I might look at the patches later on if I would have some spare time (I actually don't know why I'm in Cc list here). > > v1: > first shot > > Sven Van Asbroeck (4): > mfd: support the Arcx anybus bridge. > dt-bindings: anybus-bridge: document devicetree binding. > bus: support HMS Anybus-S bus. > misc: support HMS Profinet IRT industrial controller. > > .../bindings/mfd/arcx,anybus-bridge.txt | 37 + > .../devicetree/bindings/vendor-prefixes.txt | 1 + > drivers/bus/Kconfig | 11 + > drivers/bus/Makefile | 1 + > drivers/bus/anybuss-host.c | 1301 +++++++++++++++++ > drivers/mfd/Kconfig | 11 + > drivers/mfd/Makefile | 1 + > drivers/mfd/anybus-bridge.c | 441 ++++++ > drivers/misc/Kconfig | 11 + > drivers/misc/Makefile | 1 + > drivers/misc/hms-profinet.c | 747 ++++++++++ > include/linux/anybuss-client.h | 100 ++ > include/linux/anybuss-host.h | 28 + > include/uapi/linux/hms-common.h | 14 + > include/uapi/linux/hms-profinet.h | 101 ++ > 15 files changed, 2806 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/arcx,anybus-bridge.txt > create mode 100644 drivers/bus/anybuss-host.c > create mode 100644 drivers/mfd/anybus-bridge.c > create mode 100644 drivers/misc/hms-profinet.c > create mode 100644 include/linux/anybuss-client.h > create mode 100644 include/linux/anybuss-host.h > create mode 100644 include/uapi/linux/hms-common.h > create mode 100644 include/uapi/linux/hms-profinet.h > > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko