From patchwork Mon Jan 18 17:21:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 43107 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.180.67]) by ozlabs.org (Postfix) with ESMTP id F150EB7C8E for ; Tue, 19 Jan 2010 04:23:48 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755096Ab0ARRWy (ORCPT ); Mon, 18 Jan 2010 12:22:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755251Ab0ARRWs (ORCPT ); Mon, 18 Jan 2010 12:22:48 -0500 Received: from ey-out-2122.google.com ([74.125.78.25]:55501 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754923Ab0ARRWo (ORCPT ); Mon, 18 Jan 2010 12:22:44 -0500 Received: by ey-out-2122.google.com with SMTP id d26so748496eyd.19 for ; Mon, 18 Jan 2010 09:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=YX7PM+IoMsQCPQPIWKpof1r10EYFehY7OhHTKkvm+K0=; b=WLbG3cyZPtCJOAQMynYHr83zf3NulIvP413+VzUZVQry3cLZQ1RsE+/Vx94m8XIz6U kofczPCTk342uMEGsqVadHV0u7WwFAeTyNSy2aqDaDCWhC7G6Qld0XsXXFC0chHCms/n HkLO+6fj3kRh6pqEcVwl1dVP5H0ZcNwPHFSH4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=SNmr6Yro7JbuUp8bvz5hB3uvoQBqRFQdtC3Qre1yZzhZ3/EQWGi0dKFXZMc/T0nDsL P6KwFfXWppUpLGfU9FVvUPWQxoXrzk8837DJ5H8gQ6H4XWo23VI75Ax75WtX6nVkMVhJ DR6heQxOjWJMdQuaMYXAfsqkBAf0iW25GJ3sQ= Received: by 10.216.93.70 with SMTP id k48mr2060883wef.134.1263835362822; Mon, 18 Jan 2010 09:22:42 -0800 (PST) Received: from ?127.0.0.1? (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id q9sm4294223gve.15.2010.01.18.09.22.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Jan 2010 09:22:42 -0800 (PST) From: Bartlomiej Zolnierkiewicz To: linux-ide@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org Date: Mon, 18 Jan 2010 18:21:33 +0100 Message-Id: <20100118172133.14623.99453.sendpatchset@localhost> In-Reply-To: <20100118171349.14623.90030.sendpatchset@localhost> References: <20100118171349.14623.90030.sendpatchset@localhost> Subject: [PATCH 55/64] amd74xx: use ->pio_mode value to determine pair device speed Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Bartlomiej Zolnierkiewicz Subject: [PATCH] amd74xx: use ->pio_mode value to determine pair device speed Use the current PIO mode value instead of the current transfer speed of the pair device on the port to determine PIO commmand timings used for both devices on the port. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ide/amd74xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: b/drivers/ide/amd74xx.c =================================================================== --- a/drivers/ide/amd74xx.c +++ b/drivers/ide/amd74xx.c @@ -94,7 +94,7 @@ static void amd_set_drive(ide_hwif_t *hw ide_timing_compute(drive, speed, &t, T, UT); if (peer) { - ide_timing_compute(peer, peer->current_speed, &p, T, UT); + ide_timing_compute(peer, peer->pio_mode, &p, T, UT); ide_timing_merge(&p, &t, &t, IDE_TIMING_8BIT); }