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 E76DBC6FA99 for ; Fri, 10 Mar 2023 16:41:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3650985F3E; Fri, 10 Mar 2023 17:41:12 +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="nXZ2JDOe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0EEB85F2D; Fri, 10 Mar 2023 17:41:09 +0100 (CET) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 02D2C85F22 for ; Fri, 10 Mar 2023 17:41:04 +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-x531.google.com with SMTP id cy23so22748079edb.12 for ; Fri, 10 Mar 2023 08:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678466464; 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=nXZ2JDOeXoMbV6PNN3zZy2N8x4vyqzgheLZNITIXDABkcbiP09zLfT3yheJgJ6iHOV lErEIK0V9ad3PCRxhJZ3kB5HZUsGiEIwDTqC67sRlMUv1pGeGPSBxgaUX6H1Afxuyc/k bFlVmBxeM/P/O5aeNRX++6z8mejr0NTE2xrIJwOLOW/uGkJvIHRxVGzs1WnxTXThmzMC Er0Saq8WNWmFJVi3SI7prr9cemvkwgRnAg54EIobRgJp5Libxsv2Ep7vGnquTJLXc/NV 3s7WPHh3O3ybkdV5k0NzVL+1xl1JknU4U3nGyaqlNFhT+j6yg3PqEM+apxwk3dXvGH0D LNGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678466464; 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=jiEA4JfZRtN6H/w0Wn6oTrv0F59BU9apLorS+uesnie4kcEFg+yKwifXSqmwpPMf/N OuVD9Cdj2iHsvK4NbMOvhpSZE8h1q1QjAvuPGrMX01Rwrz6n7d22yvwfIoPo+tmGPt6i +f+RAVRIhvNodYOsQsg8qFoaZuMLvapUOoT9y92QPQ9DA3dUPWwHe+32CHiNVMI6Ph1I jS//d8h1E5q1P+C/P6BzwtKmFz8QmjFlhPaRE1NafisXools0039EvmA2sGAc/qXtMum B3GgIp4V9wwSjrVtG9IEVXKs+CqN9IJy9W0HzE3vSbMllyISFuy06DQgn7W7wCF+0LX6 t5Cg== X-Gm-Message-State: AO0yUKX72cvaq+fd9DcVrFu2DoDhQpikIcsFInpmAX4cZtAyydqKVp+T nK4sL9Ybz0l5dIyAAZl9PBE= X-Google-Smtp-Source: AK7set+Keygr3zLX0RiNg7NB5DiDHR8h6NP6tZdPmYlgnaXGOfDo3rjIHk0UJjFlFFDKDtOq7yGJXw== X-Received: by 2002:a05:6402:1291:b0:4ac:b32e:b65 with SMTP id w17-20020a056402129100b004acb32e0b65mr24584232edv.3.1678466464570; Fri, 10 Mar 2023 08:41:04 -0800 (PST) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b22-20020a50ccd6000000b004eb16b75b93sm219468edj.49.2023.03.10.08.41.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 08:41:04 -0800 (PST) Message-ID: Date: Fri, 10 Mar 2023 17:41:03 +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 v7 04/23] 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: <4caa17bc-6d32-5b07-68f3-f5ced40bfcbb@gmail.com> Content-Language: en-US In-Reply-To: <4caa17bc-6d32-5b07-68f3-f5ced40bfcbb@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.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