From patchwork Mon Jan 18 17:16:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 43093 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 41453B7CCD for ; Tue, 19 Jan 2010 04:20:10 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754815Ab0ARRRx (ORCPT ); Mon, 18 Jan 2010 12:17:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754125Ab0ARRRv (ORCPT ); Mon, 18 Jan 2010 12:17:51 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:57477 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754815Ab0ARRRt (ORCPT ); Mon, 18 Jan 2010 12:17:49 -0500 Received: by mail-fx0-f225.google.com with SMTP id 25so680400fxm.21 for ; Mon, 18 Jan 2010 09:17:48 -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=mVqEC5lJRctDacra33xAzcyPwy9ZHeb2AAwc9m27egQ=; b=nYMDSOyQIbSutgHd59lrVxkIBuUhI8VS1vMQaq8bMTHibISInhba1VPjehIHv0y+2Y sDemfc/12o3/2QJce6nyr+vhZmnZ4hErTiE72HFK2nsrr84GAnYJuYlZf0X1yUEoT2kU yHQ+WFGlGUf4aQxM7W9kqRjo4QgLrnZLJYFXk= 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=ClLsyoGPJT88WHnJ12AWZCKdwQsFjdZESSK6SDvU2ysQboqvfsXPjOLy7ajWtB1ceV ajXv9Es8dgIsFdE6ncyCbaY0tBM49vBTwW/A3LI03ubY+jrJrkeQ40+hnTyCbHZZrLVS VPQFgsA4iWVb2s7gIptiFrtINRMx81ucxv6wk= Received: by 10.216.89.135 with SMTP id c7mr246291wef.62.1263835067994; Mon, 18 Jan 2010 09:17:47 -0800 (PST) Received: from ?127.0.0.1? (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id n12sm5631677gve.14.2010.01.18.09.17.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Jan 2010 09:17:46 -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:16:38 +0100 Message-Id: <20100118171638.14623.85773.sendpatchset@localhost> In-Reply-To: <20100118171349.14623.90030.sendpatchset@localhost> References: <20100118171349.14623.90030.sendpatchset@localhost> Subject: [PATCH 19/64] pata_serverworks: fix PIO setup for the second channel Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Bartlomiej Zolnierkiewicz Subject: [PATCH] pata_serverworks: fix PIO setup for the second channel Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ata/pata_serverworks.c | 3 ++- 1 file changed, 2 insertions(+), 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/ata/pata_serverworks.c =================================================================== --- a/drivers/ata/pata_serverworks.c +++ b/drivers/ata/pata_serverworks.c @@ -1,6 +1,7 @@ /* * pata_serverworks.c - Serverworks PATA for new ATA layer * (C) 2005 Red Hat Inc + * (C) 2010 Bartlomiej Zolnierkiewicz * * based upon * @@ -232,7 +233,7 @@ static void serverworks_set_piomode(stru if (serverworks_is_csb(pdev)) { pci_read_config_word(pdev, 0x4A, &csb5_pio); csb5_pio &= ~(0x0F << devbits); - pci_write_config_byte(pdev, 0x4A, csb5_pio | (pio << devbits)); + pci_write_config_word(pdev, 0x4A, csb5_pio | (pio << devbits)); } }