From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUASW-0008Lq-33 for linux-mtd@lists.infradead.org; Tue, 04 Dec 2018 13:09:55 +0000 Received: by mail-lj1-x243.google.com with SMTP id g11-v6so14842876ljk.3 for ; Tue, 04 Dec 2018 05:09:41 -0800 (PST) MIME-Version: 1.0 References: <20181127205358.32502-1-linus.walleij@linaro.org> <20181202094749.07a9687e@bbrezillon> In-Reply-To: <20181202094749.07a9687e@bbrezillon> From: Linus Walleij Date: Tue, 4 Dec 2018 14:09:27 +0100 Message-ID: Subject: Re: [PATCH 1/2 v3] mtd: maps: Leave assigned complex mappings To: Boris Brezillon Cc: David Woodhouse , Brian Norris , Boris BREZILLON , Mark Vasut , Richard Weinberger , linux-mtd@lists.infradead.org Content-Type: text/plain; charset="UTF-8" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, Dec 2, 2018 at 9:48 AM Boris Brezillon wrote: > On Tue, 27 Nov 2018 21:53:57 +0100 > Linus Walleij wrote: > > > The simple_map_init() may need to be called with some > > function pointers already assigned for complex mappings, > > just bail out if complex handlers have already been > > assigned. > > The commit message no longer matches what the patch does. > > How about: > > " > mtd: maps: physmap: Leave assigned complex mappings > > SoC-specific drivers might provide their own map->xxx() implementation, > and calling simple_map_init() unconditionally will override those > implementations. > > Make sure map->read is NULL before calling simple_map_init(). > " > > If you're okay with this new commit message, I can fix it when applying. Sure, go ahead Boris, thanks! Yours, Linus Walleij