Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4387432imm; Fri, 18 May 2018 04:23:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZryTcidtYVImOQE58kCj9V7hoZc/FjEguuHZshZ5qCe/4ZZyPlYpFeZ333NqWC46Rok51V9 X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr9153627plb.61.1526642626521; Fri, 18 May 2018 04:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526642626; cv=none; d=google.com; s=arc-20160816; b=SK/mCiH2v5RibumieFCky6Phba3iXTGSpGXDvW0lrJZhnFCHqqa93wNGnFHsLNdR1U L+daIV/hwXqn1EE82WEtijFEJiKvuwTvSWhhfa/uukSNcmqc7zoPqErh/Penjp/L8yIZ HNYhm5X2lmaJm9I0YQgraM1l2pDhDt+ZwGEnelsG5x9kRl6j4/7xiHMZ69qQoC8dGmMg JG+54NuvEhwdS4tOCtOHmdNJMLrkpfUQL8E6j8Bs/mMX3RRWAnrAo/hYkdIir/z/xd9I OVRiNfFA0CfaX8WZbP5Pg/HY0AbJF9UaxEqzrHuD0qi2FaIn5xaJnZVJEjach/vm7hfV dKgA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=FAp9eOUnMU2kpXFKeyZox+NO8YPEIRvgY8h3Xj6sK6A=; b=nt3QvGQBwP5jbKFLMhHBnkxoAZXkTU2E0QGEnwj193NIbYhflv4zpqYyNjgFR825Xh esPewJVpE9Sx4IQE9uT4Kt9G8LWJAJOKXIWqQUDaU/mqyezR9ut8nh2hNFhgIbrKRZvg HPiUiO/IvU8SVNyl9VkuolDcBug5oXeDRZY5DNoZY8+NNFiCjd3RR5KDbeeIcEBKytHm huSyklrWhZPerhtPUciRvGfVb0c4CMj9DePVb+zJtgisCxD9kISoGCZJJqRuTv8FQXcS fWmJyKas6fe4B/ABGGeVqW/z8isJxq7mQ/YtG7bBekkMKqeSq/4IXG5eQ+C26FVwJEVW 1Scg== 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 j84-v6si7400725pfk.203.2018.05.18.04.23.32; Fri, 18 May 2018 04:23:46 -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 S1751588AbeERLWO (ORCPT + 99 others); Fri, 18 May 2018 07:22:14 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33848 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbeERLWM (ORCPT ); Fri, 18 May 2018 07:22:12 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 615EB2091A; Fri, 18 May 2018 13:22:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id E984A208FF; Fri, 18 May 2018 13:21:43 +0200 (CEST) Date: Fri, 18 May 2018 13:21:43 +0200 From: Boris Brezillon To: Andy Yan Cc: cyrille.pitchen@wedev4u.fr, mchehab@kernel.org, robh+dt@kernel.org, linux-mtd@lists.infradead.org, shawn.lin@rock-chips.com, heiko@sntech.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, boris.brezillon@free-electrons.com Subject: Re: [PATCH v8 2/3] mtd: spi-nor: add rockchip serial flash controller driver Message-ID: <20180518132143.3105f301@bbrezillon> In-Reply-To: <1518092327-3827-1-git-send-email-andy.yan@rock-chips.com> References: <1518091958-3672-1-git-send-email-andy.yan@rock-chips.com> <1518092327-3827-1-git-send-email-andy.yan@rock-chips.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-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 Andy, Sorry for the late reply. On Thu, 8 Feb 2018 20:18:47 +0800 Andy Yan wrote: > From: Shawn Lin Commit message please. > > Add Rockchip SFC(serial flash controller) driver. > > Signed-off-by: Shawn Lin > Signed-off-by: Andy Yan > Acked-by: Marek Vasut > > --- > > Changes in v8: > - remove unused macro SFC_CMD_TRAN_BYTES_MASK > - set max transfer length to 15.5KB > - remove unnecessary buffer align check > - remove the duplicate logic what spi-nor.c already does for spi_nor_write > - add spi_nor_erase, as the SFC should get the erase address. Would you mind sending a new version addressing the problem reported by kbuild robots and the comments made by Ezequiel and Robin? Also, maybe it's too much work, but it would be good to check if the driver could use the spi_mem interface [1] so that you can move it to drivers/spi/ and possibly get everything ready for SPI NANDs. Thanks, Boris [1]https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/tree/include/linux/spi/spi-mem.h?h=for-4.18