Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754868AbbGQL0L (ORCPT ); Fri, 17 Jul 2015 07:26:11 -0400 Received: from smtp36.i.mail.ru ([94.100.177.96]:47714 "EHLO smtp36.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751861AbbGQL0J (ORCPT ); Fri, 17 Jul 2015 07:26:09 -0400 Message-ID: <55A8E64A.3040009@list.ru> Date: Fri, 17 Jul 2015 14:26:02 +0300 From: Stas Sergeev User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Florian Fainelli , netdev CC: Linux kernel , Sebastien Rannou , Arnaud Ebalard , Stas Sergeev Subject: Re: [PATCH 1/3] fixed_phy: handle link-down case References: <55A7C45F.1070501@list.ru> <55A7C49E.2020803@list.ru> <55A83D86.2030505@gmail.com> In-Reply-To: <55A83D86.2030505@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1028 Lines: 24 17.07.2015 02:25, Florian Fainelli пишет: > On 16/07/15 07:50, Stas Sergeev wrote: >> >> Currently fixed_phy driver recognizes only the link-up state. >> This simple patch adds an implementation of link-down state. >> It fixes the status registers when link is down, and also allows >> to register the fixed-phy with link down without specifying the speed. > > This patch still breaks my setups here, e.g: drivers/net/dsa/bcm_sf2.c, > but I will look into it. > > Do we really need this for now for your two other patches to work > properly, or is it just nicer to have? Yes, absolutely. Otherwise registering fixed phy will return -EINVAL because of the missing link speed (even though the link is down). Please, see what makes a problem. I can't reproduce what you report. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/