From patchwork Mon Jan 18 17:21:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 43108 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 96BAEB7C8E for ; Tue, 19 Jan 2010 04:23:49 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755391Ab0ARRXK (ORCPT ); Mon, 18 Jan 2010 12:23:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755423Ab0ARRXI (ORCPT ); Mon, 18 Jan 2010 12:23:08 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:34219 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755453Ab0ARRW6 (ORCPT ); Mon, 18 Jan 2010 12:22:58 -0500 Received: by fxm25 with SMTP id 25so686060fxm.21 for ; Mon, 18 Jan 2010 09:22:56 -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=1X58CTUPr4spoq8sH+EmknwDn0tz88yKc3NLH2pVlHc=; b=ABE0LHagWLJTAyYPTpFWpe0aQ+F9Lfj422yu4F2BdNHdutyt5TPrDe6oycdcJnO523 1xxx3viST09Ryc/ay2clJYhENEZ9ndCkzoStyA0sLdbID34cf7ed6T+OcfRBxi2ZS+iF cC8QLUHxJlvpeeU7XJCYTjWCApc0pWLYPPSkw= 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=OWSEuBLbbgtEm7M7Ztlokf7I/rntPOEqGuRXTrj1dkKMa1FEvdyIWxdw/LPIyxGbag h+iD2zMHk0rnLLy7oGqecCtbbhLrMbrhxFvSyxRn09Lv9pHoWsJinfPCfgAelI8Wm2Wp MXzrNQeAfKr0W3Ict9sJOJht/67+VIiuMbLiQ= Received: by 10.216.89.138 with SMTP id c10mr2130916wef.47.1263835376814; Mon, 18 Jan 2010 09:22:56 -0800 (PST) Received: from ?127.0.0.1? (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id j8sm6620867gvb.17.2010.01.18.09.22.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Jan 2010 09:22:56 -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:48 +0100 Message-Id: <20100118172148.14623.18579.sendpatchset@localhost> In-Reply-To: <20100118171349.14623.90030.sendpatchset@localhost> References: <20100118171349.14623.90030.sendpatchset@localhost> Subject: [PATCH 57/64] cs5535: 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] cs5535: 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/cs5535.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/cs5535.c =================================================================== --- a/drivers/ide/cs5535.c +++ b/drivers/ide/cs5535.c @@ -86,7 +86,7 @@ static void cs5535_set_speed(ide_drive_t cmd = pioa = speed - XFER_PIO_0; if (pair) { - u8 piob = ide_get_best_pio_mode(pair, 255, 4); + u8 piob = pair->pio_mode - XFER_PIO_0; if (piob < cmd) cmd = piob;