Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1040003pxb; Thu, 21 Oct 2021 14:38:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVxySWAcrMgAjMvWv6NqWK/2s5j64FJRhYftHLOPOFtVlZo6R44lOVwj7VcoGydt0glESl X-Received: by 2002:a17:902:c206:b0:13f:68f:675c with SMTP id 6-20020a170902c20600b0013f068f675cmr7755480pll.8.1634852337636; Thu, 21 Oct 2021 14:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634852337; cv=none; d=google.com; s=arc-20160816; b=GspwrKu2GaM/msDzURT6NgomCPefhZpndkNpFNqaxU41r710N991YQHznhwEyxY2kn NHbAmKI1S4JfiNbsqvmBz5MdDXxJZvWey6gWnYUb9OFOCRldD2bMHprd+ykwCFiY7rsI dmx4vjVn/UoPoSJHeogIY9+U8ptmWuLc6TC+V2bVXfewpJQZEKxcTeVjLYul7hkC2jl/ 4p4JQmwDJuzBbC0c7M9eFRYhmqnOfe0G8vNTkI+Pp8lWB96toInp1o+SxC797LbhUfLE biw9vQP9iu0+ZlaIixPXn0evbFXjyqArOa570vujLEMV5moegAwi/tw2hfiMlKbB49z4 /GxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tuF2Op33RL4OeQ9UWXgsrwuFy87CZWAzwWa5oRkpqsM=; b=uK53UzC/WrlWsM/q34vKL0YXtG0Hhmw4HYPyjwGc/hTwTwUONJCroQuUGtDdcL9LqL llzrLuf2ogwhMvIzoOHuUmFRLFvx6ycG4TnboC8l69vlPv92uCscCf0rKFPGo3cFVmbX KVBlARA/XSVwB1odslKLgkZrQW6XnqWI7uJBjNr9mI0v2EmqOQubfY8ysq9B3+2UXEXy c6x58J4WYcDBMdXRWpZpSyg5JWjfSpwwbQkYWNsIseVqPxQ89kC8QBb46+s3Xdegjd7f ycc/Dwuoex+kzOAgVRSQJk+dnD0y2ZGp8qul3bbwm0Rmk1wOqydgZWfMJrm3FdE2KN8D 76sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=koVud3mb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si8502179pfd.103.2021.10.21.14.38.44; Thu, 21 Oct 2021 14:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=koVud3mb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232154AbhJUVj5 (ORCPT + 99 others); Thu, 21 Oct 2021 17:39:57 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:50820 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbhJUVj4 (ORCPT ); Thu, 21 Oct 2021 17:39:56 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4Hb16V1VVQz6R; Thu, 21 Oct 2021 23:37:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1634852258; bh=yUVhaB9gtZqOXRJVOA05HW9hkegVAWRPf9/Fb5zzqus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=koVud3mbFV4o0HzcOfuSsIcS2ECm/kLSoXQuf6z+NYoTkDHLtnIDgnSecJEiUNeAG k8Gq9vQVQwbPEFuKm+OcqpAvsi8aPWmV7qrHRqy5gCAA9aJJFQohoOJskWET0G+/V2 uJP6WgJN4GyL+oeOlCXdnNJE0XUtBWBSciWfN5nBIDY4MJuiilWEiDQIsk4QYU8oMF 90eZLNEzek9jTdfc3WL059gNWPMM1BEDAfYZASi4QDODXSaR3MHXZzsw4oPS7rX7zI nHW1GSvIEeK+bV4sfwoS28azb/E5jKp5WQ0bk+nyxlegxVsUiR05LKa5+FmQ45IDxe UdsSfk89OopjQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at mail Date: Thu, 21 Oct 2021 23:37:36 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Greg Kroah-Hartman , Mathias Nyman , JC Kuo , Nicolas Chauvet , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v1] usb: xhci: tegra: Check padctrl interrupt presence in device tree Message-ID: References: <20211021115501.14932-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211021115501.14932-1-digetx@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 21, 2021 at 02:55:01PM +0300, Dmitry Osipenko wrote: > Older device-trees don't specify padctrl interrupt and xhci-tegra driver > now fails to probe with -EINVAL using those device-trees. Check interrupt > presence and disallow runtime PM suspension if it's missing to fix the > trouble. [...] > --- a/drivers/usb/host/xhci-tegra.c > +++ b/drivers/usb/host/xhci-tegra.c > @@ -1454,10 +1454,13 @@ static int tegra_xusb_probe(struct platform_device *pdev) > goto put_padctl; > } > > - tegra->padctl_irq = of_irq_get(np, 0); > - if (tegra->padctl_irq <= 0) { > - err = (tegra->padctl_irq == 0) ? -ENODEV : tegra->padctl_irq; > - goto put_padctl; > + /* Older device-trees don't specify padctrl interrupt */ > + if (of_property_read_bool(np, "interrupts")) { Does this catch "interrupts-extended"? > + tegra->padctl_irq = of_irq_get(np, 0); > + if (tegra->padctl_irq <= 0) { > + err = (tegra->padctl_irq == 0) ? -ENODEV : tegra->padctl_irq; > + goto put_padctl; > + } Best Regards Micha? Miros?aw