Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp716444pxm; Fri, 25 Feb 2022 18:08:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPgcht8mCLEp8hSyOwFkBiIEtcCRVIOfzcto+3gnJH5Dslx/xggequU3l+ch8cTVV7LGET X-Received: by 2002:a17:902:ecce:b0:14f:c714:47d4 with SMTP id a14-20020a170902ecce00b0014fc71447d4mr10216010plh.148.1645841337721; Fri, 25 Feb 2022 18:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645841337; cv=none; d=google.com; s=arc-20160816; b=HDaINKAqNvwCDcXe4X4v1XJaHtZHLuA1UMt9rvav5cp1hzeAAsCMU0x2x4eGlWhgnI vzGuNx42lMiK3XcNL8R8yD6f1kQV1r+W9WVubEais3oe1iqszaDRrNbtnBxZUihW5j34 hykNfJ75scac5P4lDguzULumHHy1G4InCwEbI5433yV6IGvXIBpJCM4yyWk5u8fEqo2/ yWjsqJeMXWOG8hYVsmFIDDwL9KDbNvXOj/c5OP7Rn1d6Xt+ESISwm1g+yapRnIUG3aHH 8725OzqS2U9WDhNzsXhL3utnbYpcMfbq/w1LPaKJwImCJgKXeOTqjK+wyQtPKXL+1pCO m07Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ARW/8wYeL9NnYtTyW8vKBNuProdpU0uaVTh1REnUsFc=; b=hsVtPitqx+ID2LOjAh6616tr3V6msMP+8wduB3GYMw5RmxnvS7f6+nNLC9fMjs7pp/ 2Esi50Kxi3JneZpWaMpR85CWlufgaIVRrojs6xMkxsWRcbabtRQ/fOTA3cbRAqmRx6Lu MOTK6uxdmH6hlMhurw6n4/hEAYkh7J7Gm3r7PLtppC+LJ5BnGQ71YV+skGCaqvrJOBm7 nmpmqQKp1QDFkqf4GsHuZ3CI/fY9YU3vD9E9VXqS4vyfrck60Hu8FChCRiXsizjhBrN1 fc+gP4RNE8zOUxoihYYPTk6EZq6SFdR/K59Inda6Jtp99/yoeo4STP2HlWKPcj5+XXBq emvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="TH8gobN/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y22-20020a63fa16000000b0034ce48f0bdasi3227953pgh.319.2022.02.25.18.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:08:57 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="TH8gobN/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ECC002B1CA3; Fri, 25 Feb 2022 17:47:00 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbiBYR41 (ORCPT + 99 others); Fri, 25 Feb 2022 12:56:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbiBYR4Z (ORCPT ); Fri, 25 Feb 2022 12:56:25 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53F642399EF; Fri, 25 Feb 2022 09:55:53 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-2d646fffcc2so42093377b3.4; Fri, 25 Feb 2022 09:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ARW/8wYeL9NnYtTyW8vKBNuProdpU0uaVTh1REnUsFc=; b=TH8gobN/Ow5yp88DQxDjRnsCJHmspygnFoJ7ZIuN9mXyLXdDm0/SmrjDJgsp6dN6cT z/AcU9klYwdX1O2WF5a8muV28NrFLUnB9oNepAv61ZoMEdy+i9cHGMufQ4NNkWAWpzoG SRVWmfSe3vVhtOlm3z2+O5BUkcu/+nlXXU9Mqp4n6df4b2xw0TURloaFDZa8FawY+m5u Cdds1HoH+OCPvDGIg6zXzyedh20/b3Wcmtr4LP8yRYx+A59WTZ6omENs+VlL5Iciv1Jr BWZ55d9iaBF5YsUz6ofxNSAUWcHa4zz9CzoEwXX08cPeYhpsMoSeAlG+GYFVoLLOBIDK XI5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ARW/8wYeL9NnYtTyW8vKBNuProdpU0uaVTh1REnUsFc=; b=0eI8V83zabx6YAJ4mf5o+66aajMDutsJZ89dxgIqilXxVGCsvNhtV+S3D8E74e+xRz gsJ0DvuDQS7eLDEJfAnAPmTSvFyQMTTTWam2Hsqvof6Dg+4MqHjv4XQyJV3uhcO2bwl1 r7s8eMZR6dRLutwtgJXtgKiZCqXdOHK5PjnUSManPJgLzniV7KxkBb6pUniqT4Wj2G/v WkdDKx+c013lAEG6O5+o/SbehWBH8GkNHX+N4ueevRbcY5ueafNzw6tfm71MNdbMRO2L VL7Hb7YI059EhLhKtE1N1oDiipgU/HlfHpcVuNiEXWozwVH43kIn2QitXl2W/kjJUbFe 3Tsw== X-Gm-Message-State: AOAM532BC0Daok5N48vJ/o973Dq76H1CtVprz8M4rtN2594LFtV46AQR k+UhMX/IzJzojroD3o/xzp+suw83yFonqtxh0oQ= X-Received: by 2002:a81:1613:0:b0:2d7:c68f:bf21 with SMTP id 19-20020a811613000000b002d7c68fbf21mr8804810yww.414.1645811752158; Fri, 25 Feb 2022 09:55:52 -0800 (PST) MIME-Version: 1.0 References: <20220225145432.422130-1-pgwipeout@gmail.com> <20220225145432.422130-7-pgwipeout@gmail.com> <76abe7a9-4e75-b91d-8428-a4df1f6d97b1@wolfvision.net> In-Reply-To: <76abe7a9-4e75-b91d-8428-a4df1f6d97b1@wolfvision.net> From: Peter Geis Date: Fri, 25 Feb 2022 12:55:41 -0500 Message-ID: Subject: Re: [PATCH v1 6/8] usb: dwc3: add rk3568 dwc3 support To: Michael Riesch Cc: Felipe Balbi , Greg Kroah-Hartman , Heiko Stuebner , linux-usb@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 25, 2022 at 12:08 PM Michael Riesch wrote: > > Hi Peter, > > On 2/25/22 15:54, Peter Geis wrote: > > The rk3568 dwc3 controller is backwards compatible with the rk3399 dwc3 > > controller. > > Add support for it to the dwc3-of-simple driver. > > > > Signed-off-by: Peter Geis > > --- > > drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c > > index 9dc6295df6b1..1d52a261af55 100644 > > --- a/drivers/usb/dwc3/dwc3-of-simple.c > > +++ b/drivers/usb/dwc3/dwc3-of-simple.c > > @@ -49,7 +49,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) > > * Some controllers need to toggle the usb3-otg reset before trying to > > * initialize the PHY, otherwise the PHY times out. > > */ > > - if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) > > + if (of_device_is_compatible(np, "rockchip,rk3399-dwc3") | > > + of_device_is_compatible(np, "rockchip,rk3568-dwc3")) > > simple->need_reset = true; > > Maybe read this value out the match data... This is a good idea, thanks! > > > simple->resets = of_reset_control_array_get(np, false, true, > > @@ -176,6 +177,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { > > { .compatible = "hisilicon,hi3670-dwc3" }, > > { .compatible = "intel,keembay-dwc3" }, > > { .compatible = "rockchip,rk3399-dwc3" }, > > + { .compatible = "rockchip,rk3568-dwc3" }, > > ... so all future variants that are compatible to the rk3399 can share it? > > Best regards, > Michael > > > { .compatible = "sprd,sc9860-dwc3" }, > > { /* Sentinel */ } > > };