Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp522969rdf; Tue, 21 Nov 2023 08:49:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHBUM0AozlY2fkkKcrzOM2Fwu3ziqEB7b/yIMFtgVX3/PD7d1N6FgY2rsIM6vbr3tcYO3z X-Received: by 2002:a05:6a00:399e:b0:6b7:18c1:c09a with SMTP id fi30-20020a056a00399e00b006b718c1c09amr8970080pfb.5.1700585346983; Tue, 21 Nov 2023 08:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700585346; cv=none; d=google.com; s=arc-20160816; b=CiDIfeh6q16k7pL3Ew3nrCkSzzOaOjkCawj1HGEY6PoBCwoHRa3TAMytt4i2PRMuK5 4uY6C2RAh4uRJytCKbBR+shF7mrAdRpMvfz0+TeLebpgwo4cGpterN8frKCsoY2/xaA3 xd8CAIE6ROX1qUWeEGRTxiTyI08RQOA7wtzyPERC3CNMcQ2i4qxnFi6fgk/kGkTOor76 knBgn88SEeCpyeTE1blVLVWs1JTZA8r+zpJ9tDqh6zqGwti0uYW6RqUPIOAGtPJ/ee34 h1iR1QJul5Uxb4F6BRItr/hOFrvH2cTlpc6PxkakpocZu4smF3qjqXNCeLa81Qm+v5NM k0iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:cc:subject:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=kwcznJ/vPm0Lhw3csLKCSrYXPx6N2BEOWXzBNGHl0I4=; fh=qooMyzKULm5Vl0AumnFFov7iF5MjKQgD+B5RbgVpoCU=; b=GiyXHiwmo9ikTyMWrD5jCaWD6ppNxNOoqbYKIvW1l1E0kyEh3uL8Ov1vESN3QXyfgB 4JTenh3w6sv9afKrqLt6BHeZvj7PXqo7Djc6vI/OhZEfgs9jgeMAFgMtpG7ijorBOHv9 MYQtvTNmBN5eqCRLuqRKp9xNmn/gwLXxiD5TSbYfH7bi/ZJFfoXmTC1Ot1cwb5WcFo9M Ex8Y7vqUa9DcowOMpqiTE7z2y9Z8mccYVG6YPyTrCXxv4QvHEqAebgWTjExHvzHcqJUt zbI3+2Ox9YWF8rtGQzD6wat577aC5cNa2zt8FiyrikEyn77CgK4CFVADOx35RpwE6XrD ogCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O3iE6ZPm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id e20-20020a63f554000000b005c1cd1e03d9si10462663pgk.112.2023.11.21.08.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:49:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O3iE6ZPm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 55506802E884; Tue, 21 Nov 2023 08:49:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230508AbjKUQsr (ORCPT + 99 others); Tue, 21 Nov 2023 11:48:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbjKUQsp (ORCPT ); Tue, 21 Nov 2023 11:48:45 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48B34100; Tue, 21 Nov 2023 08:48:41 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id BC225FF813; Tue, 21 Nov 2023 16:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700585319; 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=kwcznJ/vPm0Lhw3csLKCSrYXPx6N2BEOWXzBNGHl0I4=; b=O3iE6ZPmaJ2IpxNqOoT0BjRwsjcxXbZ5NbZpO+2SeAMwF+upyoqld23ZXBSeKAeoKh5y9j 0xaldUXNvRdZIB7ZqCfS3DTGL3uHOhIg0AXTSgWVZXIyEk846QIDFFI0DhKWl9uCCoyDFM a85kWPb7JpptfNaA9slX5xKeMwite5+GaLwXkbkZD62ZPMYxLX0+V7k60Pgm3IE6amys2q TqPB2sk4g0NjzDPv4Y8+t5VSVNu7RNbUO/wFHZwT7tMnBz/JDGbGu5qB1lDFQgHb6qmKVk J63PaP2/SVU/FQdcLTB5Zspn8gKA7FMiccQjpTxmBS2sFHaihX/uXOHI8si+0w== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 21 Nov 2023 17:48:37 +0100 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v2 4/7] usb: cdns3-ti: add suspend/resume procedures for J7200 Cc: , , , , =?utf-8?q?Gr=C3=A9gory_Clement?= To: "Krzysztof Kozlowski" , "Greg Kroah-Hartman" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Roger Quadros" , "Peter Chen" , "Pawel Laszczak" , "Nishanth Menon" , "Vignesh Raghavendra" , "Tero Kristo" X-Mailer: aerc 0.15.2 References: <20231120-j7200-usb-suspend-v2-0-038c7e4a3df4@bootlin.com> <20231120-j7200-usb-suspend-v2-4-038c7e4a3df4@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:49:02 -0800 (PST) Hello Krzysztof, On Mon Nov 20, 2023 at 6:31 PM CET, Krzysztof Kozlowski wrote: > On 20/11/2023 18:06, Th=C3=A9o Lebrun wrote: [...] > > --- a/drivers/usb/cdns3/cdns3-ti.c > > +++ b/drivers/usb/cdns3/cdns3-ti.c > > static const int cdns_ti_rate_table[] =3D { /* in KHZ */ > > @@ -172,6 +173,7 @@ static int cdns_ti_probe(struct platform_device *pd= ev) > > data->usb2_refclk_rate_code =3D i; > > data->vbus_divider =3D device_property_read_bool(dev, "ti,vbus-divide= r"); > > data->usb2_only =3D device_property_read_bool(dev, "ti,usb2-only"); > > + data->reset_on_resume =3D of_device_is_compatible(node, "ti,j7200-usb= "); > > No, use driver data for this. Don't put compatibles in the code. It > makes it unmanageable soon. Fixed for next revision. I hesitated on this patch but I'll know for next time. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com