Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp945567rbd; Fri, 23 Feb 2024 08:16:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXlG+1SM/1dDss2D7NhHE6DaVrRtlv8PJzEKjsmasPkxezu9KzJkOu3DkWyu9/jg6hZHAhtGT3SzTYmf9sDEQX0TxbV7B51aaU9UTBKyQ== X-Google-Smtp-Source: AGHT+IHsb8JJDcSauKUVPY1siIoNIGdIozjipi1bDPT8QZWLZ3I1+NsC8bdytdfwMxjM3/+lyJrE X-Received: by 2002:ac2:4a74:0:b0:512:c1ba:9115 with SMTP id q20-20020ac24a74000000b00512c1ba9115mr155562lfp.57.1708705005841; Fri, 23 Feb 2024 08:16:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705005; cv=pass; d=google.com; s=arc-20160816; b=vqOpRFM0bCw9ABT9mPZMR4At4TmpI086S52NNI3t1MyNcyeHTrYdto5clDzDjvIo+c cX9zZt+4uowOErVUztTD6I3JNb/DsTfh9GE4aRFj47dXoTmbWZmC6eYCWQH+FyTYfpE3 eq8dhzlqIsYt4rRtgijUuQ8/h4ABNAZgrjIXDfXkJl7Zldi4j5Wzfn/y0LAWjDsSicqb eoun9BMe3YP/3rTKuiM/tBIWXBYAkxHHtkCR79rq4hq2vGaYYOxqomiM/xT4lG9PSa82 kA7Fsc2EOu5UJao3iwNk/OP6kCkyBYvbE+Cno7rTgiHOzejAm9sPpNu6CLzaTSALoDu7 dA/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=gQ4y/VEIeiumEnjB4J+Uqc13LinCxq5gzHE+LkRNKeM=; fh=ETrV/TJQ0D54aecHJ7+ZWHft2hV1Bw4fCfbLWnN7i4U=; b=TOnLmStjyb2lt/1PffA7gozI5XbOcVWhEhJkuk6AbNXfXVONEH3EYGTt566l90QcL6 J6c9au5oCu6GTuLKbgg2V6XdOVystraK7nAVJYjzqK2Qg21q5oyL68mXyhBi82tiWj5z LJP0UWtNaKWfl9OOKdubPQW4c/6YofLDCgYrw1eMcJ6BWtcCXnGtWNEZdPwFjeijH7RH 4AeC0ua2iS7rR/M5XONt+GUSBXOg346L5P7QDzs77lrlWPh30yiymhvSA2272m3R+nW7 oNFnSuifgvZzvhAHQUn1q1QH/z1oYQA8N+88uiiDNdNzn6xOoWG44mdWKr1aGyv6x5pZ 9rug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="mLuKiL/Y"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-78669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d13-20020a170906040d00b00a3d42dafba0si6174954eja.1052.2024.02.23.08.16.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78669-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=@bootlin.com header.s=gm1 header.b="mLuKiL/Y"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-78669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 889B61F26E92 for ; Fri, 23 Feb 2024 16:06:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 132E282C94; Fri, 23 Feb 2024 16:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="mLuKiL/Y" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 051CA84FB1; Fri, 23 Feb 2024 16:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708704339; cv=none; b=hz56/IvNGiOdk3rHrCxkarANnTFxQzQZBRCOkSby1HgUaWiAQ/Ic5QcK7/k0qQuhvywUED4Gi+1fs/OvRguLIujuWWkAoLO38oLMKm7lrLH/XO9pvrKTC1td3GwI16QT7xwyQAC0rvnCzCduKk5jVUw+HD8aRi4gbb83Q5bQwG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708704339; c=relaxed/simple; bh=rpv4qi5Z6eTUa2IMqz85N1MvbMDX7qjpFaTwD8sTp3E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RkfudhE4mnNutvdnsZ82D5ihK9CgG0CDlSlCH09y8qJaaTXIbgtZv/olbEUfoZokBkQedweW7fwOQMhAl5IceXV8wnP8ykHVYk01xyzvVzt0xHbDEcXmt+Sk5gXGbUpt99l/inIuyxSmeWX+OdrxROGg7SQLbbjqsd5wKxHUuZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=mLuKiL/Y; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 820951C0002; Fri, 23 Feb 2024 16:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708704335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gQ4y/VEIeiumEnjB4J+Uqc13LinCxq5gzHE+LkRNKeM=; b=mLuKiL/YjpInWAvicL9rw00uFm5cJOy0efmORr8oL2qc7i+CLbyBhQtE8gjJ0hsZDsAUhc aQL1K+k/N+D1RNfQbCsstk+mXxrRlmBdtSSL6oX+Mq3YKU03m6MCGeGLVBh0/DuETcHxYd 2x/y9k1XwUBNp/OOKksMsiMc22SubR0orf6rEN2FNv1+aU5XPQFUFhDOG5aYaqs0TPM2+b 0yufs8EcgQ2wyo9kPAUyetqeYnxhKUUxyH0DtCnvHrW8yS7oaIEVYN+O8GFeIdyayp0lKS qZRUS3607Gkw3hSqhYTjWvtc5JgQ+d1PucmK1lQQTHSU8ZpCOq7mK8iz6Jn5jw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Fri, 23 Feb 2024 17:05:29 +0100 Subject: [PATCH v3 5/8] usb: cdns3-ti: pass auxdata from match data to of_platform_populate() 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-Transfer-Encoding: 8bit Message-Id: <20240223-j7200-usb-suspend-v3-5-b41c9893a130@bootlin.com> References: <20240223-j7200-usb-suspend-v3-0-b41c9893a130@bootlin.com> In-Reply-To: <20240223-j7200-usb-suspend-v3-0-b41c9893a130@bootlin.com> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Roger Quadros , 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, =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com Allow compatible to pick auxdata given to child platform devices. No compatible exploits this functionality, just yet. 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; -- 2.43.2