Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2130755imm; Fri, 7 Sep 2018 11:14:48 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdamc9B/RAhXfg/0j3fb4jO+f353toMAa1YuUqBjJfqPUsHfoQ8xhG+OHOojdQsRRV7MKldR X-Received: by 2002:a62:1bc2:: with SMTP id b185-v6mr10017328pfb.170.1536344087966; Fri, 07 Sep 2018 11:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536344087; cv=none; d=google.com; s=arc-20160816; b=yGYr2M/9dheezqdtOJsYROAiM2JNeRfVxOT6o8ofhkiDuLz6ydKoRSzo73n2VIZchB btm0f07XqST+gwoj/LYi6MVAJSjxpvkx7PCAzh8TEvpC+oQbVVfET7WVHHhKnjdN3KdC Y8jb7GVlkmA+6pvjFO7BEIrbdixCvP7+dnDbuc3yMnC4AQw3AZL/ax8yJyffL8P2IO2q 27zGIUN6GFuHH0u9k0IYauWwTNuG9gf7AB19VQGAvB0JPPS34ZXd33YGTTgNEFTeFYsw rcmoC8VkhNQAAmz7lymQsHY2sQl3Hy+/2N+34Mv/ZxmwiydZY58rlmVD0Bk14goC3tfT /dfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ufHU2UyQb6AuaMpsZULxMXNBun8C6vXYtp1gXR0ouXo=; b=iA08kFXWAbhMTNTm+3CdVDjvYY0F5j+2M9u/OyS67137WsIBZGjPADIA1VFP/Yyocx 2+egAVHFnaJsIU7k2Ar/jelKzAw7N8Fsw3mv9jAZlUst8l6ddyi/zKx2qOABp6DxelVo 4EBRDP+Q4+sk29ixNl63eFj7g5X3h/WoOw4PwlJjglZsy5Xskqad2MoHjke688+4LsN+ RH1OH6A85OOTpe8TvMkWprFAp951UM+rQg5C8hg6Pj/TQo0gOHhr4KLR7IRiM4P5HNcm 3GtadmIYbYOstcReQ95ac33km6cRH9Bxx0t3Cg3bN6J54+SM1OOm1utjAFKXK/QCnOZt j7Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@obeliks.de header.s=jul2017 header.b="I0aOfVm/"; 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=obeliks.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66-v6si8633676plb.428.2018.09.07.11.14.32; Fri, 07 Sep 2018 11:14:47 -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=fail header.i=@obeliks.de header.s=jul2017 header.b="I0aOfVm/"; 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=obeliks.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbeIGWyt (ORCPT + 99 others); Fri, 7 Sep 2018 18:54:49 -0400 Received: from scopuli.esotechnik.de ([79.143.188.15]:46827 "EHLO mail.esotechnik.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbeIGWyt (ORCPT ); Fri, 7 Sep 2018 18:54:49 -0400 Received: by mail.esotechnik.net (Postfix) with ESMTPSA id 6BD3FAE0B80; Fri, 7 Sep 2018 20:12:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=obeliks.de; s=jul2017; t=1536343960; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ufHU2UyQb6AuaMpsZULxMXNBun8C6vXYtp1gXR0ouXo=; b=I0aOfVm/yt6pCGPAyRqJgRZayLS410oz+xMVyYpYHATtDx0/tNp+qKM9LdZ4a9Qb3J6Qd4 JCOnZ8UAy1/2Bz6oQ8eyNjvxfsg0kzU58qmVMhPtz5FLWwsk5ws79C9QBdD9J0XKbs/L6a BzbpTVYIT8ekzIOmTHMrIutuoKP8//2NsrHfyKIaJz0oe2mjL1ePYC4beSEHJ5OwpqE/dd fSxUooaC9O1pTIEEXBRA1MDk22uG+wuswdXeOQ7n4PLFuQeCkuxlcPGRP18WznokmMYG/v WegRbA8D6cVqKX+kacaM0wit6PB+GM0DepJClbNpO2zFaesrCnb9WmzYB51/FA== Subject: Re: [PATCH v2 0/3] mtd concat device driver To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger Cc: Bernhard Frauendienst , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Miquel Raynal References: <20180907173515.19990-1-kernel@nospam.obeliks.de> <20180907173515.19990-2-kernel@nospam.obeliks.de> From: Bernhard Frauendienst Message-ID: <7ea0a54e-fc10-8e21-aa2f-864c40297369@nospam.obeliks.de> Date: Fri, 7 Sep 2018 20:12:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180907173515.19990-2-kernel@nospam.obeliks.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Apologies, again, I seem not to be able to handle git-send-mail correctly, the cover letter got lost in operation (using get_maintainers on a cover letter is not a good idea). Here it is again: Hi everybody, when porting my router board from a mach-file based OpenWRT target to a device-tree based target, I found that there is no generic way to create a mtd_concat device from within the dts. The following patches attempt to provide that possibility. This is a second roll of that patch series, the first one can be seen at [1]. Apologies for not including the correct recipients in the first roll. In this first discussion, concerns were raised that a driver for a "virtual" device like this might have no place in the device tree system. However, I would argue that this very similar to specifying the partitions of a mtd device, which can also done in the device tree. In fact, I believe this is the only way to be able to specify the partitions of such a concat device in the dts file (but I'm happy to be corrected if I'm mistaken). I have made the example in the dt-binding documentation a little bit more expressive in this detail. In this second roll I have also addressed all issues that reviewers have brought up so far, hopefully to their satisfaction. Best Regards Bernhard [1] http://lists.infradead.org/pipermail/linux-mtd/2018-September/083832.html Bernhard Frauendienst (3):   mtd: core: add get_mtd_device_by_node   dt-bindings: add bindings for mtd-concat devices   mtd: mtdconcat: add dt driver for concat devices  .../devicetree/bindings/mtd/mtd-concat.txt    |  36 +++++  drivers/mtd/Kconfig                           |   2 +  drivers/mtd/Makefile                          |   3 +  drivers/mtd/composite/Kconfig                 |  12 ++  drivers/mtd/composite/Makefile                |   7 +  drivers/mtd/composite/virt_concat.c           | 128 ++++++++++++++++++  drivers/mtd/mtdcore.c                         |  38 ++++++  include/linux/mtd/mtd.h                       |   2 +  8 files changed, 228 insertions(+)  create mode 100644 Documentation/devicetree/bindings/mtd/mtd-concat.txt  create mode 100644 drivers/mtd/composite/Kconfig  create mode 100644 drivers/mtd/composite/Makefile  create mode 100644 drivers/mtd/composite/virt_concat.c -- 2.17.1