Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3618622pxb; Mon, 24 Jan 2022 13:38:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKArcPf9nvbAVoLdqbC0cT3CPg4GmXw6KEefJVf8UJRYafexexEuSImcNA7UB1AGCajKTc X-Received: by 2002:a05:6a00:987:b0:4c7:ac09:5430 with SMTP id u7-20020a056a00098700b004c7ac095430mr12581910pfg.67.1643060246926; Mon, 24 Jan 2022 13:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060246; cv=none; d=google.com; s=arc-20160816; b=trogaxVPIUj7b1+LU6QbuYJllSjLy8YLWkw1G8NuTjm7ghpbF8bfsMlGfa9Hga5VEC iLWo/ahKNTciaCb64Tkb2MwiIYhdS6L1GJaZyzmICAhPJkRuWA2nBCs0CZHpwgJf1VxP 3WhQfvzAOi9exDlmoxOaf7t7TVbG1LXb2mzSSG2H64g0Riu/QYn7tmo4S0L+1RlGJ7A+ Ij5w0DspDShV8oj/gQiOwyVRd87CBkB4zEGCSXAgkA/KDTdOhW1WyJOfpVvukxoluV+0 wC1v0XRu2y5DnUNe1SJdl7uS8dzu+BR4P1IRkwkY48HCBGfY3fe0r8UAzKBivjxwnqbh vJHw== 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=rruwY1Jci6salXTjFyLh8YggxsoZ0nMy41rAthKE0qo=; b=Sl7eW9/Sgajj9tZd3aYAA/zJoLYMQ/IFtikqo+Huel+p9pPyvUz4TyaC8hG/0NePTD AxUALqe9avCxONecaT9onvQZo/Bntd4CIGBkIyNIN6OSyjjgjhB0K2MPjnUTf15Dw9zd XT6JaawURALZkvU758iumgeHenq6/eOGfLcvpCDw4sBYAgzz3nOi2IZE93vrDDuSmFd+ sv4Er9QsIRcvnULFe2JXL51kYvt39oYHaZKqTc4H4+FjoOqsy7D+BTkdT9zZTvHEIAbh g4hqi4NsiYpV6WoXJ/PdlWgVz4u7Fb8nQwz64itgrNfj12Afsq8eviNXoAklxj8pQ+br mkCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lIm2smwI; 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 q82si6177250pgq.208.2022.01.24.13.37.14; Mon, 24 Jan 2022 13:37:26 -0800 (PST) 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=lIm2smwI; 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 S1449007AbiAXVOd (ORCPT + 99 others); Mon, 24 Jan 2022 16:14:33 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:40554 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391264AbiAXUrM (ORCPT ); Mon, 24 Jan 2022 15:47:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 52FF160918; Mon, 24 Jan 2022 20:47:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22E2FC340E5; Mon, 24 Jan 2022 20:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057231; bh=0L0DDiEfxGJyaxQOimR7aMe0htOuKRpRbrOBhnHMJQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIm2smwI83+kCrbs6gtP1CSERxISnBXev6wzPMaGGpkUsRtefrCKbd0YWQXg8tuqj x2WmWbBM0/AeVEIIqQrnhWlDu/E7665gBAOv9iD/6SRSyXTHV1IK3pwY9COknlnWVp NTg60XqXua5MkaK1gLWdCnHjOPzA0UXzOgusIftM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gabriel Hojda , Markus Reichl , Alexander Stein , "David S. Miller" Subject: [PATCH 5.15 744/846] net: usb: Correct reset handling of smsc95xx Date: Mon, 24 Jan 2022 19:44:21 +0100 Message-Id: <20220124184126.654026824@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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: Markus Reichl commit 0bf3885324a8599e3af4c7379b8d4f621c9bbffa upstream. On boards with LAN9514 and no preconfigured MAC address we don't get an ip address from DHCP after commit a049a30fc27c ("net: usb: Correct PHY handling of smsc95xx") anymore. Adding an explicit reset before starting the phy fixes the issue. [1] https://lore.kernel.org/netdev/199eebbd6b97f52b9119c9fa4fd8504f8a34de18.camel@collabora.com/ From: Gabriel Hojda Fixes: a049a30fc27c ("net: usb: Correct PHY handling of smsc95xx") Signed-off-by: Gabriel Hojda Signed-off-by: Markus Reichl Tested-by: Alexander Stein Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/smsc95xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -1961,7 +1961,8 @@ static const struct driver_info smsc95xx .bind = smsc95xx_bind, .unbind = smsc95xx_unbind, .link_reset = smsc95xx_link_reset, - .reset = smsc95xx_start_phy, + .reset = smsc95xx_reset, + .check_connect = smsc95xx_start_phy, .stop = smsc95xx_stop, .rx_fixup = smsc95xx_rx_fixup, .tx_fixup = smsc95xx_tx_fixup,