From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A1BCC61DA4 for ; Thu, 16 Feb 2023 18:00:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2234B85B9A; Thu, 16 Feb 2023 19:00:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p4vjId1L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 998E785B92; Thu, 16 Feb 2023 19:00:30 +0100 (CET) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B11EE85BC6 for ; Thu, 16 Feb 2023 19:00:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x529.google.com with SMTP id dn12so2532451edb.5 for ; Thu, 16 Feb 2023 10:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=LFXGAQSKI37U8BE8fQ1iu7McLvXfQhvTDf0gLze6QF8=; b=p4vjId1LdGIqM9yyLZCsjVXK07Q+Sbt+b8fpVI0H+9GqYn1t1Y+dvgEXebdElGbpdE 1/grllSoL5m9NRGf8G2Q+8nuCW1ephOuDBr342xJU7Q2A1aeTbXRJl3LAh+e4qomq6sa 5TIspPrt8IxYKIvRoYCddepDT0iQriTZa3Cw641Z+FxNsGGVFL0waNQAp1qK7z3a2ulT ApG8irTTIXsO1rh7pZTlk1K4jGHe3lQd9X5TTibdgRa2qDzHuq8r7T68O7IXHVRYUZX4 nR29Il5RQapX0W0TwDNp1fg/UqJP6/duU/KFdXg0DAtl/GXpg6qnBleXvV/5I8WELF+W dUjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LFXGAQSKI37U8BE8fQ1iu7McLvXfQhvTDf0gLze6QF8=; b=HccQyBPEIfc1Qw6GE+1xgV31qOYT4Ni+U8wlvQB2A5mNyGxdAUZ+uaTHAf73Y/Jh0g 2x3fA89AEwJnJfDOyY4LD8VZL6vvPytLJTaYYw4Em4nDG0X66MxqBNnVjyvx5wjoN/YS Zz2WN3Da5Z/0fs5erJ+ZKliLKN+Ph6azJOsXK6NtvSvCjM+sm6DYYmcgRfzK3yLPec2X mIwtDfyM4KSjiz/PhEU4ncm8eWR1xGfSDsvUCID9u4/v4y91TwMZW1cG7bXxdGgR5rFs S9kLKAm6TxcFdo7gKwTa9bbrJizpX5/qANpr7RCaBpYJY5TysWRr3/6PAae6PWtr4jIk 3Wfw== X-Gm-Message-State: AO0yUKWcytqgn7NYBhd5XAkybHURNJhGMSEfjWXAufCnorGEED3AisGM smrq5JAJIVYZsKtDfW95RbBJpk8NF24= X-Google-Smtp-Source: AK7set/ONC0XLSWAqhVSPM+K42cHAYWExrs4X2bh+HW1dISlaZZgtgys+w721sRDsOc76EQGnA6WTw== X-Received: by 2002:a05:6402:1343:b0:4ac:dac1:3f91 with SMTP id y3-20020a056402134300b004acdac13f91mr7008884edw.18.1676570425375; Thu, 16 Feb 2023 10:00:25 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id v3-20020a50d083000000b004ab0e9e396bsm1200551edd.87.2023.02.16.10.00.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 10:00:25 -0800 (PST) Message-ID: Date: Thu, 16 Feb 2023 19:00:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Johan Jonker Subject: [PATCH v3 09/11] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure To: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, sjg@chromium.org Cc: philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, u-boot@lists.denx.de, yifeng.zhao@rock-chips.com References: <111b67cc-1ec6-14b2-31d4-d2261b8b7a03@gmail.com> Content-Language: en-US In-Reply-To: <111b67cc-1ec6-14b2-31d4-d2261b8b7a03@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Add flash_node to the rockchip_nfc driver chip structure in order to find the partitions in the add_mtd_partitions_of() function. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang Reviewed-by: Michael Trimarchi --- drivers/mtd/nand/raw/rockchip_nfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw/rockchip_nfc.c index ab13e52c..ca5e7313 100644 --- a/drivers/mtd/nand/raw/rockchip_nfc.c +++ b/drivers/mtd/nand/raw/rockchip_nfc.c @@ -934,6 +934,7 @@ static int rk_nfc_nand_chip_init(ofnode node, struct rk_nfc *nfc, int devnum) nand_set_controller_data(chip, nfc); + chip->flash_node = node; chip->chip_delay = NFC_RB_DELAY_US; chip->select_chip = rk_nfc_select_chip; chip->cmd_ctrl = rk_nfc_cmd; -- 2.20.1