Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp809515imm; Fri, 14 Sep 2018 06:43:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzGGqOJWvSoUKvl1eg7yDaoGd1KMJDKpPx/yM5FVvLQU1EA5JzXrsZnQY7oXdahvWJTjJH X-Received: by 2002:a62:1b41:: with SMTP id b62-v6mr12983287pfb.172.1536932599716; Fri, 14 Sep 2018 06:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536932599; cv=none; d=google.com; s=arc-20160816; b=0l9u5Hs8+j8Y7D1OATP/D8wTvPYsnTcz+S4TafeMbsQnhJ/l53bwdiEX9AcrlPtk7d eM6J76Dz5iAE7I0DH2d9skoTjsWLRLnOaQaWUcGpZYz+S0QpFndbed82+4ipUJVQp+jV umKTTjna1+eokirWHJ1P/zpiTH9nLNNGAjBIQl9ZuSLzR0NnXsfYIV8yhBO45P8st8t6 cYw3WkgTNmRZcs7eXxGih7GrN/pH2+Kjj3TTUYeOaS1THgGUo7u0uaB3b3+qD3cuLExD a3i23bNxnm7Gzgw0kKSN8vwd6zAsiMZ9bHuzpxJVdixodYHUO2P1ms2du7ga4KIETJAR 5/eQ== 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; bh=eniRlcvYbY4fXagTAFAFBGkGJSzEYcbbjsH1yaz5mMM=; b=jmZxC9Vd4/Aa6fsWxHkSiZRgphHDq2SO2Cy0VnNHdBiyFKSs6bK9/siHSffe8F/n4e vHzrWuJ1JZkMxhwqQUnEfBjPzSwOjalqvETuFfA0konyqO6Dk54XzAKBPFoDrMr8aCs1 6iqJDJRHCAqvWwk833aNnSVFVXeTw8AFm+oj8HzwMfOgE6gnTjip0huE3ZGJmNLoAkDI x2fAyHq1juNLgtWJVLG2w9dvVQAyfLz9YF5fLn+uHOf6A0R5mzNt6GSuadilgpaBLF0b mVL1ZRQ9gK1+KB3VFOw0+8ZdnOgrsrWXdWviOsWgK2ptlJcs/G0pkZ4eaHamuRxUfVA+ VwlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@obeliks.de header.s=jul2017 header.b=d+8lwTx5; 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 a33-v6si7321942pld.269.2018.09.14.06.43.01; Fri, 14 Sep 2018 06:43:19 -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=d+8lwTx5; 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 S1728024AbeINS5Z (ORCPT + 99 others); Fri, 14 Sep 2018 14:57:25 -0400 Received: from scopuli.esotechnik.de ([79.143.188.15]:38313 "EHLO mail.esotechnik.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeINS5Y (ORCPT ); Fri, 14 Sep 2018 14:57:24 -0400 Received: by mail.esotechnik.net (Postfix) with ESMTPSA id AF139AE002F; Fri, 14 Sep 2018 15:42:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=obeliks.de; s=jul2017; t=1536932567; 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: in-reply-to:in-reply-to:references:references; bh=eniRlcvYbY4fXagTAFAFBGkGJSzEYcbbjsH1yaz5mMM=; b=d+8lwTx57KRZ0qeS3bfgIBGgeMllk/jN9WaQ+EX6vlY70AIDB9fPDtv1fhAaI5S4WqdFKt aix8ymv4HC9CjZAPvzWRKKouvzXMNHILoDSXk6RGeJIlcJoV1w3pT0bnpwCjv9VH8IC+5E MoB7B7ybNEMf8GQEMBB2rOoM/Wpi+MRi5ObK6dMsU79Jab2WPfczmJT9pdSi/Lm1VGyi6m +WHtVP00u5B+ovl4nymwQiWy73eLi/09/MPqhXqvoOvZ7SpenD+CP/4wrep06E/naSaWQG JrwFZkU/cKHUlon7wgb4EyR58gVlV9SRWM490zKQkJgqMEC5NNPRTvaV/43uQA== Date: Fri, 14 Sep 2018 15:42:46 +0200 From: Bernhard Frauendienst To: Rob Herring Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek =?utf-8?B?VmHFoXV0?= , Richard Weinberger , Mark Rutland , =?iso-8859-1?Q?Miqu=E8l?= Raynal , MTD Maling List , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 3/3] mtd: mtdconcat: add dt driver for concat devices Message-ID: <20180914134246.GB5913@dellux> References: <20180908131345.8145-1-kernel@nospam.obeliks.de> <20180908131345.8145-4-kernel@nospam.obeliks.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, sorry it took me so long to reply, I had to set up mutt first ;) On Mon, Sep 10, 2018 at 04:47:22PM -0500, Rob Herring wrote: > On Sat, Sep 8, 2018 at 8:20 AM Bernhard Frauendienst > wrote: > > > > Some mtd drivers like physmap variants have support for concatenating > > multiple mtd devices, but there is no generic way to define such a > > concat device from within the device tree. > > That is the generic way, but I suppose that only works for parallel > memory mapped devices. So is it just spi-nor that you need to support? I'm no expert in this domain, or regarding OpenWRT, but as far as I can tell this only concerns spi-nor devices. It definitely does in my specific use-case. > Can we just make reg take multiple chip selects just like the existing > support takes multiple reg entries? That sounds like an interesting idea, but I'm afraid it's not a trivial change, as far as I can tell from looking at spi.c. The 'reg' property is currently read in of_spi_parse_dt which gets passed the spi device created in of_register_spi_device. The latter would have to create multiple devices from a single OF node, and pass the chipselect value to of_spi_parse_dt, which would have to parse the same node multiple times, which feels a bit strange. To make things worse, of_register_spi_device returns the created device, although that value seems unused in the current tree (except for error checks). Am I correct to assume that this change in method signature could be accteptable since both functions are not exported? Regards, Bernhard