From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754028AbbGJLUn (ORCPT ); Fri, 10 Jul 2015 07:20:43 -0400 Received: from smtp37.i.mail.ru ([94.100.177.97]:51747 "EHLO smtp37.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbbGJLUd (ORCPT ); Fri, 10 Jul 2015 07:20:33 -0400 Message-ID: <559FAA71.2030209@list.ru> Date: Fri, 10 Jul 2015 14:20:17 +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: Sebastien Rannou CC: Florian Fainelli , Linux kernel , Arnaud Ebalard , Stas Sergeev , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , devicetree@vger.kernel.org, netdev , Thomas Petazzoni Subject: Re: [PATCH 1/2] of_mdio: add new DT property 'link' for fixed-link References: <559EB0A4.5080101@list.ru> <559EB1A6.1090008@list.ru> <559EBC59.6020003@gmail.com> <559EDD0C.7020907@list.ru> <559EE45C.4040408@gmail.com> <559EEAE9.4000806@list.ru> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam: Not detected X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 10.07.2015 11:46, Sebastien Rannou пишет: > On Fri, 10 Jul 2015, Stas Sergeev wrote: > >> 10.07.2015 00:15, Florian Fainelli пишет: >>> Then, if the in-band status indication is not reliable (which really >>> should be completely understood), >> Agree! >> But this is not something I can help with. >> Sebastien Rannou reports the problem, please ask him whatever >> you see fits to get a better understanding of a problem. >> The fact that his HW does not generate the inband status, is >> _my own guess_. > > Yes, I confirm that my HW does not generate an in-band status. AFAIK, it's > a PHY that aggregates 4xSGMIIs to 1xQSGMII ; the MAC side of the PHY (with > inband status) is connected to the switch through QSGMII, and in this context > we are on the media side of the PHY. Hmm, interesting. So if I parse the above correctly, you have something like 88E1340S set up into a mode when SGMII is used as media interface and QSGMII as system interface (terms are from datasheet page 5), then you connect the media interface to armada-xp and system interface to the switch. I wonder if it is the right thing to do. AFAIK you could as well set up armada-xp into QSGMII mode and connect that to switch. The driver would then disable the use of inband status and everything would be fine. Either way, your use-case proves that only DT can decide the use of an inband status.