Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4630704imm; Sun, 22 Jul 2018 02:00:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcrF9k9bKKNzSwyfxkt5amBhY43qGiBHhIOutwYJ5POyxhFZC+zF/9B2FzYcA+W11kUciZS X-Received: by 2002:a62:ee06:: with SMTP id e6-v6mr8685258pfi.2.1532250059466; Sun, 22 Jul 2018 02:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532250059; cv=none; d=google.com; s=arc-20160816; b=dj4m2xJvKMJa/TXfv0z2IKU2fZSkDukARcB6ZDcBPRxxE7vsVQhxLPuSWubfAXQUgW YeKcUuaxaC7TeUPBr5YALlff2a97iEsXehnt9J/aOJPOxncFn9EWch9+wIgn2HgYbhLv L70+rkbFvmymlCZ6SqlKnbNMAxB/o8hLr1tgVKUqyl/72qT+NjqFDcz3ulqLzVFvs2Gh FOFmfQ9/vqgHojabfdbsLQdeJB4uxmEb7WYrIz5B1VwMVA9JCVg0dRhH71IUy8Kh5bSn ULPZex+t2dguAwrKovZxwBtzX9cAIgW+9swuLyVkCGe2axvr12ENVGKwTPxlHRJttcfc B79Q== 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=fj95gjF0vMRmiL6O70UXBbhNa6WNSIynjbLBoIEtaIs=; b=Ji2JQUPIX5eO/F/xAnVZNYW0NnsrmfeRfMpMPsC3n7ZzGA02hsYnjSh6N0vg20R+15 EKPIG6t3szyt/lkivSi2mpHgkJalKK9rp2oSWmKOOlUC7yOkWF1y91dhN/oMzPOW064W koHs/tH29bErxyzpI5ZkIAoEh41azWED2u5xZjyIvZJRJPxdN0Phq1HLT1hKUaoXI2HX nl2kib2SUA5YgszqqNLkeduS51gOm6rA2NN2KNCazfD11QX12/PjMGy1Mp7zrr9Qy2Yq cq4PRV+NyKwHijrN3NGNr6hTfNFLXtiscJ7HCdDAOsAchGy5Z3wQQbz09H/nOAzXDbwG q6hg== 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 y2-v6si6333062pff.117.2018.07.22.02.00.42; Sun, 22 Jul 2018 02:00:59 -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 S1728254AbeGVJzs (ORCPT + 99 others); Sun, 22 Jul 2018 05:55:48 -0400 Received: from mail.bootlin.com ([62.4.15.54]:59418 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728152AbeGVJzs (ORCPT ); Sun, 22 Jul 2018 05:55:48 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1A1EE207AD; Sun, 22 Jul 2018 10:59:47 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [37.173.20.83]) by mail.bootlin.com (Postfix) with ESMTPSA id 1918D20737; Sun, 22 Jul 2018 10:59:45 +0200 (CEST) Date: Sun, 22 Jul 2018 10:59:44 +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 30/35] mtd: rawnand: qcom: convert driver to nand_scan() Message-ID: <20180722105944.76a5941c@bbrezillon> In-Reply-To: <20180720151527.16038-31-miquel.raynal@bootlin.com> References: <20180720151527.16038-1-miquel.raynal@bootlin.com> <20180720151527.16038-31-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:22 +0200 Miquel Raynal wrote: > > -static int qcom_nand_host_init(struct qcom_nand_controller *nandc, > - struct qcom_nand_host *host, > - struct device_node *dn) > +static int qcom_nand_host_init_and_register(struct qcom_nand_controller *nandc, > + struct qcom_nand_host *host, > + struct device_node *dn) > { > struct nand_chip *chip = &host->chip; > struct mtd_info *mtd = nand_to_mtd(chip); > @@ -2824,36 +2828,20 @@ static int qcom_nand_host_init(struct qcom_nand_controller *nandc, > chip->block_markbad = qcom_nandc_block_markbad; > > chip->controller = &nandc->controller; > + chip->controller->ops = &qcom_nandc_ops; This assignment should be moved here [1]. Once fixed you can add Reviewed-by: Boris Brezillon [1]https://elixir.bootlin.com/linux/v4.18-rc5/source/drivers/mtd/nand/raw/qcom_nandc.c#L2574