Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2223519ybi; Mon, 1 Jul 2019 08:16:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh4IKgWn5Wh6bOU+0CuJ+fZDrKB+B7SJXP7Zo2ALqipm4a9lJZPNWJQoPnIqnkStO/S3Pa X-Received: by 2002:a65:62c2:: with SMTP id m2mr25688753pgv.413.1561994216727; Mon, 01 Jul 2019 08:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561994216; cv=none; d=google.com; s=arc-20160816; b=Y2fM7mu0/VqmkM5WbVPqyaf3JMX7o/ucm0zosB+H6hwR47zzAV2mw/4AW83MFfXfQN jqku66pSjpsfDtQlhRPy/W0tv/0hy+I9Fwo/qDFLufNguh4qoUhLUpTvKyhZ1T9XVvWn yaAhwb1lNrHgcARm4pZ2vj5wIdhbr+pO+veVrSMDBmC1tDcn+IB4cv6eSA/CxfKu3FQk zUEyOn/cyvnUbHmcOI1ehviKiGD67bGtY8ZCDJhryi5YGliDRuCVrmUGUfdbpmPNbrvj ySOFFpHqTo0SGLdPYiusTgD/KFoAaiZLpIN5cXysjMtGmEbphMBH9EWp5W7RO2G/5/kc OrmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/wH7gsNCFutjcBkNMwkLgvVyn4BWXgcGFHl/aAlbf7A=; b=Mlahz+WCnwHHKNVcqLzYq7LzBL+SGykVPPXXgg1sJJL06gsyL1iZwiB5VHznBlCmY2 k/rSddPr7hw33KVj400afEa7zBwnoWHVDj0vuQevR+DBXwVPkhLsef6blswLVIsN7C6O 5PHLyPf7jvoBSZu9fKtQULXw111Wu7/qy8SFPYHQxIr6HSe202lFLTe68s20n+ZRDNdb w/pP0Lt90IMgbw+DAD8VvGhuMicBKwIjSYLd3cThgR56pez47doWMwJ7J5588D1s97uM ew7rciCKWvbCGUb3D2TnkCy/piEyyxLAR2OePTlon4STBOj895W0i2cRGeNu3KHv3x4V 1nvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5H3GX93u; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si10635881plk.342.2019.07.01.08.16.17; Mon, 01 Jul 2019 08:16:56 -0700 (PDT) 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=@lunn.ch header.s=20171124 header.b=5H3GX93u; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728960AbfGAN30 (ORCPT + 99 others); Mon, 1 Jul 2019 09:29:26 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45620 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbfGAN3Z (ORCPT ); Mon, 1 Jul 2019 09:29:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/wH7gsNCFutjcBkNMwkLgvVyn4BWXgcGFHl/aAlbf7A=; b=5H3GX93u95qcsN7JLwzaoO9hqB QO6yrOAAU3gkVrw5rlwjymr7mFEHAeDi/BgGDQIVZw4ifeHjU8eVerL3m8KR1R0u1xvtv4WGLLY4q q5PAUZJd9ErfqUzM9poNdilibKK7H9cDdqGWHJLEPS2CpaANTFa0VLrXCGTFbPYHGcYs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hhwMw-0006yh-BC; Mon, 01 Jul 2019 15:29:18 +0200 Date: Mon, 1 Jul 2019 15:29:18 +0200 From: Andrew Lunn To: Corentin Labbe Cc: jacmet@sunsite.dk, davem@davemloft.net, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] net: dm9600: false link status Message-ID: <20190701132918.GA25795@lunn.ch> References: <20190627132137.GB29016@Red> <20190627144339.GG31189@lunn.ch> <20190701122050.GA11021@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701122050.GA11021@Red> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > But thoses chips should have marking (according to some photos on > the web), so I probably own a counterfeiting of a > clone/counterfeiting. > At least, now i know that have a chip not designed to work with an external PHY, so all EXTPHY registers could be ignored. > My last ressort is to brute force all values until something happen. Does the rest of this work? You can actually transmit/receive frames, but it is a 10/Half? So the MAC is working, just the PHY is missing? > My simple tries, write 0xsomeval everywhere, lead to something, phy/eeprom return now 0x000y. > Probably, this chip doesnt have any PHY... If you look at dm9601_mdio_write() and dm9601_mdio_read() it always passes 1. 0 is used for the EEPROM, at least in a real device. so try 1-31 and see if you get anything interesting. Andrew