Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4093842imm; Sat, 21 Jul 2018 09:59:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpftwlsK0r3ECOflERurksba5VBzZufLEb/7tpO7DUlWn9ROTUNoBTyXQZMW+gZQLLqHqpcf X-Received: by 2002:a65:4c87:: with SMTP id m7-v6mr6153329pgt.98.1532192385161; Sat, 21 Jul 2018 09:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532192385; cv=none; d=google.com; s=arc-20160816; b=votnA3EUFwCMZfI+6MCi9KIIOQS6q4ZbrSl/uueJFu03KIsO4GyrcDXixZDDxP3qsG TRfw0K6EWcxvDq9fzl2rAhc0rSfLAPu8bgo73IgNhJ8+yaI4Fhf4s0v3LsIvC/XZgZM5 6jrzon4pUxd5sJv1xzn2w0DVTRggaNsZnS0RwryFV0ObyAv4uX1Klf1/ycvJEVNp7jf3 BJEcQP+mSHWN35bZWEjFpagjiCEBllUFAeWibBs1WJzhw+C/J1nValuuazjB2P657/BJ m7Akk85x2vri33rPtByvXnMQ71OdU649teo0GLJkwjvChqRdAr5VI+WOv1jhGivvF06q 84sw== 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=NpBGN0WoZQ95ESVnJwTaZXtFzRfeJtmnlfz5PhoQFUQ=; b=OmLwkZjzpWxRbs/S1GfxxRjaZzf4dxKE5jeJGdXYKJHUd6z4m1U55vbyvY5H9ueKMH Ndde0pA9JRGWqYbXuknjIC/rXScvQQOCdw5yTT6+OBJBkCVAHDf31NUDMUOH9EIQ5plq FR/+VuNvb/zfNot0VOlb0zU0ZZl67EVcB6C3Z5dZqjQJKt0w26OlF58gM3wQ92am6yVW W+0WlsR5/6Hi7g0gnTHxK4o4NSMAGtgeufTPza2D5ZsI20vR2kfhz9PYmOa4ahPQRkEg NVaxfZ90F3Oo8Z6iBKAdW2UMTdpeJeb34qMOcQZaJh72198TvQ0OxriODSGfcP5NpFXQ ckeg== 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 q10-v6si4342547pge.674.2018.07.21.09.59.15; Sat, 21 Jul 2018 09:59:45 -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 S1728005AbeGURvJ (ORCPT + 99 others); Sat, 21 Jul 2018 13:51:09 -0400 Received: from mail.bootlin.com ([62.4.15.54]:48901 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727737AbeGURvJ (ORCPT ); Sat, 21 Jul 2018 13:51:09 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9574320737; Sat, 21 Jul 2018 18:57:45 +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 73F2D206F3; Sat, 21 Jul 2018 18:57:40 +0200 (CEST) Date: Sat, 21 Jul 2018 18:57:37 +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 13/35] mtd: rawnand: marvell: convert driver to nand_scan() Message-ID: <20180721185537.01f01362@bbrezillon> In-Reply-To: <20180720151527.16038-14-miquel.raynal@bootlin.com> References: <20180720151527.16038-1-miquel.raynal@bootlin.com> <20180720151527.16038-14-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:05 +0200 Miquel Raynal wrote: > > - ret = nand_scan_tail(mtd); > + chip->controller->ops = &marvell_nand_controller_ops; Assigning ->ops to &marvell_nand_controller_ops should be done only once in the probe function (here [1]). With that fixed, you can add Reviewed-by: Boris Brezillon > + ret = nand_scan(mtd, marvell_nand->nsels); > if (ret) { > - dev_err(dev, "nand_scan_tail failed: %d\n", ret); > + dev_err(dev, "could not scan the nand chip\n"); > return ret; > } >