Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3787882ybi; Mon, 29 Jul 2019 12:37:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJBCiL61xxOLb75rDuImlJbDcARE6CpwRSHM7E3vMpu1EVIQ1B4vtyiVoIVpzm+dRYoizo X-Received: by 2002:aa7:8dd2:: with SMTP id j18mr37704281pfr.88.1564429059323; Mon, 29 Jul 2019 12:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564429059; cv=none; d=google.com; s=arc-20160816; b=YdWgdk/Gr576tiC/kmOHZhNw1+1xpRsf+hcEgDNzTRYRbUaQaNldb0gH32t9cY+DIw kQJLU7zF9wH/xYV+noOJHVdquvxPN6w/DSQ1cL5ayLlj3LDm553HMOiVPh4NQI2gKfGG tJa+QNg4v3WIJEWp1RmTIYR2fJZKWwC78WmSkF9FCcxlFbUtKyJlD/vnKO12DGq6pmxj kiooQwAzdjZInWkCHn5TxT+DdVWXUl159jsqAV66hh7vH1WvoZ7hkImwuQuVRYCH2shE 3K+D9g3nLOOpYkwBKv6imBeFdM2aC5mc7kB2znVlB/f0bW5vq5J57t/s6gYj6q9nTPUa I9zQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DHOCuAbeuPgDMNHr3iEXHxCFL73J4cghor+jmlM1xeU=; b=M7ozYNLbF3BCIr3sgShmzN1FshMK6p/5wE1/tWwG3Ohz/WEaL/7PKh64VYNVioek3o dMP8mubCd0rCgI2xypdtULkyytW3jtsDbtzpC2DEUaUSnItOebfTAGpKjLNTjUVbsIt6 vsoICSvgtp+T8qXRT1Q+R0P0mC7BMJPc1Mlz9jCS1nK+44SfjBnMCjSePwi+4upC5d9B WTur8bu/05rzEji48hAxxhc47Y6swHWgrd67MSCT+UtkPtEVIcHbU37gJoWVke7DOhqH zHqud8OP6W3Ce9c9LI6xmKgIqTpH/WwNX2udI8I+DyptgYXNHCTNLxnl/AxNUuIyZCg5 B8Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bFMvzvbB; 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 d34si26470368pld.54.2019.07.29.12.37.24; Mon, 29 Jul 2019 12:37:39 -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=pass header.i=@kernel.org header.s=default header.b=bFMvzvbB; 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 S2388452AbfG2Tei (ORCPT + 99 others); Mon, 29 Jul 2019 15:34:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:49002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388344AbfG2Teg (ORCPT ); Mon, 29 Jul 2019 15:34:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BE3102070B; Mon, 29 Jul 2019 19:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428876; bh=txun0dhN5ZPu3uTiJ5GQy+XetnkVydPP6bPsfuQq26c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bFMvzvbBvni2ee0AFwTIcrXz1h7UPhibdLF0z4MQFY5pfPWa+S8KGbhGcric3Kzxe KPlYWc+V0MmULCyUrNFnLzOnIF072pq113sRwQFNQX8tYlvSLmv6ID5yMdGl0fOPme p0nkTjY9MCLGHZW/zpfyXcdaaXK8T9knrTxz4blI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Baruch Siach , Andrew Lunn , "David S. Miller" Subject: [PATCH 4.14 187/293] net: dsa: mv88e6xxx: wait after reset deactivation Date: Mon, 29 Jul 2019 21:21:18 +0200 Message-Id: <20190729190838.832230335@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Baruch Siach [ Upstream commit 7b75e49de424ceb53d13e60f35d0a73765626fda ] Add a 1ms delay after reset deactivation. Otherwise the chip returns bogus ID value. This is observed with 88E6390 (Peridot) chip. Signed-off-by: Baruch Siach Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/mv88e6xxx/chip.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -4044,6 +4044,8 @@ static int mv88e6xxx_probe(struct mdio_d goto out_g1_irq; } } + if (chip->reset) + usleep_range(1000, 2000); err = mv88e6xxx_mdios_register(chip, np); if (err)