Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2113387pxb; Mon, 12 Apr 2021 14:57:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdnU2DP3AC2pT4ix4rxeLPO0pXEeqWZGunjkpj7mge1rY4wtSO7iCiWYU8ogoy4uK57hwW X-Received: by 2002:a17:906:1a0d:: with SMTP id i13mr12844109ejf.197.1618264656791; Mon, 12 Apr 2021 14:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618264656; cv=none; d=google.com; s=arc-20160816; b=xHtZUTFnfmFZPfaROlGMSGEZ9BhAojbv8M/t4ChafNhh9kA3vMMtHlPNDdiRouqXoB 8FI2ctuaIirvEk3nwC+YZzb+Y3HRjoKFAyQPPYV6Bp4rWOiitmNT+73mc5XKFTEFdZ7N gKpRNcGR23fwQ1QW2iUHxl8QbBGRLJAFa7FY5Vjz0+JIhT/HUy1sleL6ek5iCLVV4t25 C17VvHfI/jrs8dHGoaoLZ2EL5Tlj8iwuFmAh4J1yNwLir6tOrF3uK/477oj4nEJ5NClm +hlzA09XN64kJhRZ+Gf8ZV/JFMVm3G4DbQRRt/mHOVLH9Zq+yX0UbmrfWuYj2LGLkzNG rQPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZK4RJICALrh81FFlG9gjKpXsD75wGhulwSzXJmIFqUs=; b=Y4/AFzmIWIZu0ApH0xCciuPD4IJqy4hhPniNXGjrrPqTE9+gU4rrMs+99mOZMajqQq xuTvzn6nmMNTfcCE6fuvuvneJdqU6yLkXMv6jYDLFgSL9Yf5z9hGrdpxKaB0HSQnwsQe Y9quSyVAuaIb+NcB1wGBkQB2HBL0oJAwhK0bv8lRn8hYp3Y+4wLi2s25nF2GKEUdohJz Ag8J8zT1GU1+1ooOUV17izKAPhK1uqdFFBV9Jw86PtH92gUM2OOZkncF9v1G/wb933w6 bL0gKUkBuqAn7bM+szAULfsgSpBX3CSZVSS/x2pteurAIGb/1VCF+VUGMtA9la5mpp65 vIxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FMVhzveQ; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1727643ejx.579.2021.04.12.14.57.13; Mon, 12 Apr 2021 14:57:36 -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=@linuxfoundation.org header.s=korg header.b=FMVhzveQ; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240876AbhDLJYl (ORCPT + 99 others); Mon, 12 Apr 2021 05:24:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:51072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237444AbhDLJBi (ORCPT ); Mon, 12 Apr 2021 05:01:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C808E6137F; Mon, 12 Apr 2021 09:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618218012; bh=x7VZ5WABemxezkp+xBiyWWiCowGZqH3BhZ6oCy72sog=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FMVhzveQroS5d0wdq8Vdnemw17FY71mHwdbuCcdGmj/vJZSt8xrERniOhV0o+iTA1 1wcAj9EHk6+9KmhcmvdZaX6uqGk+kmOdA8TAW8tseYnUBnxB9KCbTk/+LwVwj6iHwX iG4OVf+vZfDRKmjFOcXn5ZNT1nw00U/Uubb0K4yI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Rui Salvaterra , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, Andrew Lunn , Gregory CLEMENT Subject: [PATCH 5.11 038/210] ARM: dts: turris-omnia: configure LED[2]/INTn pin as interrupt pin Date: Mon, 12 Apr 2021 10:39:03 +0200 Message-Id: <20210412084017.279580657@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084016.009884719@linuxfoundation.org> References: <20210412084016.009884719@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Behún commit a26c56ae67fa9fbb45a8a232dcd7ebaa7af16086 upstream. Use the `marvell,reg-init` DT property to configure the LED[2]/INTn pin of the Marvell 88E1514 ethernet PHY on Turris Omnia into interrupt mode. Without this the pin is by default in LED[2] mode, and the Marvell PHY driver configures LED[2] into "On - Link, Blink - Activity" mode. This fixes the issue where the pca9538 GPIO/interrupt controller (which can't mask interrupts in HW) received too many interrupts and after a time started ignoring the interrupt with error message: IRQ 71: nobody cared There is a work in progress to have the Marvell PHY driver support parsing PHY LED nodes from OF and registering the LEDs as Linux LED class devices. Once this is done the PHY driver can also automatically set the pin into INTn mode if it does not find LED[2] in OF. Until then, though, we fix this via `marvell,reg-init` DT property. Signed-off-by: Marek Behún Reported-by: Rui Salvaterra Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") Cc: Uwe Kleine-König Cc: linux-arm-kernel@lists.infradead.org Cc: Andrew Lunn Cc: Gregory CLEMENT Cc: Tested-by: Rui Salvaterra Reviewed-by: Andrew Lunn Signed-off-by: Gregory CLEMENT Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/armada-385-turris-omnia.dts | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/boot/dts/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/armada-385-turris-omnia.dts @@ -389,6 +389,7 @@ phy1: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; + marvell,reg-init = <3 18 0 0x4985>; /* irq is connected to &pcawan pin 7 */ };