Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1659727ybb; Thu, 26 Mar 2020 05:06:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvkLhn1bnkAtQJx808fsq3nBeXC80UhxPdatgmGAnUT/bIyGf+BTrj/mRvuleJBm16LFuwm X-Received: by 2002:a05:6830:148d:: with SMTP id s13mr5521535otq.342.1585224408224; Thu, 26 Mar 2020 05:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585224408; cv=none; d=google.com; s=arc-20160816; b=pUImph7Mi2S5cJo5TjqMOqAbwrd7+kA3AoqyOdO4qWFpofoVsnXDC5H9+NxiAgJfXz 9+dD6/CQ3ANuaPsB+IN/tU4br7t5wvlNrhHTqBjHV7aO4DigeGBP9+nF1IVAkxTMCbE+ pHQg8ewV8s2LUG5lg7KxNN+iCBoMgIVXepWzjUchvLA44rGFggqaliQL4an389sRdE4m sx4m9L+Ix1cNAyvyoRuGty8SrVoBxURFZjkeEKl8PVcPMep0y3vMsBq+WFtCeNrnH84l NhBkGNcYmQWCksYGpAS5dnVqrjrV7wDM3ISOOVb7s04uA4575oB8b+46Il9dGy3pv8tf z84g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=efMe8OI0kYJCPaBhDQgzBE7bgVuBgudnkDuwFEswYIY=; b=IP2hv3TjEU6M9NTIqjqWjN23uVz1PxwX/bFwoRwG3f2v1UAur+zz3MDMabfRuGI56t m6paBTlocwxZRkPQsQfZ9sabmU9doQrWKe0gYJvVG3RNft1yT0ahd9T/1aJryE3/kUxL 02Aj2nNi9YpCorxa+kVMhAuHZcwAf8olLSrlW/84kGczJhqqDgkJ9J5Zi8HnYVs8yy8z qqSDNu8kYpNzMXSthiWmR6zksWtr3NS1aaLJeAAhcPsZlMNIuHEZ7JNtXVFzjrQ5n55R Zcj4kij2/PcdAI4ReUs1wjWjsjUVIhWBivnJC071g1lcSq+MjtVgCvUvu1geV4Y+hwmw p1DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si981987oie.124.2020.03.26.05.06.29; Thu, 26 Mar 2020 05:06:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbgCZMD0 (ORCPT + 99 others); Thu, 26 Mar 2020 08:03:26 -0400 Received: from mga01.intel.com ([192.55.52.88]:26764 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727948AbgCZMDZ (ORCPT ); Thu, 26 Mar 2020 08:03:25 -0400 IronPort-SDR: GlmTAE/R0+1phTpNdWPJyZjfDeErfT9k0JmRuEQDn3wUzWAcheNigLCoSwVaQbmVg3pAAwkHSt +SVaTND35Z3A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 05:03:25 -0700 IronPort-SDR: 1ZJ4EORQxCkoT3ZSs5x1mOpeth8srErLVF3TqCGJGWpnCWMMeoDRPepsNMJTyyavBRQQWPc1xE raRstNqCwxAA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,308,1580803200"; d="scan'208";a="326543337" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001.jf.intel.com with ESMTP; 26 Mar 2020 05:03:21 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jHREJ-00D70Q-N2; Thu, 26 Mar 2020 14:03:23 +0200 Date: Thu, 26 Mar 2020 14:03:23 +0200 From: Andy Shevchenko To: Peter Ujfalusi Cc: "Rafael J. Wysocki" , Saravana Kannan , Andrzej Hajda , Artem Bityutskiy , Felipe Balbi , Mark Brown , Ferry Toth , grant.likely@arm.com, Greg Kroah-Hartman , LKML , Linux PM , Android Kernel Team Subject: Re: [PATCH v3] driver core: Break infinite loop when deferred probe can't be satisfied Message-ID: <20200326120323.GR1922688@smile.fi.intel.com> References: <20200324175719.62496-1-andriy.shevchenko@linux.intel.com> <20200325032901.29551-1-saravanak@google.com> <20200325125120.GX1922688@smile.fi.intel.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 11:45:18AM +0200, Peter Ujfalusi wrote: > On 26/03/2020 10.39, Rafael J. Wysocki wrote: > > On Wed, Mar 25, 2020 at 11:09 PM Saravana Kannan wrote: > >> On Wed, Mar 25, 2020 at 5:51 AM Andy Shevchenko > >> wrote: ... > > OK, so the situation right now is that commit 58b116bce136 has > > introduced a regression and so it needs to be fixed or reverted. The > > cases that were previously broken and were unbroken by that commit > > don't matter here, so you cannot argue that they would be "broken". > > commit 58b116bce136 is from 2014 and the whole ULPI support for dwc3 > came in a year later. > While I agree that 58b116bce136 fail to handle came a year later, but > technically it did not introduced a regression. > > The revert on the other hand is going to introduce a regression as > things were working fine since 2014. Not sure why the dwc3 issue got > this long to be noticed as the 58b116bce136 was already in kernel when > the ULPI support was added... I dare to say that is luck based on people's laziness to figure out the root cause. As I pointed out in email to Saravana the issue is not limited to USB case and, if my memory doesn't trick me out, I suffered from it approximately in ~2014-2015 with pin control tables. > > It looks to me like the original issue fixed by the commit in question > > needs to be addressed differently, so I would vote for reverting it > > and starting over. > > Fwiw my original approach was a bit different: > https://lore.kernel.org/patchwork/patch/454800/ Can you apply above scenario to your patch and see if it solves the issue? On the other hand to you possess the hardware you can test the original scenario with my patch applied? > Greg changed it to what ended up in the kernel: > https://lore.kernel.org/patchwork/cover/454799/ -- With Best Regards, Andy Shevchenko