Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbdHULpg (ORCPT ); Mon, 21 Aug 2017 07:45:36 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39458 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753527AbdHULpe (ORCPT ); Mon, 21 Aug 2017 07:45:34 -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 v2 0/2] net: stmmac: phy logging fixes Date: Mon, 21 Aug 2017 13:45:28 +0200 Message-Id: <20170821114530.13706-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: 698 Lines: 19 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. Changes in v2: - Fixed wording in commit message - "commit" not needed in the "Fixes" tag Romain Perier (2): net: stmmac: Delete dead code for MDIO registration net: phy: Don't use drv when it is NULL in phy_attached_print 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