Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp884987pxb; Wed, 6 Apr 2022 03:12:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaPHz0Y/DwnSENHKAjvI+ByYv6rJgvwFUQoYjWgs7VoEFl03Ta7arjrDR7nOL7Tlkhrr6u X-Received: by 2002:a63:e617:0:b0:382:9ad9:d829 with SMTP id g23-20020a63e617000000b003829ad9d829mr6405749pgh.553.1649239927985; Wed, 06 Apr 2022 03:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649239927; cv=none; d=google.com; s=arc-20160816; b=J+03jC7ZB6tigqmwzjbHbYiIid62FOhMpeginBFf7Q9cSbe8NYBVcVceLodSFZALRX AHmQd/3s9SPg83USSktnERBNMU83Y+sM9A8iLbN1/YK/lG9cQ09G2YhsRzEBqXVkYL/9 qsz2EmHtKK5vEtFKWQgqrMzwsEwfUlqQ5NwzGZhfpBrCGl0+sKvPkvzUqvyzUApmQKsO LhtyFJxgargTuZkojGCcaNHO9JUIZWhi5MYStivzjIuzOoQb2DFhN2VfAOlAsQ1eShST L5HbhNhd8/ThdpHTMpODL/sf87jaXH/U2ObIvBD/3oQG5QSIyRP/45pfLmL5zC+jfVSq b0Vw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BpMtmIGLtCn2vaAkNTQvXWVq7RNOz90kpYm/ZtOgEnQ=; b=c+xu51NIZfHbc5Y+xXSit1omC3eZLH6WCFJhYBsXn4vCytwFZrt/uvwfExc7XhzbjQ I8ohLj6UxlKDs+Lzw6U05/XcbF0uBEe/vouU/atDDowyyLhdVXB7RYi5NaqIXalqj2SQ 5sh45dKaOoW7LU6ku2BjkFRe1G3qQX8TQ7eL+y1c4gaB01ZlMb8vtergotsu2vYF9RXf CzSqOfmrMBahGKKQUjZZ+XpMwPyZGtYbOJ0PYAiWzWgeDXpc0xWY6LQcetndCsfPAp4D XHuyjS7yS62eZfxHIGnn4j2lhCCVW4HJc/bj0wkbrB7A1dGs/ydnwKma2dT3TsNS+m5b lOag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bH25kq0d; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y5-20020a17090322c500b00153b2d164e8si15773628plg.240.2022.04.06.03.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 03:12:07 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=bH25kq0d; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 985F259CD54; Wed, 6 Apr 2022 01:39:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348182AbiDFA3S (ORCPT + 99 others); Tue, 5 Apr 2022 20:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349068AbiDEJtD (ORCPT ); Tue, 5 Apr 2022 05:49:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53CCEA94F4; Tue, 5 Apr 2022 02:39:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D28B26164D; Tue, 5 Apr 2022 09:39:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3661C385A1; Tue, 5 Apr 2022 09:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151581; bh=pUXd/odrjqglX+qTSbsO6wGpyhmHpt2EgqG6TEgFfPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bH25kq0dDUCRkCG6rcOhjglLTNBjapineQj2IUi0b9kwPBvg/fpKjprztHER0Qu6y fD9b6JyTCa6agUAIIi3Yh+AQPHDmM1D2F1IZZxahRkhrRdeJE0tZe0Vc9U6GfklOgT vrTdcQlqk/yzkyg/nrV3dMs/sXyTzVQt3L93vSyY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Amit Kumar Mahapatra , Miquel Raynal , Sasha Levin Subject: [PATCH 5.15 468/913] mtd: rawnand: pl353: Set the nand chip node as the flash node Date: Tue, 5 Apr 2022 09:25:30 +0200 Message-Id: <20220405070353.876030318@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 From: Amit Kumar Mahapatra [ Upstream commit a1fe2ace2c39dcdc7c053705459a73b7598b1e4f ] 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. Fixes: 08d8c62164a3 ("mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller") Signed-off-by: Amit Kumar Mahapatra Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20220209053427.27676-1-amit.kumar-mahapatra@xilinx.com Signed-off-by: Sasha Levin --- drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/pl35x-nand-controller.c b/drivers/mtd/nand/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 = &nfc->controller; mtd = nand_to_mtd(chip); mtd->dev.parent = nfc->dev; - nand_set_flash_node(chip, nfc->dev->of_node); + nand_set_flash_node(chip, np); if (!mtd->name) { mtd->name = devm_kasprintf(nfc->dev, GFP_KERNEL, "%s", PL35X_NANDC_DRIVER_NAME); -- 2.34.1