Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6098561imd; Wed, 31 Oct 2018 06:52:00 -0700 (PDT) X-Google-Smtp-Source: AJdET5dGJDuQ5cEWSPAiUqUzdyoBPaP7fN+zE1ei9KrZ1q7sSSq84Xw9zqgqbY0xxPw48K2S4CAJ X-Received: by 2002:a65:40c5:: with SMTP id u5mr3220098pgp.46.1540993920265; Wed, 31 Oct 2018 06:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540993920; cv=none; d=google.com; s=arc-20160816; b=YgrxrI+B4/LqoCsrPhNj2ZpAqcEFwgipk6LGYfMxXr5QaxiXS1SLiXx3/CJS0IPGE6 3ONz0UkdjQ+b+N//8TuV69aPydzmpw544Px7RxjIiPlZnsvyy0jpXHVg658/YC445qT5 6IkLQTA7qxTjYU4Xl5y/GoL/0YldE5GhnESCeFMP7GJEn3GzRFZU+fmyzbe5zW2H5P5b yHLvwePIqtddPkBedufVRvZDVl6L9nGaDEEXNeOQyzrYvOHUOHfBqj5mHoVC6LoCCRYo Ywee9XcCW4IKOE7Du+re/O5xKNG5FT8iB2XTv8yCUzCA8GZpm/x01Dmt71RvhGYDQY5d dZjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=qaIAACknXTZ6Fox1D/YCusoCm9hnJJdr0PEj92pjfkM=; b=ICj9DZ4nV7P2wME22SX8OWSttc96fhXaWgukYWK59y94WuIBpbAeICxv2HGldz2B8z UrvxcuEMMgVqc6V4OKwoKgyutOOr6iARVosLypz/VwEpkeCLOAcOQIZWQJaEcmF3axnf 1DiIJDs38gy6fzqWgtzH2hb1XMSIIbG+0ZNkXjXlW/uC+fkOIjYwR6YKA7UZQwSmwSX5 u/BAriVJKyx8IshY78nTdW/FGGIsDLEaIY8OLJCSft+kUriLBkxIzI2XS5MFHLrLgwjQ YTdH0es7KTtI+B6VQ7EfGXEGnc9DVCBJD7UwuXZwreiKxoC6kvXoTvIgcWFeivdEEZm6 5Gqw== ARC-Authentication-Results: i=1; mx.google.com; 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 11-v6si10250247pfx.102.2018.10.31.06.51.45; Wed, 31 Oct 2018 06:52:00 -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; 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 S1729398AbeJaWtI (ORCPT + 99 others); Wed, 31 Oct 2018 18:49:08 -0400 Received: from mail-ot1-f49.google.com ([209.85.210.49]:34727 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729271AbeJaWtI (ORCPT ); Wed, 31 Oct 2018 18:49:08 -0400 Received: by mail-ot1-f49.google.com with SMTP id e9so13081795oti.1; Wed, 31 Oct 2018 06:51:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qaIAACknXTZ6Fox1D/YCusoCm9hnJJdr0PEj92pjfkM=; b=srFAiR2+G0eL59/VWXMLsU2OqUf7kcpWBi27zUmMto0isC/jtbiLW9fmsoOTVIjdSI K6IBKkgzhvnH3ixFQKV81kIBS2hsBAtASw7HEun1nJG1TxoZTqNeMK0U2OavtA4RF+5K S2KpK4B331a3PPV4UZ5fzEsi/LXcgwPfm2k7b7i9bPI58KmluCecb6Bsnd6KE1WvKmAI /LSLL+m5rc65TLCAiGOMMsxuFrVbNXYBi7J/RZNswRA6g4yEeT0ttVacjLnDkWzlthAJ dA4keBmkB6iBO9xIWZYPfVfHGIpB1bk8SMgNjrFcGuY8Lg1vUTptJhnP9FYZkAJcQ5Ql Fohw== X-Gm-Message-State: AGRZ1gLTtxjqkutjW/As9loqKtyT5DaXB8eXzyskwe/KptlRFYL7IhN4 q+4md3LQHFoUKZ4DkfAQ7Va2XwfbxkYEC8QzsYQ7kQ== X-Received: by 2002:a9d:2987:: with SMTP id n7mr1946829otb.339.1540993861047; Wed, 31 Oct 2018 06:51:01 -0700 (PDT) MIME-Version: 1.0 References: <1540957223-30984-1-git-send-email-harini.katakam@xilinx.com> <1540957223-30984-2-git-send-email-harini.katakam@xilinx.com> <20181031134810.GD20889@lunn.ch> In-Reply-To: <20181031134810.GD20889@lunn.ch> From: Harini Katakam Date: Wed, 31 Oct 2018 19:20:50 +0530 Message-ID: Subject: Re: [PATCH 1/4] net: macb: Check MDIO state before read/write and use timeouts To: Andrew Lunn Cc: Harini Katakam , Nicolas Ferre , David Miller , Claudiu Beznea , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Simek , Shubhrajyoti Datta , sai.pavan.boddu@xilinx.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, > > Hi Harini > > Could you make use of readx_poll_timeout(). You will need to add a > helper for the read of the register, since readx_poll_timeout() only > allows one parameter. > > Otherwise, this looks O.K. Sure, will do. Thanks. Regards, Harini