Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2746400imj; Mon, 11 Feb 2019 07:53:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IZO5uTxv2QIPbDaZTANAXyJt5tubDN2+PUgLcgz22BLQnj4mvsXtgAeF5CljL1FPf1LH+Px X-Received: by 2002:a17:902:bc89:: with SMTP id bb9mr16814047plb.212.1549900410107; Mon, 11 Feb 2019 07:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900410; cv=none; d=google.com; s=arc-20160816; b=jLTq9HCsq6mKp9Awv4cF1Z6Ab5VWXHcxJ4PJLB93xD9gn4Zh7ZX4mWTDPASbfYAHz6 3iO6wCQpma4OimtpI9qsMsnx9qg/3xN9RQNA7eEKjmBzQhmyw8Fv4gEVvaDTE22ZWV28 sIt4c84bFcPmTeIsWBhJ+veNfJtyl8PojQ0eDgjuwTLj/oyQzcxK6ELUn1LPdiqs2wap eLLzgpTopUl6km69hjgXFiQM/3qhjd4+HcW6+GhXh4N7A2mPhZafDByEALxSnhdqlLta CzI2DiuhuilXGO+1nCiGIet3B918aCWIWh6cs3aMtzOcQlxFUGVuMBHdcrrq5F9jVqFn t5fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FtJAjAToa+Ix8YZrl94KOMm5EFxsr3dBFH83bZawYvk=; b=Uz21WirvrJ9xpAfyaOuIIB82jqAiKfjjTc/QTQRbvdCKYJLL0GfgRkm0CB7hsrTIN1 IjlnfyP7pCD2Lr70g/R0847OCBI+uztESCJPLkKczST9WQQVAC7I6xzo0KarAkk3MRkk TXpkhm2I/gJRDx4+D8WO2n8NogC7ZUd1uuZERhv+GGp7A58qBVdT6eMG4ayJ5c5tGJvI MN6UKRYjyNtLCV9WuTXj08gGFfekKtaJPzkqtc8QoChH9HFHim5maGXT4atK/FWUKz3A eNChZM7LDm4mNWzXaxJRM6j+m8Y3vqS9BHzzSk/blpJD1yhS7sqsoWR+GHyCxLs+3CCz KrLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UQkvClP8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p24si2437410pgl.117.2019.02.11.07.53.13; Mon, 11 Feb 2019 07:53:30 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=UQkvClP8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731448AbfBKOh1 (ORCPT + 99 others); Mon, 11 Feb 2019 09:37:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:46738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731440AbfBKOhX (ORCPT ); Mon, 11 Feb 2019 09:37:23 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 283F521B24; Mon, 11 Feb 2019 14:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895842; bh=+KYsp6FP/vNIsTkQPZM2tF9JaivqOZma+SXx70UnLLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UQkvClP8x1KaGCpgV4ZVxajz3gyeUJB2NvEJMum7WYzlqBXfPZ6IINOvDiCsm9dbZ g54jw2yvmI1BJ3VxU3McCRt7mqj1RiNrCe1vnqEx1N98oIEuIaKG137Rg6pYq344sy 5TOPlugnfzbd0aW6YEZsCalv2BQ2WUh1DsnbCLxI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arun Parameswaran , Florian Fainelli , "David S. Miller" Subject: [PATCH 4.20 310/352] net: dsa: b53: Fix for failure when irq is not defined in dt Date: Mon, 11 Feb 2019 15:18:57 +0100 Message-Id: <20190211141906.561014730@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arun Parameswaran [ Upstream commit 39841cc1cbb69344539c98a1fa9d858ed124c7ba ] Fixes the issues with non BCM58XX chips in the b53 driver failing, when the irq is not specified in the device tree. Removed the check for BCM58XX in b53_srab_prepare_irq(), so the 'port->irq' will be set to '-EXIO' if the irq is not specified in the device tree. Fixes: 16994374a6fc ("net: dsa: b53: Make SRAB driver manage port interrupts") Fixes: b2ddc48a81b5 ("net: dsa: b53: Do not fail when IRQ are not initialized") Signed-off-by: Arun Parameswaran Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/b53/b53_srab.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/net/dsa/b53/b53_srab.c +++ b/drivers/net/dsa/b53/b53_srab.c @@ -511,9 +511,6 @@ static void b53_srab_prepare_irq(struct /* Clear all pending interrupts */ writel(0xffffffff, priv->regs + B53_SRAB_INTR); - if (dev->pdata && dev->pdata->chip_id != BCM58XX_DEVICE_ID) - return; - for (i = 0; i < B53_N_PORTS; i++) { port = &priv->port_intrs[i];