From patchwork Tue Jun 23 15:43:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Bishara X-Patchwork-Id: 29080 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by bilbo.ozlabs.org (Postfix) with ESMTP id CF58FB7088 for ; Wed, 24 Jun 2009 01:44:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754301AbZFWPn7 (ORCPT ); Tue, 23 Jun 2009 11:43:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756181AbZFWPn7 (ORCPT ); Tue, 23 Jun 2009 11:43:59 -0400 Received: from host2.marvell.com ([65.219.4.2]:6206 "EHLO maili.marvell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754301AbZFWPn6 (ORCPT ); Tue, 23 Jun 2009 11:43:58 -0400 Received: from localhost.localdomain (ubuntu-saeed.marvell.com [10.4.50.39]) by maili.marvell.com (Postfix) with ESMTP id 938125EF16; Tue, 23 Jun 2009 08:44:00 -0700 (PDT) From: Saeed Bishara To: linux-ide@vger.kernel.org, liml@rtr.ca Cc: saeed.bishara@gmail.com, Saeed Bishara Subject: [PATCH 1/3] sata_mv: increase PIO IORDY timeout Date: Tue, 23 Jun 2009 18:43:56 +0300 Message-Id: <1245771838-1332-1-git-send-email-saeed@marvell.com> X-Mailer: git-send-email 1.6.0.4 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org The old value (0xbc) in cycles of the IORDY timeout is suitable for devices with core clock of 166 MHz, but some SoC controllers have faster core clocks. The new value will make the IORDY timeout large enough also for all SoC devices. Signed-off-by: Saeed Bishara --- drivers/ata/sata_mv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 23714ae..644436e 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -3368,7 +3368,7 @@ static void mv_soc_reset_hc_port(struct mv_host_priv *hpriv, ZERO(0x024); /* respq outp */ ZERO(0x020); /* respq inp */ ZERO(0x02c); /* test control */ - writel(0xbc, port_mmio + EDMA_IORDY_TMOUT); + writel(0x800, port_mmio + EDMA_IORDY_TMOUT); } #undef ZERO