Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2112926ybe; Tue, 3 Sep 2019 08:10:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrqjqclO1Hy6sug/Do197LIs6u2y68wjxUYccsPHuyyGomFKwnr6qoT7By7WkWtTnVe2mg X-Received: by 2002:a63:1f1b:: with SMTP id f27mr30355555pgf.233.1567523426376; Tue, 03 Sep 2019 08:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567523426; cv=none; d=google.com; s=arc-20160816; b=Zn2t06Vpo4Vk5tHYnbnUV6ZGA/G2w3AGdV5x8oScMcyYiEMDJsmPZc1y6qT0sH6p+V Dw5+ToTGDi1DmRp5dLVc4+0VbCB92KNSdy3NVP3qUhIqRCM53jAcaLbLuJ54fq4JIQP0 2KsEAmoMMdNijpsnG6RsnWyE16ccBbd0juEQ+RVv9Onerz1j+Bc2roStQ0lLnUtKwiVm EHnK9x2cOAx8hiAyG0hpLNRoJmW8uSGZrL/q9jwr6dLN53IpP/u4OWrbMzq6XRLNDycT k4otsBJxEWQgOqoM3xakGbfcPhk7WgdJaO7KH6FsfU5izxupuSJEGbpZ9v7RCsyOLy/x IvdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=X1rxP1tz3+L6Fv4pzp7/0YhUhmirEf8TyG6mMkavrYA=; b=TQG1hp+KTG16BztosXFYW2MRf23aVyeh6kTwGgeFY7GSD1+qxkoy0vcMJ3rxr8BFzK O6+OFTGvDXdlToegGG7mw2S1HnMSVDNTIjnKs9cY62im+DaZM7zZR3kIbX7A8IQ5MoyT kDgKRvEWH3kurMgYCVtKn02I2g+J6Qe8r4sF9Bq0KSlRVudbr5EzOgGyd8yDxKUpxo+m PaowjKlaveSjAwO/oAOQWAOrQNMMliC2FrVV/Yr3jypoIGKuCZ0LC09SUzLPRlr3r7RP w6wsmUBuEswm279eLkf0exxddt5tR+BEwkEBtOjJo6eLgT+AWRWsCer63Y3sqy8AhPQR B/pA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si2639667plb.352.2019.09.03.08.10.08; Tue, 03 Sep 2019 08:10:26 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729988AbfICPI5 (ORCPT + 99 others); Tue, 3 Sep 2019 11:08:57 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:36254 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729169AbfICPI4 (ORCPT ); Tue, 3 Sep 2019 11:08:56 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 8305628B338; Tue, 3 Sep 2019 16:08:53 +0100 (BST) Date: Tue, 3 Sep 2019 17:08:50 +0200 From: Boris Brezillon To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , 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 Subject: Re: [PATCH] eeprom: at25: Convert the driver to the spi-mem interface Message-ID: <20190903170850.6aee808b@collabora.com> In-Reply-To: References: <20190330141637.22632-1-boris.brezillon@collabora.com> <20190425194451.GA14552@kroah.com> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Tue, 3 Sep 2019 17:06:52 +0200 Geert Uytterhoeven wrote: > 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? Sorry, I don't have time to respin this patch. Feel free to send a new version if you need it. Regards, Boris