Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4120730imm; Sat, 21 Jul 2018 10:36:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfFGgQhtJBtfjTWrwMbsTFFhkt4/ZjGTFui5sTWKRCkT8RhdqEw4T5cnnxtUGhKUs4PEuNo X-Received: by 2002:aa7:8645:: with SMTP id a5-v6mr6699542pfo.247.1532194566452; Sat, 21 Jul 2018 10:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532194566; cv=none; d=google.com; s=arc-20160816; b=oJ+YS1kwQ/3ari5tYdepXlfCaXuPd6fOkmLNKeCmUKdQnq0ikK46542sWAgcmz6C5e Pj1vuKNw8jUtds8LdZUvAAFwk5fz8OiR6doPna8BKQMrj7BcRrvLbNIpdEMDYPxvDS21 W2+DgRNXMvHf0A7mWAGV2LA1CDH9jgNZ2mVQ1zx2T2j8YTaWnOCOkp51XDzCHz/bbw12 cS0CIiNtJm3OW/gFcX3qQa2Amb4ThhNdLEjGQry9ZyFFmXptU/bmAddzkZYjo8S2uUAJ G8MEHpxdo57swfGtUVg6Q1xl9Fh3KQMZKBOA/R1sSFzfihVVAwVdb2Gu8D0t6horIl5E 2BNQ== 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=xrBZJ7MEJzldnhZ2HorBhnEMxGp2AkqcbdRtK4ZEPmA=; b=xgB4HIOm5kmAaEmBarzg4XSdndZhdPATZgfo9NbRoihS/jF34q/E+5G/NEVpnFDz7C Zoy/c9UbhF3r3IT7PD074lVQrPaFdWPdx8oxGqMLuulSM1gNqebL6hpz3PLbL/qZxPwq /lIBaMIBvmDcVswwHsL1qIxmsbZc4BwdUeuU6fSCNnT/qZwJoPABY4baIMZlnm5a3V9V 17NFacXBYuJ3WXopL4w4M3Yr2gMFP76vgDIODoHPeGSzRFFGK/KRsXhQSvenxHvFQy5Y NQBZaE/3Ugt76oA4ILPQyr+7/gmL6ylWcHM6bo0noVs2agReEU6i2ZfOg42teJh2HwZz dJYA== 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 c13-v6si3875965pgq.316.2018.07.21.10.35.51; Sat, 21 Jul 2018 10:36:06 -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 S1728011AbeGUS2a (ORCPT + 99 others); Sat, 21 Jul 2018 14:28:30 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49501 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727542AbeGUS2a (ORCPT ); Sat, 21 Jul 2018 14:28:30 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B432220737; Sat, 21 Jul 2018 19:34:59 +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 (unknown [37.173.79.60]) by mail.bootlin.com (Postfix) with ESMTPSA id 4492A206F3; Sat, 21 Jul 2018 19:34:47 +0200 (CEST) Date: Sat, 21 Jul 2018 19:34:46 +0200 From: Boris Brezillon To: Miquel Raynal Cc: Wenyou Yang , Josh Wu , Tudor Ambarus , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Nicolas Ferre , Alexandre Belloni , Kamal Dasu , Masahiro Yamada , Han Xu , Harvey Hunt , Vladimir Zapolskiy , Sylvain Lemieux , Xiaolei Li , Matthias Brugger , Maxime Ripard , Chen-Yu Tsai , Marc Gonzalez , Mans Rullgard , Stefan Agner , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v4 17/35] mtd: rawnand: omap2: convert driver to nand_scan() Message-ID: <20180721193446.499c2d7d@bbrezillon> In-Reply-To: <20180720151527.16038-18-miquel.raynal@bootlin.com> References: <20180720151527.16038-1-miquel.raynal@bootlin.com> <20180720151527.16038-18-miquel.raynal@bootlin.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 On Fri, 20 Jul 2018 17:15:09 +0200 Miquel Raynal wrote: > static int omap_nand_probe(struct platform_device *pdev) > { > struct omap_nand_info *info; > struct mtd_info *mtd; > struct nand_chip *nand_chip; > int err; > - dma_cap_mask_t mask; > struct resource *res; > struct device *dev = &pdev->dev; > - int min_oobbytes = BADBLOCK_MARKER_LENGTH; > - int oobbytes_per_step; > > info = devm_kzalloc(&pdev->dev, sizeof(struct omap_nand_info), > GFP_KERNEL); > @@ -1967,6 +2221,7 @@ static int omap_nand_probe(struct platform_device *pdev) > info->phys_base = res->start; > > nand_chip->controller = &omap_gpmc_controller; > + nand_chip->controller->ops = &omap_nand_controller_ops; Move this assignment here [1]. > > nand_chip->IO_ADDR_W = nand_chip->IO_ADDR_R; > nand_chip->cmd_ctrl = omap_hwcontrol; [1]https://elixir.bootlin.com/linux/v4.18-rc5/source/drivers/mtd/nand/raw/omap2.c#L148