Received: by 10.213.65.68 with SMTP id h4csp1899834imn; Thu, 5 Apr 2018 05:49:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx49WP8TcqeEZGnpexRFkGhKP96y7lNHgFVavjKcAbADQQuINfkCsRUS/hOnvlDT/yjNn+xX5 X-Received: by 2002:a17:902:7d8a:: with SMTP id a10-v6mr55724plm.268.1522932589448; Thu, 05 Apr 2018 05:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522932589; cv=none; d=google.com; s=arc-20160816; b=m29kpYw1XC53RAA1T0kn9a7i+ApRWeHT3oRgaadPmyKSvWpoC6kS/IKQN6sMF5b3I0 dF5MRg7JP08OM8rDutnJkaKTnToog1oCDcVBVmr20Mj/cmezieoUbV9n0ygWP5ZwzlY0 VH6pXfGUh+LLunyjCoAJdZtrK/rZ2atf/EoMUhXoMOBqbMmUz6CMmgLoEPl2cps6uBxa uTzmEzbC06Eg4LKch4TJM/y0+DzDO+SzedUTxWnpgdDsfajBEzEpclcFd3rQGQgzgEE2 fINnuGrAE0AgzuoTS6N95srm+H3iI5XyMtYA5uZ2uDtsTlX3t+lMA7gzGgqQp7aqxtp+ hLMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=spyr5PpIxtRq95Q0o2TDt69IGtuAbef5XKGWkz4fVgw=; b=UOY+EINrzUEByNRPuwfKkWhsJEpeNJIQG+/LxCb2CZo6xxxBBmB7vvOqR4OnsEJtnr LajORh+RD4CNwZyXD7ZyoYGriShe5kZb/c2X2qS/UrBWYOK18JfjtDLwS4w2FwCf3dWA iDcAJXCrkkOqcpm/b4ok2TbUoTqh7tUcRIfPbqMfLr5GUBGmDATaHoML0QzqcuT0ZU3q 3Kb3+JsjsLRgeA5rWxzKndD0cjboAZcyCiK+Gn8rA9E68DaSfOyvsIOPxwQGHzgRDvJz O175jApuKqXfgm1vJqe/rYBHZNN1YOO3Rk9Hoc5LWI10/22buk6YY2aXSSXD9E+bUdPa OUKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=utczDIzV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t83si6016505pfj.167.2018.04.05.05.49.35; Thu, 05 Apr 2018 05:49:49 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=utczDIzV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751259AbeDEMsU (ORCPT + 99 others); Thu, 5 Apr 2018 08:48:20 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51653 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751097AbeDEMsQ (ORCPT ); Thu, 5 Apr 2018 08:48:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=spyr5PpIxtRq95Q0o2TDt69IGtuAbef5XKGWkz4fVgw=; b=utczDIzVZvZS/2OCOuq/DM9osbDPMFpjuMDfQTjM0LobstQhPt7ETxWuuqV4j6K0NwszFJx9cWfZeBNM97Vv40jXYzrHuaQhg4NiCGhuBy0+n4FyktMeFLDwWDHjw9q8c/MTPuoZCJAA73fkNNhsyXFB7amU2pz5xFCk9K6jj1c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f44JG-0003hZ-Rl; Thu, 05 Apr 2018 14:48:10 +0200 Date: Thu, 5 Apr 2018 14:48:10 +0200 From: Andrew Lunn To: Laurentiu Tudor Cc: Stuart Yoder , Arnd Bergmann , Ioana Ciornei , gregkh , Linux Kernel Mailing List , Ruxandra Ioana Ciocoi Radulescu , Razvan Stefanescu , Roy Pledge , Networking Subject: Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support Message-ID: <20180405124810.GE12178@lunn.ch> References: <20180404010549.GA12443@lunn.ch> <20180404124246.GA20869@lunn.ch> <5AC5FAA8.80409@nxp.com> <20180405114736.GA12178@lunn.ch> <5AC61393.7090509@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5AC61393.7090509@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Hi Laurentiu > > > > So i can use switchdev without it? I can modprobe the switchdev > > driver, all the physical interfaces will appear, and i can use ip addr > > add etc. I do not need to use a user space tool at all in order to use > > the network functionality? > > Absolutely! Great. Then the easiest way forwards is to simply drop the IOCTL code for the moment. Get the basic support for the hardware into the kernel first. Then come back later to look at dynamic behaviour which needs some form of configuration. > In normal use cases the system designer, depending on the requirements, > configures the various devices that it desires through a firmware > configuration (think something like a device tree). The devices > configured are presented on the mc-bus and probed normally by the > kernel. The standard networking linux tools can be used as expected. So what you should probably do is start a discussion on what this device tree binding looks like. But you need to be careful even here. Device tree describes the hardware, not how you configure the hardware. So maybe DT does not actually fit. Andrew