Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3869579rwe; Mon, 17 Apr 2023 04:59:39 -0700 (PDT) X-Google-Smtp-Source: AKy350Y+wGAA+49bdTw5KlqhF69UPqSMUIvfINHmzDDpUVI009wlWz9nqSjfqJauyyxNQ95MoeX/ X-Received: by 2002:a05:6a20:72a0:b0:ee:b372:207b with SMTP id o32-20020a056a2072a000b000eeb372207bmr10572591pzk.54.1681732779313; Mon, 17 Apr 2023 04:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681732779; cv=none; d=google.com; s=arc-20160816; b=snYcGrQzQAMh+HdXaF6iyQu5osgAlToqRLJdRsWmPy0/eg91zzlBDQwnQ25HAlubt1 M2BCP1SY6TDRXCu3INH0w+SlINBtyt4FmYYd/JJ0KIw9Koiilr6V6qEJIPrj6jtmDP0N IGKGf2NyhUBluJtRjs/NZW856dEnhVBBdjQyVPGDoqHSWtC+t6Eh0OH+I+h6+DnnxZNl JmleusCypeGpw/idJsKMuB5RSCPZOUrmmYbq1jyCJYDm3HioUjXwheCvcEfXLZZeX0FW 6fV5j3qgAn1hwSavd1pSV1rgaTHpfLmDZeUVCEEQyW29y/D6L4I7Q5EFyBCbq/MG4KQg jStw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UFOQ7zl15XBdCKDP1PBa7gWSCuhGytq2kMbaG0PLdoc=; b=vkCMpATUPnsHqu9FC7GUmnl76wmMAyxPmbMmJswKjAJcSBNRobE2Knvsh8OM0d92eh eQmBbpgq11cbqBi+9W+P+Kc1prJxracQjXV9de2aivfRMKQp0+0PCg5wXCRqBjOCN6Ey d8GDQY5Mzzx3wzGLTnGgMVS9gbyrEdK3ZfywqRE7XD4twbrOAUWWtcUc4niKUtckCgrz cXcExdBf4DlM09auExXVdW17lxxdetUS0WpUxLfceHASAmOi0W7Ro5OHVi+BnxI04tkB ebmwhb/8FlnoZucs5exUBYJG6PWQW2ZGsnfo57T9qiXI8kT71QnxwAtaCkrdHiSs88je 5f8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=l3oCzl5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x190-20020a6386c7000000b004d3cdf2aae7si11222081pgd.789.2023.04.17.04.59.26; Mon, 17 Apr 2023 04:59:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=l3oCzl5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjDQLuP (ORCPT + 99 others); Mon, 17 Apr 2023 07:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbjDQLuO (ORCPT ); Mon, 17 Apr 2023 07:50:14 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF8B365AF; Mon, 17 Apr 2023 04:49:16 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 18A545FD28; Mon, 17 Apr 2023 14:47:41 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1681732061; bh=UFOQ7zl15XBdCKDP1PBa7gWSCuhGytq2kMbaG0PLdoc=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=l3oCzl5MJATaLtjposS07ZcWREmdW4Z4JqkdE5ALl7zbPpEgBtFlhtj8kWx6ooy7O IasWd1VK1kgPIueM2Od6VLJWmA7IvsvEaZ/z/AA8uMBCcJKV4ZpmYKXKmgdrXcSZaD /dLFxE4K784BXu0cOxqOU/CKULHj7FC48gpyuaYalocdi/HCjehD36QZ6qpYwzav+I WB9I9KJuZaNn4hYCCSR3gdqmg5vf4gEnCo0/muMQJo/mOupgs6RqQIXVYh7fPBfgjw b001/EpgNTtDPcUvqqppiw2o+bQLDrWf45kA7DyN3Wn39hy0cpO5EQ0Ijdf5DI9RPz 4w+nL9GaUb/Cw== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Mon, 17 Apr 2023 14:47:39 +0300 (MSK) Date: Mon, 17 Apr 2023 14:47:39 +0300 From: Dmitry Rokosov To: Martin Blumenstingl CC: , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v1 4/5] usb: dwc3-meson-g12a: support OTG switch Message-ID: <20230417114739.r7aoiodqybalbn4o@CAB-WSD-L081021> References: <20230414152423.19842-1-ddrokosov@sberdevices.ru> <20230414152423.19842-5-ddrokosov@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20220415 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/04/17 09:07:00 #21118574 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hello Martin, Thank you for quick review, appreciate it! Please find my comments below and in the other replies. On Sun, Apr 16, 2023 at 10:56:36PM +0200, Martin Blumenstingl wrote: > On Fri, Apr 14, 2023 at 5:24 PM Dmitry Rokosov wrote: > [...] > > static const struct dwc3_meson_g12a_drvdata a1_drvdata = { > > - .otg_switch_supported = false, > > + .otg_switch_supported = true, > it would be great if you could also follow up with a patch that > removes otg_switch_supported. > A1 was the only variant that needed it and after this patch it's just dead code. It makes sense. I thought about it before sending the first version, but I found a counter-argument: future SoCs may use this parameter. But if you ask, I will remove 'otg_switch_supported' in the next version -- Thank you, Dmitry