Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2110529ybe; Tue, 3 Sep 2019 08:08:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQwsF+JS5Zow2jeF9+gGz0/axMRvdwVrFceVVLCNS1wLampLKCzOtI3ydO7GzJmvz15YW3 X-Received: by 2002:a63:506:: with SMTP id 6mr30515185pgf.434.1567523315618; Tue, 03 Sep 2019 08:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567523315; cv=none; d=google.com; s=arc-20160816; b=yKI2ntImS9w72nN8yos7BRXaTaEphd1hJAHhekdLzJBz5L1zMW9TNGq99L/Y7uiRAb z2bPxAZwE1qRPO/wi1JeWCSTgdX4IUDP0aBzsjFdQu01n/MPtQOo7iVzzhG1/Dwr9jbu d9z301ImqkEO50ks4bhuDA4FLOi1LyOGTv3ffzuag7eYcSY8zx1e5eC/AdeidxBo2yID 0IKySBitbTLc/KNm0oWw1TYJXUU1hTNFuPGiCntbTMO9IEp+Q9u3AygRcDjTHcEQXdAn Fi3RMVQVdW+EL4y9DTKGkl1vJZh4frjk5I/pWz3BvMZe3ly+/fihcTE51KwhUJocXung SriQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=ESEycbkGEsTf561HdtK9W+JMPb2DaqG5d3IDc2e1GG4=; b=rRQNmcgdEYMTO95k6n7A51sefhum7wwN51cdicGMELcYiRpWtvJcUIfnP9YIlbM3om CmbWb3Pxm3KvG2f8uZt+kX4CyxSII7WpqXZ3e1+91GQBYRmow5dd6JvXpx1DySWhRlBM 6qsmDs6pw2MB26SKGbxUpRn6/FnL7Z2UJihBz7TSYyQhTD5bZzZtffTN8Mc4oXOPv0VP jk9dLotz0BZ/ueuGLnJbhgUk9hI+SfsfjbtyfFNIQ+AcYzy5PKn2W1Xw6sfg1fxQH43L sc7oz53AfHgOldjtwg7+IzsT+T2t6UcpWcK0d9jkeaNlgFNS0DQZUqMIahU3M2vWwkEb t34g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si17239937pfr.14.2019.09.03.08.08.10; Tue, 03 Sep 2019 08:08:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729276AbfICPHF (ORCPT + 99 others); Tue, 3 Sep 2019 11:07:05 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:43724 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbfICPHF (ORCPT ); Tue, 3 Sep 2019 11:07:05 -0400 Received: by mail-ot1-f66.google.com with SMTP id 90so13190890otg.10; Tue, 03 Sep 2019 08:07:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ESEycbkGEsTf561HdtK9W+JMPb2DaqG5d3IDc2e1GG4=; b=gT7CpYeMWEJCGw+VbQwfn5wErprIG3SSBokyScYjprdRza1k7XOUUhzbuMh/uN9Cn5 83UbEg2mITWzjpfzSZ1YGwJH+J/E1izU2fzi3TDGJlgbnetGskBDLT4pxH20QIHbsfBQ HCkleKIxe2TKhPKBH3ZIOtbbOoH9b27sFkXUrAWRpXNjMHJfxjIezY8kLjtH3nS6HdUO 1a9MO4qcywkxw+C0X3bfB65LRUo73PSr0jrVsinfokGUs4IVqTj259nivSEX57beq1y9 iazM0ezgdloDG+YbSgXpBP/v5MkxMJKC9xQXvs/K8u4sM9noMH5tMJJV3jOILx8hM+ve LQsQ== X-Gm-Message-State: APjAAAXGqwXNnr3oFkFNGOcOqXR3GAtWSUFo1EVcYWPX/H0Vb60y8qqH TPIKC7Z39HLHbUeaai0P+5hOdMLzZJxEMRiDR1g= X-Received: by 2002:a9d:68c5:: with SMTP id i5mr12305575oto.250.1567523224339; Tue, 03 Sep 2019 08:07:04 -0700 (PDT) MIME-Version: 1.0 References: <20190330141637.22632-1-boris.brezillon@collabora.com> <20190425194451.GA14552@kroah.com> In-Reply-To: <20190425194451.GA14552@kroah.com> From: Geert Uytterhoeven Date: Tue, 3 Sep 2019 17:06:52 +0200 Message-ID: Subject: Re: [PATCH] eeprom: at25: Convert the driver to the spi-mem interface To: Greg Kroah-Hartman Cc: Boris Brezillon , Arnd Bergmann , Linux Kernel Mailing List , Mark Brown , linux-spi , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Miquel Raynal , Vignesh Raghavendra , MTD Maling List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 25, 2019 at 9:44 PM Greg Kroah-Hartman wrote: > On Sat, Mar 30, 2019 at 03:16:37PM +0100, Boris Brezillon wrote: > > The AT25 protocol fits pretty well in the spi-mem model. Convert the > > at25 spi driver to a spi-mem driver and use the dirmap API instead of > > forging SPI messages manually. > > This makes the driver compatible with spi-mem-only controllers > > (controllers implementing only the spi_mem ops). > > > > Cc: Geert Uytterhoeven > > Signed-off-by: Boris Brezillon > > --- > > drivers/misc/eeprom/at25.c | 282 +++++++++++++++++++++++-------------- > > 1 file changed, 176 insertions(+), 106 deletions(-) > > Will there be a new version of this to fix up the problems that 0-day > found in it? gmail-whitespace-damaged fix: diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig index f2abe27010eff133..98145d7d43d0c728 100644 --- a/drivers/misc/eeprom/Kconfig +++ b/drivers/misc/eeprom/Kconfig @@ -36,6 +36,7 @@ config EEPROM_AT25 depends on SPI && SYSFS select NVMEM select NVMEM_SYSFS + select SPI_MEM help Enable this driver to get read/write support to most SPI EEPROMs, after you configure the board init code to know about each eeprom Boris: what's the plan? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds