Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp616510lqg; Fri, 1 Mar 2024 15:57:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXetEBVJbtyJzQXorls+eiRdjC9ytL+6C3/6irboFkba21QS+uIEZzkYheYQ0Pr3Qq6cl4Y5lO5uks0dPJe4YAIbCURIYqtlW7tCQfALQ== X-Google-Smtp-Source: AGHT+IEy4V23ydtU5YYa5AQTsI/ZKkqDNIA1ZsiV7Z94ge0eAJ4LUeyyAfOFWInCP1YuxNBddIub X-Received: by 2002:a05:6402:2267:b0:564:5764:a5d8 with SMTP id du7-20020a056402226700b005645764a5d8mr2234490edb.25.1709337471012; Fri, 01 Mar 2024 15:57:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709337471; cv=pass; d=google.com; s=arc-20160816; b=CjGZKtgLoUraCIWCgmWK3LzPCvOt1BmgL9Eyzy7Jia2Y01UkJqqueEUOp1NxHGqJUB 5BivOGUMiaMc7oz4eManqvXvfaoHayQToTfMSHWuwt+IyUv8ttajJxKfR0BzBVIVZ4rG 1qol3751Ve93QNm35mi/s/11s1bJUUma3q5fdxYpWOQH3/bSRGLVsYHKQKLJ5nbB1DE7 MzWXDAbISdax4/lFtQCCkDgkc9EmPCHjLkj/KQBZ+52ewCbSf4HAprb4+4u22I5XJU0W rK4usYFU/lgRWSdNqw7NW0kwbXm8bxO0Wtp5/I2hQWqMMhxGc0EdZKR2FqpOMdH+LYvF 4C4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :content-language:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=sidxwGNV6k1MiCFE0DqKmil7nqsa4D5jG/mOM9eRdv8=; fh=zyXDjohbf/l9kx++5upmTqgIHHzvy7/aodS6LqiAwPU=; b=QfMCINORwjpBFmZcNP78Ucl186kwC5ZAGK04Mti+evlepyYgSRu1cwpVTLSYw0tgTi c82f+qJTSAvMJ0buR5tYmFtjRK407mXxg1to+Xe5TJc3+ED6r488G7iwSKzKDz12U5WH DNqG+jXTockYZmHt7/QwHu6JW3uM8tZ7RcISyO5G2f7mc/zccGpwhrUhAe3v7xxBat2h n5z7r5EWvf/afUl3QXtVTnYIybxQsfHqrA7zx3TT6VVVmQgEGeVDusHVt+cjgfKrQXtt yshV5EfDwTuP7fiY9GRV+C4B/9vUJwP4Xy9MWZ4AhHNic9tdlU3OdZWi6zJjdPZyzaPI frmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=techyauld.com); spf=pass (google.com: domain of linux-kernel+bounces-89238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89238-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y1-20020a50e601000000b00566c8190affsi1055118edm.385.2024.03.01.15.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 15:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=techyauld.com); spf=pass (google.com: domain of linux-kernel+bounces-89238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89238-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BA9261F21EA0 for ; Fri, 1 Mar 2024 23:57:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CEB15F47D; Fri, 1 Mar 2024 23:57:42 +0000 (UTC) Received: from regular1-05.263.net (regular1-05.263.net [211.150.70.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E45525610; Fri, 1 Mar 2024 23:57:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.150.70.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709337461; cv=none; b=eQufeh2ba2nyJoRm7g4TgPqmQDTw408rcF8GhGYvk6WiI5fnMYSqNnUVhDgXyhaaIn1ZYWSkapdC43txs6+QWdFTUS92bYHs1FawPwa4knwsH2fybq4wQ3BICvWMp33UUHMMT2qENuz6GvPKlCJ2tYCzKZu7udbl5scbKdrXIgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709337461; c=relaxed/simple; bh=k2o/QV8UyXt9oT7L/NC/Nc82MzIZe4ycxiieEa2xQI0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dbtFw8Y7JB1Ornw3GpbHtCsTNulmYVODT5qyexNmPcJahL/OFcaOE8tO86gJkqKuTPrPxBI6fVums09kFeuVORWYwiDmqhKkL/Z8qFC9a3VzxgJMKYYdkeFydRsFcCgGOaCG0uPv19Ql0mwj7RwrYDb0blHYqxr3sV3qDmMfspI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=techyauld.com; spf=pass smtp.mailfrom=techyauld.com; arc=none smtp.client-ip=211.150.70.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=techyauld.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=techyauld.com Received: from localhost (unknown [192.168.167.70]) by regular1-05.263.net (Postfix) with ESMTP id 0F04C155B; Sat, 2 Mar 2024 07:57:29 +0800 (CST) X-MAIL-GRAY:0 X-MAIL-DELIVERY:1 X-ADDR-CHECKED4:1 X-SKE-CHECKED:1 X-ABS-CHECKED:1 X-ANTISPAM-LEVEL:2 Received: from localhost (unknown [118.193.106.122]) by smtp.263.net (postfix) whith ESMTP id P32683T140305418225408S1709337448143058_; Sat, 02 Mar 2024 07:57:28 +0800 (CST) X-IP-DOMAINF:1 X-RL-SENDER:yzheng@techyauld.com X-SENDER:yzheng@techyauld.com X-LOGIN-NAME:yzheng@techyauld.com X-FST-TO:rogerq@kernel.org X-RCPT-COUNT:7 X-LOCAL-RCPT-COUNT:1 X-MUTI-DOMAIN-COUNT:0 X-SENDER-IP:118.193.106.122 X-ATTACHMENT-NUM:0 X-UNIQUE-TAG:<307a65f41081e22e4aab4ed94088de0f> X-System-Flag:0 Date: Sat, 2 Mar 2024 07:57:27 +0800 From: Brock Zheng To: Roger Quadros Cc: Andreas Kemnade , Tony Lindgren , Krzysztof Kozlowski , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memory/omap-gpmc: fixup wrongly hierarchy of the sub-devices Message-ID: References: <6fftq2zlkpaf7xptyff6ky63cinr76ziyvdbm5jhj2apubr5vf@l4gvbdax3l2e> <20240301133809.0d26865e@aktux> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi, all Sorry for the wrong mail Content-Type. My Neomutt is not configured correctly. Updated info here: On TI-AM335x,my FPGA under GPMC local-bus can not work on 6.x kernel. GPMC <--> FPGA <--> sub-devices.... I found that the platform sub-devices are in wrongly organized hierarchy. The grandchildren are now under the GPMC device directly, not under it's father(FPGA). Signed-off-by: Brock.Zheng --- drivers/memory/omap-gpmc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 80d038884207..1f2568e43086 100644 --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c @@ -2175,6 +2175,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, int ret, cs; u32 val; struct gpmc_device *gpmc = platform_get_drvdata(pdev); + struct platform_device *child_pdev = NULL; if (of_property_read_u32(child, "reg", &cs) < 0) { dev_err(&pdev->dev, "%pOF has no 'reg' property\n", @@ -2330,11 +2331,12 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, no_timings: /* create platform device, NULL on error or when disabled */ - if (!of_platform_device_create(child, NULL, &pdev->dev)) + child_pdev = of_platform_device_create(child, NULL, &pdev->dev); + if (!child_pdev) goto err_child_fail; /* create children and other common bus children */ - if (of_platform_default_populate(child, NULL, &pdev->dev)) + if (of_platform_default_populate(child, NULL, &child_pdev->dev)) goto err_child_fail; return 0; -- 2.44.0