Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752354AbdHUHwn (ORCPT ); Mon, 21 Aug 2017 03:52:43 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38954 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088AbdHUHwm (ORCPT ); Mon, 21 Aug 2017 03:52:42 -0400 From: Romain Perier To: Giuseppe Cavallaro , Alexandre Torgue , Andrew Lunn , Florian Fainelli Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Perier Subject: [PATCH 0/2] net: stmmac: phy logging fixes Date: Mon, 21 Aug 2017 09:52:33 +0200 Message-Id: <20170821075235.28473-1-romain.perier@collabora.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 606 Lines: 15 This set of patches fixes issues related to logging. First it delete old code that is no longer used in stmmac_mdio_register(). Then, it fixes a crash that happens when phydev->drv is NULL and phy_attached_info() is called prior phy_driver is binded to phydev. Romain Perier (2): net: stmmac: Delete dead code for MDIO registration net: phy: Don't use drv when it is NULL in phy_attached_info drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 16 ---------------- drivers/net/phy/phy_device.c | 13 +++++++++++-- 2 files changed, 11 insertions(+), 18 deletions(-) -- 2.11.0