Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp526176lqi; Thu, 7 Mar 2024 04:39:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWF37kc8pHV64TucpEwBc5assJJ7ILTAaLs66UysL+B7Tnb2r4ZU3Oia5wKY6SsdDHd+iRZ+nSJNqvn6a/j31263mdWOGb9uJXXdbZRvg== X-Google-Smtp-Source: AGHT+IFLEgcQSjUgg5JdVjQwiO1vETUBeGgK9tWYUtC9zPrpAvWS/7g6ijsehTT379JKG8B3L28r X-Received: by 2002:a17:906:6cf:b0:a45:bc57:5379 with SMTP id v15-20020a17090606cf00b00a45bc575379mr3302976ejb.71.1709815143825; Thu, 07 Mar 2024 04:39:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709815143; cv=pass; d=google.com; s=arc-20160816; b=M8UjXL06Nx8a8vU2adpWhbkNx7ktqe9nXnb1BNytmloXtl4TZoD9dk64vgqht4VqW/ LqY483FT8GlMv+auy0MRahYI18LT3pG/LNCPJoghnxeKMx4lk9gQ5pfbMQmKAGpI9A2Z SJhfYkFelG0yiUVFhXIjpVYBfUSdlWHgAl/GH/GNuMenr9IeU2lE8Bu+hTT7uKPsfq3y vEkFuNP1ZWmRrNB8KkGRoMRI/kvqK4wHqtjk+e5bfGWsfHcy7xlxqbiTyAc6pAq/6sfR X+53/wefFE9l6Mw2D+vLihhgaklxplKuKGGYJyv/ok2Y0AxX6yx6/CO2SC37l94ixbVK qhhg== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=0ZLGJUuRSu0F3pA+O7j2kn8oCvmzdkNHDXbthHYYHwY=; fh=yh51UpersxORvMuhpBjLTcDV7JpssZwcCAmXMkMLQuA=; b=H7EFnkHBR3IHwiKKH/0HMLD61AClJeYbr79OldExpf5zesQaZ+2n80lYiA5B60HVl4 t59XDdCcx7tO2+P/Jn4tWrfc2n6oR47mJcsJ8uZ5tEPws81VuoA4Zl/VI6Vof9GdDxlb HzT7rytZxtwv33/ioflSRzWLtMDQc0/FS+HK6Zvkh+YwtsIWn7AE2k8HmpPNzdY7kFDq 95onoh1Z/XhEdoc2Mv5LT7Ut9SeVoQHNL/8leA7c90vcAAww5JLgo0z7JMZtHBoJ5ISH SM9SSQrSsozwR2PVhAqTi/thZ0wFhxvFe3K+sUYsOLHg8ow+Lr28IJST3dz4UosXpLid 7j1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QGr/UAip"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95545-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h23-20020a1709062dd700b00a41db310911si6751568eji.729.2024.03.07.04.39.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 04:39:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="QGr/UAip"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95545-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95545-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 8D13F1F222D1 for ; Thu, 7 Mar 2024 12:39:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10A4B12BF3A; Thu, 7 Mar 2024 12:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QGr/UAip" 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 2C56B12BF11; Thu, 7 Mar 2024 12:38:44 +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=1709815125; cv=none; b=NcV77b09193P+UXmzpHLDv1cNB0O52seuQY7da8C7DZohF4LCgPv3hbmQl601Uw4rV7NVvd0lgmx6LLRltO3IZzf4vfQzwf3rEs8cxSvS+2aIh/g8TZ4Tg/VQ+s23g51297nu5aQRFW6HKA2YBI08nkwZk87lSBpJ0TKSK5aPd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709815125; c=relaxed/simple; bh=F+017n9B7NfetYykURBMitm53Dt/nbKvyxwK1iWVCh4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jgWOsl69ybu9+cbFHh8hfy2FFarhoXFkGjGQjhyBrYeVIdHCnQIzMdlYZdY+D73Jm1FBit54c+MbmBdNa0wfqpw85uTjgzBnpcYr+lgIzDhP4dto+Wvct4Vy3gnew633RM81RfDdX7tlruoElQkGcW+xp1HPq61Jestwo875/qk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QGr/UAip; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB16EC43390; Thu, 7 Mar 2024 12:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709815124; bh=F+017n9B7NfetYykURBMitm53Dt/nbKvyxwK1iWVCh4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QGr/UAipPL9hRG7YlXhccjACz/IAUzkKLO4yTNHUo1Bex3q1xN/56azgRPvIKhCPk ikByu0vjE9989eRpzNO/RaWEuXuAMWqqjLJ/iz8vv0quSnCB6Wzt2mK1iCqH4BvUob 17/82OrsjRIhz2AeC/IZyElXmFC1DdKJCA9ym8jQKA/kbv/aeObuMKSj4kmUToV868 RaLMny1Ks3BbCleotgnBg2IL+DUcsLbw0XGDPZX77I6jeMpqfjrgf3gG1vPXG/ZGI7 cVDjc3nNescefnfoZviAXWyzpyqzHl3FyIiDx6p7PNk6PqMoNWYGjxI9xihlkulADr G002ZaCvhUGjQ== Message-ID: Date: Thu, 7 Mar 2024 14:38:38 +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 v4 5/9] usb: cdns3-ti: pass auxdata from match data to of_platform_populate() Content-Language: en-US To: =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Chen , Pawel Laszczak , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: Thomas Petazzoni , =?UTF-8?Q?Gr=C3=A9gory_Clement?= , Kevin Hilman , Alan Stern , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20240307-j7200-usb-suspend-v4-0-5ec7615431f3@bootlin.com> <20240307-j7200-usb-suspend-v4-5-5ec7615431f3@bootlin.com> From: Roger Quadros In-Reply-To: <20240307-j7200-usb-suspend-v4-5-5ec7615431f3@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 07/03/2024 11:55, Théo Lebrun wrote: > Allow compatible to pick auxdata given to child platform devices. > > No compatible exploits this functionality, just yet. > This patch could be merged with Patch 7 so we know exactly how auxdata is used? > Signed-off-by: Théo Lebrun > --- > drivers/usb/cdns3/cdns3-ti.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c > index f76327566798..29fb24c811b3 100644 > --- a/drivers/usb/cdns3/cdns3-ti.c > +++ b/drivers/usb/cdns3/cdns3-ti.c > @@ -62,7 +62,8 @@ struct cdns_ti { > }; > > struct cdns_ti_match_data { > - bool reset_on_resume; > + bool reset_on_resume; > + const struct of_dev_auxdata *auxdata; > }; > > static const int cdns_ti_rate_table[] = { /* in KHZ */ > @@ -95,6 +96,7 @@ static int cdns_ti_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > struct device_node *node = pdev->dev.of_node; > + const struct of_dev_auxdata *auxdata = NULL; > struct cdns_ti *data; > unsigned long rate; > int error, i; > @@ -149,7 +151,9 @@ static int cdns_ti_probe(struct platform_device *pdev) > goto err; > } > > - error = of_platform_populate(node, NULL, NULL, dev); > + if (data->match_data) > + auxdata = data->match_data->auxdata; > + error = of_platform_populate(node, NULL, auxdata, dev); > if (error) { > dev_err(dev, "failed to create children: %d\n", error); > goto err; > -- cheers, -roger