From patchwork Mon Jan 18 17:22:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 43111 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 57025B7CD9 for ; Tue, 19 Jan 2010 04:23:51 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755446Ab0ARRXo (ORCPT ); Mon, 18 Jan 2010 12:23:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755513Ab0ARRXm (ORCPT ); Mon, 18 Jan 2010 12:23:42 -0500 Received: from mail-ew0-f214.google.com ([209.85.219.214]:51627 "EHLO mail-ew0-f214.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755424Ab0ARRXg (ORCPT ); Mon, 18 Jan 2010 12:23:36 -0500 Received: by mail-ew0-f214.google.com with SMTP id 6so3712947ewy.29 for ; Mon, 18 Jan 2010 09:23:35 -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=wh2E2ucbDknPYBjnALX+hC0uIAoacaDUm70KRLGuYKw=; b=abOV8L55ZI6agGAgsmEXMvrawrKHIyndw9PAc6O4EAJa4PlkILGMySUkXwcE5xUaYq 4KgvPUnYu6kjPQlg7WN0k2wHVNsbDdWN3eqi2dgOmJiPVmTieNku7NOnR4NEt/JO9ATz ZdzrhyDpyw/FR09fGxYgqNimPmD3POccBhxvo= 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=uZLQXf1J6vLHaU+m4bAv6jCv5vI8pZpqH3Os+6uqiRBd2M7YTN6D1mGy1+/VKFKAd0 IyCX8Vzq7lVvtiGT5gE+uewhRHfkrf8eqUxtV11PhTjsyxksC/8Bhn7UEw5MifccMkBO qM0XzcI0JxfwI1rds/mytjdr/YcDK6pRlbwoc= Received: by 10.216.88.65 with SMTP id z43mr2500182wee.5.1263835412414; Mon, 18 Jan 2010 09:23:32 -0800 (PST) Received: from ?127.0.0.1? (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id p37sm6203265gvf.8.2010.01.18.09.23.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Jan 2010 09:23:31 -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:22:23 +0100 Message-Id: <20100118172223.14623.60339.sendpatchset@localhost> In-Reply-To: <20100118171349.14623.90030.sendpatchset@localhost> References: <20100118171349.14623.90030.sendpatchset@localhost> Subject: [PATCH 62/64] tx493xide: 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] tx493xide: use ->pio_mode value to determine pair device speed Use the current PIO mode value instead of the physical maximum one 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/tx4938ide.c | 2 +- drivers/ide/tx4939ide.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 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/tx4938ide.c =================================================================== --- a/drivers/ide/tx4938ide.c +++ b/drivers/ide/tx4938ide.c @@ -64,7 +64,7 @@ static void tx4938ide_set_pio_mode(ide_h pair = ide_get_pair_dev(drive); if (pair) - safe = min(safe, ide_get_best_pio_mode(pair, 255, 5)); + safe = min(safe, pair->pio_mode - XFER_PIO_0); tx4938ide_tune_ebusc(pdata->ebus_ch, pdata->gbus_clock, safe); } Index: b/drivers/ide/tx4939ide.c =================================================================== --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c @@ -114,7 +114,7 @@ static void tx4939ide_set_pio_mode(ide_h pair = ide_get_pair_dev(drive); if (pair) - safe = min(safe, ide_get_best_pio_mode(pair, 255, 4)); + safe = min(safe, pair->pio_mode - XFER_PIO_0); /* * Update Command Transfer Mode for master/slave and Data * Transfer Mode for this drive.