Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp856955rwb; Tue, 27 Sep 2022 05:40:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WO60KF1Jt/H6GlCAvTHn8wpgCMGjMKtyI1l/uN1tWc5irHYfS0YgHPX/jY/ttfSALmKpS X-Received: by 2002:a05:6402:34c2:b0:44f:322f:f0de with SMTP id w2-20020a05640234c200b0044f322ff0demr27915615edc.297.1664282414377; Tue, 27 Sep 2022 05:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664282414; cv=none; d=google.com; s=arc-20160816; b=YGjU+zImD5nlITPScvu1BFlzCZFoIdScbuNz3DwzMs7NyR/NOVKOZSgEJlxNMzuYxl 0tdkEc17Fd6CAOdl3HSpcNM1reCkJvQav7LuGQVigP5O62VFeASHZdaR8vhkw5IflaJL eB0sPO1JdnYojtDQAmbHdUBIMkGSQbZEBgPUnqW15JgIWGGHsGxLXIUppupx7C0ZWlJZ BVA2TK81El+CxrR2yeHplXvph/aMAg/8sNKeBZ6dQf25AOEdxMUYk8bTyZ6y2h2S3fy+ kDf2YyD6h+pBmVS1e4G+n88ZfPsLpVjBtLgRfYmaOGC/oDmBLPbaGQgAauvvSAIIPAIj c0ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rMW2nEoy/Snt97sxXX+K1Hti/ojsKYBKE/GHYt03i/c=; b=NQJCWb3f7hRVmDbRa8Jo7+skFTGO03RRN9NJbDcxFXmZr8LtMRt+/T76pc2iqh5SbW zJUEt8qzKsYEbTqgZIKkKbgLkaW8VNvi4PATzDSjckbz4X2nu3vKoB9sNT4iF/DjFRmk rgWJw4I7RejkGT5SIa7DerqEi/bgb8J3ajCqIkSLlHDy6nJ+dkByS17fJnYUA/sEUHKH 0vGGyIIHDVrVYVDe8R2/TI3flKWSUa/3pz3ZCkUOsDl+sV1dkDU5ZRvDhkGHwDTOxIUA 6VDcUkNHNB9znF/l9lUTHI476Ya38h9LPA/pHYVMcYXndnEoWKSyYC4Iacy9zWf2GhG3 fE3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ut1Blr3b; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he40-20020a1709073da800b0076f077cec04si1459543ejc.365.2022.09.27.05.39.48; Tue, 27 Sep 2022 05:40:14 -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=@intel.com header.s=Intel header.b=Ut1Blr3b; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232079AbiI0MWb (ORCPT + 99 others); Tue, 27 Sep 2022 08:22:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbiI0MWG (ORCPT ); Tue, 27 Sep 2022 08:22:06 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD8A85725A; Tue, 27 Sep 2022 05:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664281310; x=1695817310; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XpkDDEEchrcj3F5SD5RBgWCP709u3VmyVEynWHWmfZE=; b=Ut1Blr3b8nJp5q9DiiV17rKU+3B1SphfJIahvWX4W5622+57RDgaRTQA UCbRG7gv5oc0/XjhbxUyznya5HqMKQoq/kv5y39TtUfu5HyCIhxm6bA8g vNlgB1LTIif45EDmptfaFzGJnACePMNTu+MB/kqg7cY1bBZ4y9NGMvKlB F8VbWcYpZyStdZmrDgrJmpUrRlA1q9LO6E4QmwTjRID2FFwO6TSVYwzET kEeEtbItNvGhmhxPZ7dERi8AID8dsL1wZUqKDdyi4+p9mgJWqPrTvR5mZ 8SNYrUXCbdgeWh1+ODzb1itimgUQ+qNMeLVEQwpb3aobDCm55wBX25rWt w==; X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="288452433" X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="288452433" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 05:21:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="725492545" X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="725492545" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP; 27 Sep 2022 05:21:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1od9ar-008RLy-1N; Tue, 27 Sep 2022 15:21:45 +0300 Date: Tue, 27 Sep 2022 15:21:45 +0300 From: Andy Shevchenko To: Andrey Smirnov Cc: Ferry Toth , Greg Kroah-Hartman , Felipe Balbi , Thinh Nguyen , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Thinh Nguyen , Sven Peter Subject: Re: [PATCH v4] usb: dwc3: Don't switch OTG -> peripheral if extcon is present Message-ID: References: <691c3073-5105-9a2b-e6f2-ea0a4b8aaea8@gmail.com> <966ef528-455c-5180-fc63-ea77cb933af1@gmail.com> <331b5644-e204-8915-cd08-bd4fabbfcb49@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 On Mon, Sep 26, 2022 at 11:31:58AM -0700, Andrey Smirnov wrote: > On Mon, Sep 26, 2022 at 3:19 AM Andy Shevchenko > wrote: > > On Sun, Sep 25, 2022 at 10:43:07PM -0700, Andrey Smirnov wrote: > > > On Sun, Sep 25, 2022 at 12:21 PM Ferry Toth wrote: ... > > > IMHO instead of trying to rush something in it be prudent to revert my > > > patch _and_ address the fact that above patch was lost during the > > > merge (Andy's revert needs to be updated) > > > > I'm not an expert in your fixes for DWC3, so please come up with > > the solution sooner than later, otherwise I will try to get my > > reverts into the final release, because they obviously fix the > > regression. > > You don't need to be an expert here. All that's required is that your > revert get the code to look like it looks in > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.0-rc6&id=ab7aa2866d295438dc60522f85c5421c6b4f1507 > > so the last hunk in your patch instead of looking like: > > @@ -538,6 +584,10 @@ int dwc3_drd_init(struct dwc3 *dwc) > { > int ret, irq; > > + dwc->edev = dwc3_get_extcon(dwc); > + if (IS_ERR(dwc->edev)) > + return PTR_ERR(dwc->edev); > + > if (ROLE_SWITCH && > device_property_read_bool(dwc->dev, "usb-role-switch")) > return dwc3_setup_role_switch(dwc); > > should look like > > @@ -538,6 +584,10 @@ int dwc3_drd_init(struct dwc3 *dwc) > { > int ret, irq; > > if (ROLE_SWITCH && > device_property_read_bool(dwc->dev, "usb-role-switch")) > return dwc3_setup_role_switch(dwc); > > + dwc->edev = dwc3_get_extcon(dwc); > + if (IS_ERR(dwc->edev)) > + return PTR_ERR(dwc->edev); > + > > Can you update your series accordingly or do you need me to do that? I > won't have the cycles until the end of the week (Sat). Thanks for elaboration. I will do it (hopefully today). -- With Best Regards, Andy Shevchenko