Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1490059imu; Wed, 28 Nov 2018 10:16:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/XJp5rjX6NQ5Ve2WdcphE1INJQj/wRCfvWzJpPwW6H26qCfcomrbmu/Q5TOzq9hisz88We2 X-Received: by 2002:a17:902:8687:: with SMTP id g7mr11516790plo.96.1543428994143; Wed, 28 Nov 2018 10:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543428994; cv=none; d=google.com; s=arc-20160816; b=V/oLLoEo52kO70Lz/3bZqp7h31TLOF2AYmwKDK7DE5gbF0keEcaG9gRXdi3Ij1olfG O7tIiTbEIEubDvERmnHd95yZhlhZJDVbSDFU+Yxt1SVBr5Ps7v4ZuCkaj1Ezc+wk/HSl d9AlBv8IR/AM89NcaiCsmX+wVup3WnrYu8x3JF/kJBOHop8rUPeDBMbGalFy3s9rzmZ5 qiAE49icgoJYPY79tRwxyvuh/n2whnR25xdPQWQ7eyt4q1gqtfIolN7n2S+vUmE9ghft 18PTKO6koh/CU0xxmN5SvaRh5PguKipJ8NZHew6OWnJeQxYJp+Wz80lhd4C7ouPngUQ1 9IFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=w/bynuSjTnP/qvA7jbUhYkhmNki4pQ+P5lDZZCVS6dM=; b=Fzr6BB2GO52244PtJBWDwoD++V0Dqv9l80u5U42vn4p0lssXdc1sMwwoXHb9kmGdD6 m3GJL8uxgkk+q0IQNBOd3ClWoQ408zve1xmL6kh08YvZ1wbNezx7ULvuy9lcJiESRkTc B6/kqkJghFcVbpKasGyII7wvd2SvFTQsPbmspe9e6gGjIRIBbW1OESANkAoX2HrIFUA7 d3Oh3iukfeqAO+3viSPTEyx/uFkjeDMpcdfo0mB/rWotzNScHR5JVmWywMb2T5rAEW28 LmEbnsvScfW8SUBXl7KIo8dbdFLmNaOpu+v6g/hYJ16kQAJItX78W4HzLl+LRpTSqDgM /Rfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="P/kA/6zr"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si7663669pgm.559.2018.11.28.10.16.13; Wed, 28 Nov 2018 10:16:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="P/kA/6zr"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727467AbeK2FR7 (ORCPT + 99 others); Thu, 29 Nov 2018 00:17:59 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:56486 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725266AbeK2FR7 (ORCPT ); Thu, 29 Nov 2018 00:17:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1543428929; x=1574964929; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=VbCtUK0B6nIp8n9Xq8wecIQp5tDLrwRfU98MVtEmGLc=; b=P/kA/6zrBhuw87gtYjSZS0pglvdxHXnpvFkVX57ODYAwgIebRoNhxe3E +wD13yhT+HfTKbz1A8c7NeUxoFTy0vTZEKuwBXkmn/Oo5djGMVIeZMnlf AtddFST3WLZCdlIYmPLDZPZFL/HNo3pLrrzLO8MXL+ZpoptmKR0jc5BeC UVON1zC+uSoCPOY/cXKblmxnyw4tHtxrBSUjeAm/01/wngOFtEpCZm56T tfRV7NcSjI0DWgybFZ7cnqg3icGkpAAiz2KvgKU4C8A3HGpb6/aNOKvxa RLxed5xjHEc1Kw6/BXohzm8BQdbzAyh1OwBenoR1ZCa17eQOaRxcTqeT7 Q==; X-IronPort-AV: E=Sophos;i="5.56,291,1539619200"; d="scan'208";a="97070176" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 29 Nov 2018 02:15:29 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 28 Nov 2018 09:58:27 -0800 Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.111.72.98]) ([10.111.72.98]) by uls-op-cesaip02.wdc.com with ESMTP; 28 Nov 2018 10:15:29 -0800 Subject: Re: macb: probe of 10090000.ethernet failed with error -110 To: Andreas Schwab , Nicolas Ferre Cc: "netdev@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: From: Atish Patra Message-ID: Date: Wed, 28 Nov 2018 10:15:28 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/28/18 2:11 AM, Andreas Schwab wrote: > The PHY probing of the macb driver appears to be rather unreliable. > Most of the time it doesn't work the first time, I have to reload the > module several times to let it succeed. > > [ 40.530000] macb: GEM doesn't support hardware ptp. > [ 40.530000] libphy: MACB_mii_bus: probed > [ 41.450000] macb 10090000.ethernet (unnamed net_device) (uninitialized): Could not attach to PHY > [ 41.510000] macb: probe of 10090000.ethernet failed with error -110 > [ 1354.400000] macb: GEM doesn't support hardware ptp. > [ 1354.410000] libphy: MACB_mii_bus: probed > [ 1355.260000] macb 10090000.ethernet (unnamed net_device) (uninitialized): Could not attach to PHY > [ 1355.300000] macb: probe of 10090000.ethernet failed with error -110 > [ 1358.100000] macb: GEM doesn't support hardware ptp. > [ 1358.110000] libphy: MACB_mii_bus: probed > [ 1358.310000] Microsemi VSC8541 SyncE 10090000.ethernet-ffffffff:00: attached PHY driver [Microsemi VSC8541 SyncE] (mii_bus:phy_addr=10090000.ethernet-ffffffff:00, irq=POLL) > [ 1358.320000] macb 10090000.ethernet eth0: Cadence GEM rev 0x10070109 at 0x10090000 irq 12 (70:b3:d5:92:f1:07) > > This is 4.20-rc4 on a HiFive-U. > > Andreas. > Here is my previous analysis on the issue. http://lists.infradead.org/pipermail/linux-riscv/2018-September/001503.html Not sure if you have tried the hack already. But here it is anyways. https://github.com/atishp04/riscv-linux/commit/aa230e7dc2ab01db5b630f427e57297ffc25c884 Regards, Atish