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 2B197C6FD19 for ; Mon, 13 Mar 2023 00:29:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 967D286101; Mon, 13 Mar 2023 01:29:02 +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="ZF4ap5Vf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 96219860FD; Mon, 13 Mar 2023 01:29:00 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 D9B3786109 for ; Mon, 13 Mar 2023 01:28:54 +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-x536.google.com with SMTP id k10so42144039edk.13 for ; Sun, 12 Mar 2023 17:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678667334; 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=ZF4ap5VfFAHypkCUayLxXcpZQivV9Z7xl3n7AEsBRohamly3wReg41DFsxFIhm9fVu WiRH59gKvTDalHo19I4CQqnchEXyp+RbxLG+zsiMNE61RiE+sWMzBHrB42gJZFDrmh2x H7IdLwvCcq5W+oa14vSV31nQkmcUaxHYUKTIi+k3b6UnSM46opIVHHN9OgrKCUxBBEkd NfLW4clbRwDnx+ZKpb5kNVwJ8T+dHbu2JlUBBxiuC8cxXsoQx+tmaROXbgtEipZB+W0T R0dJGBP3TqJUf98ekC1D3qEvuprN5F862hNvNGx65AiAv5qnX4HHOBUIK81oKB29pIfn 6QDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678667334; 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=d27iXcPAqhU7RepBz7tUyeH68vpjvto5JEVNufopHrjM6kKexfnZMPee0qrorf44t3 /xMWV8dbkziZPOJaz9F8fpVGrv+VXd4mmPPutnE1CU+glGRKnGx1iC/3LBO5PGK2ZwGD z6gWsdklBFjpMA1IYZvZr/E/PzQhM7qwMuPw7SxCdbb00XSb99n3OoOxaVvRuAaoBIwh s9vrUaECQr5e33p2YzonVmgntKvxO8IZRE9wXd3jfgfr/06AeBTg3Z9tHgAzMS4imhtY 7U5Vn5QlBBrJCccvFW/WONPbHC7RDylaYRw3zoxVldcm8oZb3zfV2ckYSlglDGItR7TQ +e2g== X-Gm-Message-State: AO0yUKWUjRFdZgUBr5vHCop48s5lUuTZVT1PVm+1TLbt+rhii+IlNfqQ 7mRO3UDx4NvZpV3Wm6xEzMg= X-Google-Smtp-Source: AK7set9GKxFV1gcPFORxpxea1ftel3aosOl12RhZM9o8S+HEnh/dmqdNFulOTDNcxktYZqbbUBN/KA== X-Received: by 2002:a05:6402:419:b0:4af:70a5:560b with SMTP id q25-20020a056402041900b004af70a5560bmr9759564edv.9.1678667334496; Sun, 12 Mar 2023 17:28:54 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id hz11-20020a1709072ceb00b008e51a1fd7bfsm2787802ejc.172.2023.03.12.17.28.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Mar 2023 17:28:54 -0700 (PDT) Message-ID: <9de636bd-45bf-3f01-9c70-12e801fdcff1@gmail.com> Date: Mon, 13 Mar 2023 01:28:53 +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 v8 04/24] 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: Content-Language: en-US In-Reply-To: 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.8 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