Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1739891pxb; Wed, 9 Feb 2022 03:33:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcmgKsjL0UaLOwVnT83sw/tZMVH1nZ7Qqh/e6T0vvxkfgV9C7Jk6/873i+TnnlD3Php2vf X-Received: by 2002:a17:90a:f0d4:: with SMTP id fa20mr2883729pjb.1.1644406429327; Wed, 09 Feb 2022 03:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644406429; cv=none; d=google.com; s=arc-20160816; b=aRW23ByQlh+FWxh8cDFKIaAWA5kbjzfhVkWEPddSu0I/8RVdCRpugBDOcB6+wFRrz5 Hw01pF3Diz5QdwttHHYjx5a0irYy5LSdEGAsbBiD2J2VJvtJ5XuU9VIYddg7+gkRU5Yt viFPK3VO76tmIC+UvOM9JJq2S9WXnFS6c+KeD/fApMZvVvURujxkoHWMAsw42jniWL/1 T92SgQeJZMH+6yF4saIYtXm70ISct2PofcRGN/gNrZUVGYro+i2MyxyvYZZM7B+moS1H DTz8NDD+NNi13JEbl+eTy5upH0DBApQJ89Y6HxIWcCtPmfkUEysnuEw+GkMPKyfUDXwQ uBxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=II38vjLqRQLg/txnWaGaYMH5G+TMjmxUgp39Q+KTFOI=; b=h1/7iTS0stZaD7XNwTubh/jsoORXvGRqo9UjDmRThfNftT0MuKAQq6/IbIVqh+oHAC Rt+Zw+Dx8A7nMpG6DwVb9fBK7rOwVGISNM01I7S4vrwLjnJ6jfEasYQVIG+ZNyJERvAd urNjyYSXunu7X2fhUZsgKB7q/sPvnF5Lvt5Jb5g8SOzaOwUMhkXhxjVMMjZBuQr2kstE bUUoXfYaXpxKT62Hfl27r7EaPb6prXg61R7FHp8xD4kjDLz/+0u2lzxKojEjRNspZ1+Y Uc6DsxabGPlgW+1qL+M87jRuiWZoivcl1met7A3k6e4NVbvdWLtpXWvqUX0SwOFXl+WF iBqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cg78R25f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q8si12892515plh.191.2022.02.09.03.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:33:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cg78R25f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 00089E077889; Wed, 9 Feb 2022 01:53:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343675AbiBHNR7 (ORCPT + 99 others); Tue, 8 Feb 2022 08:17:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbiBHNGB (ORCPT ); Tue, 8 Feb 2022 08:06:01 -0500 Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [IPv6:2001:4b98:dc4:8::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03B22C03FEC0 for ; Tue, 8 Feb 2022 05:05:59 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id F3BEE20000A; Tue, 8 Feb 2022 13:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1644325557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=II38vjLqRQLg/txnWaGaYMH5G+TMjmxUgp39Q+KTFOI=; b=cg78R25fOkgb5ywOTBX32Ds9RDk2APYA7e1uYvGLZfPi06/mTEq8+GkVPwGTaR1fLB1WVs MeA+3P/QBgqREUS/55SrecEY7vmpaW579tgSxLcqqHTqoO1BDIommGnumCSg+8i2aZNL5O m4E4t5GhKA6ICt0hiBOdfqaVhVhFCKj00Np/wM7cfEJjZrh22izqYdMuF3he0kmw7z5Cwm zcMMF++SjVytXqfTbvC3aprnLqBdYO/RWujfqLSLVQHiozdu7DAc0JckuC2AlQrnRykiE9 ejCHAzAkhskQWJP59w3q/fys6innvYxgNfqEB/0ajLCHg8OQcMlC9/WzFn3lkw== Date: Tue, 8 Feb 2022 14:05:51 +0100 From: Miquel Raynal To: Amit Kumar Mahapatra Cc: , , , , Subject: Re: [PATCH] mtd: rawnand: pl353: Set the nand chip node as the flash node Message-ID: <20220208140551.6271f976@xps13> In-Reply-To: <20220208125738.32162-1-amit.kumar-mahapatra@xilinx.com> References: <20220208125738.32162-1-amit.kumar-mahapatra@xilinx.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amit, amit.kumar-mahapatra@xilinx.com wrote on Tue, 8 Feb 2022 18:27:38 +0530: > In devicetree the flash information is embedded within nand chip node, > so during nand chip initialization the nand chip node should be passed > to nand_set_flash_node() api, instead of nand controller node. >=20 > Signed-off-by: Amit Kumar Mahapatra Can you please add Fixes tag? > --- > BRANCH: nand/next > --- > drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/mtd/nand/raw/pl35x-nand-controller.c b/drivers/mtd/n= and/raw/pl35x-nand-controller.c > index 8a91e069ee2e..3c6f6aff649f 100644 > --- a/drivers/mtd/nand/raw/pl35x-nand-controller.c > +++ b/drivers/mtd/nand/raw/pl35x-nand-controller.c > @@ -1062,7 +1062,7 @@ static int pl35x_nand_chip_init(struct pl35x_nandc = *nfc, > chip->controller =3D &nfc->controller; > mtd =3D nand_to_mtd(chip); > mtd->dev.parent =3D nfc->dev; > - nand_set_flash_node(chip, nfc->dev->of_node); > + nand_set_flash_node(chip, np); > if (!mtd->name) { > mtd->name =3D devm_kasprintf(nfc->dev, GFP_KERNEL, > "%s", PL35X_NANDC_DRIVER_NAME); yup, that was wrong. Thanks, Miqu=C3=A8l