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 D8E05C6FA8E for ; Fri, 3 Mar 2023 00:13:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D78185CF6; Fri, 3 Mar 2023 01:12:59 +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="Wa1cdMOP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2650985CF6; Fri, 3 Mar 2023 01:12:57 +0100 (CET) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 B481485D07 for ; Fri, 3 Mar 2023 01:12:53 +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-x52f.google.com with SMTP id f13so3882648edz.6 for ; Thu, 02 Mar 2023 16:12:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677802373; 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=+6u0IHpiTXRwYGCSRQIfTnEGwrXO5VVo9eUmChoM3ig=; b=Wa1cdMOP5s84eg98bGPTnWwRnYvT5YIyINPvvq2MZ1uHd76qoqxhkI1ewLwAKdWnTM 26e19xgccbdeTxeL1La2OYmT2D6syLwrFS+AtnIJ1q1WgtJbqJ4bJ2qNXQchrBHoaXyy NWxhmWvUxCbfJhhwqy1775RR6zD+zejocZzqy92+QxKBt5fxiGb8+A79wh129RrtIq1T GylC1ZBRWu5avNohBHUaS+hLgZocfMhx0tpNt33dH07zMYstsmlmqezrcUiVAZSs+iCS EZ2KUQOWoRG0+8Leqkdy+zEzp6KPjK5sse78oW86XmZQI9oWLos79iP3iemkwowG4Bxg aoaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677802373; 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=+6u0IHpiTXRwYGCSRQIfTnEGwrXO5VVo9eUmChoM3ig=; b=Tj2xdZd9Bsvnp2T6C5JXXfXhkbYpQPcOSztDI8M92NCKk2du41TLzkmYhN7+O0QE+N POQO2RwBfCLV8POZcIBnaQcZSIAcl++yW8y/rf/JeIBGfbFJlvIWquLzZNdMgrDVlHXP uLTd8An1mw7qa17RBBBbzfWWp8so4pqmSGA1QPlCwJ9mLo971jNA1IbPgSKm6L6vLJiI AFbuhqemcfxm4dGBfziYMJliMTTVBAMT3Hy+8xz7snnFi4+uQyewvK5PveesoER8mRsz kndiE5sJIuMI+SREiXPGRThcmyYn6J6ypFIFaDMZOAi1qlTFsm5vYCdJQLfBSfKjjKth gk4g== X-Gm-Message-State: AO0yUKVgHKRVS6ez/C4DcVqSkDfkUOe5T03bbfSh/hyUIyGrlWWbhEGj DrmzTJ2hwp0jNKmm10LzJa0= X-Google-Smtp-Source: AK7set/8Z6z2vw8NnsIOJ9XZ5LwtkJTuiUUST5js+guh65qzma3fZMGC7j+RTl73U4lUr4M4PCxxpw== X-Received: by 2002:a17:906:69c7:b0:88d:9cf8:2dbb with SMTP id g7-20020a17090669c700b0088d9cf82dbbmr11165671ejs.12.1677802373301; Thu, 02 Mar 2023 16:12:53 -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 jy24-20020a170907763800b008d7a8083dffsm270265ejc.222.2023.03.02.16.12.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Mar 2023 16:12:53 -0800 (PST) Message-ID: Date: Fri, 3 Mar 2023 01:12:52 +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 v6 04/22] mtd: nand: raw: rockchip_nfc: add flash_node to chip structure To: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, yifeng.zhao@rock-chips.com References: <7256f237-4b7b-f7d7-834f-f7c3fb8984d7@gmail.com> Content-Language: en-US In-Reply-To: <7256f237-4b7b-f7d7-834f-f7c3fb8984d7@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 90cd86a2..25e04974 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