Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp222910lqg; Fri, 1 Mar 2024 03:23:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwYPDv6rfCCZZXj3VU0OZwzuH3AkDytVUFS9Yig6RTnN46CvU7jOv4Rqp3ABcq6E6ks1ev7+R1XTScTkstmad4ix8u5cpGLfmvohq5uw== X-Google-Smtp-Source: AGHT+IGJsK8iDo6tnivPPlbr0JS31XzPxqObljSMeT2UGcK0ALoUCg1iWVYgic5j1JfstblLh9bL X-Received: by 2002:a17:906:2c57:b0:a43:ff8c:6d9c with SMTP id f23-20020a1709062c5700b00a43ff8c6d9cmr1294062ejh.56.1709292209619; Fri, 01 Mar 2024 03:23:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709292209; cv=pass; d=google.com; s=arc-20160816; b=ymWtXOankLDcFmjqjM8uLMuIDD9ouYWuNzIF7gsigbLIV8RMwTJjCcgm1zaee9+r01 yvamSaImpKkOPAdeNj4Wt8WKv9HEIHXrkdRLzwF6DiAoEXE7x1V4a7B6dhEJ+C0m1/Le qtTeA+Mst+TD5bEoIHUAVH5TFG7TfYA1/QMJ831l1VvqZOMQVdLDtuVoihi6Lpmwszpm Yt7bpoWas1XM/w3Y2GI4+C3TPgdT1FLYH/k65MptoqKS81qmC3u5eYamrwpW/uBsHhYY FhCpsu926gvP37ubEk5KTxwws0fqMh5cY5GLwF/AG7/LVBrGcTb4eYMMgK39sHfl4oYh GlHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=MmyLlZLACzXedstzNE2lukPPmZJUKD1WOjRA8NqmTis=; fh=T2xoilUBfI9z30T89DFABuhcdjRxfR7Sp5E4P09Sob8=; b=GHhURXM2xAqv/aT8HlsDSLALle1KDbLYIy7tqE/9GQ7t/rDCz11xq0jNIGvtm+qDrf GIN1piTcv2HHiiphtQjd/nMPgB5x/JwdhG0yks+R386hLXPvTBZI0S4J35uWo4oi8oaj SVqeilGS2ZP3Ou1CtED5TH3cm3vUeq+2+04g9bev53Gsooveq8TQQJ7CL7LWt1r3LDWU K0MMvCRbBVllZAqRem2+c+gh4LJQOtZh4S7zrxZtw8xTWoZ4J6KDntIBDLTGHgJn4an4 XNnEtAhkCT1xAwz0kg8Z7Or9fzIxmMY592N9yRdmdmhesEX6iJHqHZdp7gPyxZoMTWTo J2bA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bK25Cl2s; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 a6-20020a1709066d4600b00a449f6e7ebcsi224767ejt.641.2024.03.01.03.23.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88331-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bK25Cl2s; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 586511F211D4 for ; Fri, 1 Mar 2024 11:23:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BDAA6BFA2; Fri, 1 Mar 2024 11:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bK25Cl2s" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 31E1A6BFC9; Fri, 1 Mar 2024 11:22:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709292137; cv=none; b=AkJ2Scn2c++GNzmmXITSgbLTiRNqky0Dqcn7ngBuH4uxafBNKJGLJrDFVI0BNCJWw119xi/h2cS7riwwzPCLKWlW/CjFNzKscIJC7GOYLPeqKFm1E0z6ZtuAP18NfuZIEaKghmkE608LGIfyyujk1zf9WCwKTQ64h0ex3iWQIdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709292137; c=relaxed/simple; bh=NXVBa7Fp4Tdl6hTdg8sQl4YDyiDbHC+b/d8yO36MsaQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=h/jHhIjTjHPW52ggMQzWaAj3XGnxuVObS4KMtJ7mebqqKBaszmSyhsPpV0bA9ZixD7pMF4Hu3UC0ijDA2KPdF6c58gOnyC5ipPTANHWSz1Lt3deqxeQ4ZfGpjbRQy9qJHLKTUDAgBlCM5eib/y/OQOD/E7MZ3lKT8HZP+I9y/9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bK25Cl2s; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88A1BC433F1; Fri, 1 Mar 2024 11:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709292136; bh=NXVBa7Fp4Tdl6hTdg8sQl4YDyiDbHC+b/d8yO36MsaQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=bK25Cl2sUuRoVzWih8tUNCpVVQNGmbHG0PVum15/L8x0pQjECYc4tEjp9AN5tjHYD sZ2H+yuZnGPgdGKUgNz0rnsibn28qZXh9pBuH8c6k/PepbBtZ/ViYXKuNdqLizARRo 2mvvUmjLzYc4RXnL2isBSjWVCG9gJ0Uudvb7SRhIGz2DG9BHaPlKBXxNnumDHC9RMj 7gvOWJfeec2S705pFqmA6Grhp/CBVVfFe8rUkr3/YiDR78wB7icDGePJst7xryReJx 6K2AiHVeSiRS3xqdIlurxTl159xIl+lBi8NSNtYQYrSIoWAct6Ko/TTnyu/aVmZwQC 1We7ZI3NQTGmQ== Message-ID: Date: Fri, 1 Mar 2024 13:22:12 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] memory: omap-gpmc: fixup wrongly hierarchy of the sub-devices To: "Brock.Zheng" , Tony Lindgren , Krzysztof Kozlowski , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org References: <6fftq2zlkpaf7xptyff6ky63cinr76ziyvdbm5jhj2apubr5vf@l4gvbdax3l2e> Content-Language: en-US From: Roger Quadros In-Reply-To: <6fftq2zlkpaf7xptyff6ky63cinr76ziyvdbm5jhj2apubr5vf@l4gvbdax3l2e> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Thanks for the patch but can you please re-send the patch in plain text format? Please refer to this article for more details. https://subspace.kernel.org/etiquette.html On 01/03/2024 01:52, Brock.Zheng wrote: > 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 is 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; -- cheers, -roger