From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D66E15C82 for ; Mon, 5 Dec 2022 19:16:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00AD6C433D7; Mon, 5 Dec 2022 19:16:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670267796; bh=rN1A+ineWHA1wh1ysZ1YO17BHfw+tjq1plJA1rfXpBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhW0i8B4/6UbbyENMnTHx03mwJEJdFOih74k0DEG+ji95DYrmKJBXOxvcgHo0yI2U 6wpMIoq1YjcwW5kO3KsxkUKtjWcZG0d//WuWKdPHLEdMXWG7Idk51Z/gxjNK3YeUpC jgBTgfa6CY2/grIlvxcaSSbS5iHXLtue5bX4Apwo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tho Vu , Yoshihiro Shimoda , Pavan Chebbi , Sergey Shtylyov , Jakub Kicinski , Sasha Levin Subject: [PATCH 4.14 55/77] net: ethernet: renesas: ravb: Fix promiscuous mode after system resumed Date: Mon, 5 Dec 2022 20:09:46 +0100 Message-Id: <20221205190802.814475472@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221205190800.868551051@linuxfoundation.org> References: <20221205190800.868551051@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Yoshihiro Shimoda [ Upstream commit d66233a312ec9013af3e37e4030b479a20811ec3 ] After system resumed on some environment board, the promiscuous mode is disabled because the SoC turned off. So, call ravb_set_rx_mode() in the ravb_resume() to fix the issue. Reported-by: Tho Vu Fixes: 0184165b2f42 ("ravb: add sleep PM suspend/resume support") Signed-off-by: Yoshihiro Shimoda Reviewed-by: Pavan Chebbi Reviewed-by: Sergey Shtylyov Link: https://lore.kernel.org/r/20221128065604.1864391-1-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/renesas/ravb_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 58496fb84b05..5513475e2a82 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -2335,6 +2335,7 @@ static int __maybe_unused ravb_resume(struct device *dev) ret = ravb_open(ndev); if (ret < 0) return ret; + ravb_set_rx_mode(ndev); netif_device_attach(ndev); } -- 2.35.1