From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 2/2] pci: host: new driver for Marvell Armada 7K/8K PCIe controller Date: Mon, 28 Mar 2016 23:21:57 +0200 Message-ID: <3196859.0zi20qjiKR@wuerfel> References: <1459071058-18328-1-git-send-email-thomas.petazzoni@free-electrons.com> <1459071058-18328-3-git-send-email-thomas.petazzoni@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1459071058-18328-3-git-send-email-thomas.petazzoni@free-electrons.com> Sender: linux-pci-owner@vger.kernel.org To: linux-arm-kernel@lists.infradead.org Cc: Thomas Petazzoni , Bjorn Helgaas , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Ian Campbell , Pawel Moll , Mark Rutland , Kumar Gala , Lior Amsalem , Andrew Lunn , Yehuda Yitschak , Jason Cooper , Hanna Hawa , Nadav Haklai , Gregory Clement , Sebastian Hesselbarth List-Id: devicetree@vger.kernel.org On Sunday 27 March 2016 11:30:58 Thomas Petazzoni wrote: > + /* Wait until the link becomes active again */ > + while (timeout) { > + if (armada8k_pcie_link_up(pp)) > + break; > + udelay(1); > + timeout--; > + } > Why the busy-loop here? Maybe just do a single msleep(1) here to wait for the link to come up instead? Arnd