Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750971AbWEWROo (ORCPT ); Tue, 23 May 2006 13:14:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750941AbWEWROo (ORCPT ); Tue, 23 May 2006 13:14:44 -0400 Received: from 131.103.46-69.q9.net ([69.46.103.131]:17000 "EHLO exchange.gtcorp.com") by vger.kernel.org with ESMTP id S1750811AbWEWROo (ORCPT ); Tue, 23 May 2006 13:14:44 -0400 Subject: Compact Flash Serial ATA patch From: Russell McConnachie To: linux-kernel@vger.kernel.org Content-Type: multipart/mixed; boundary="=-vk4aXg/h4hPBBBYc/mNv" Date: Tue, 23 May 2006 04:16:37 -0600 Message-Id: <1148379397.1182.4.camel@gt-alphapbx2> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2671 Lines: 51 --=-vk4aXg/h4hPBBBYc/mNv Content-Type: text/plain Content-Transfer-Encoding: 7bit I was having some trouble with a serial ATA compact flash adapter with libata. I wrote a small patch for the kernel to work around the sanity check, dma blacklisting and device ID detections in ata_dev_classify(). I am not exactly a programmer, I'm sure this can be written much better but for anyone who may run into a similar problem with compact flash. Russell McConnachie. --=-vk4aXg/h4hPBBBYc/mNv Content-Disposition: attachment; filename=linux-2.6.16.16-compactflash-sata.patch Content-Type: text/x-patch; name=linux-2.6.16.16-compactflash-sata.patch; charset=us-ascii Content-Transfer-Encoding: base64 ODIyLDgyNWM4MjIsODQ1DQo8IAkgICAgKCh0Zi0+bGJhbSA9PSAweDNjKSAmJiAodGYtPmxiYWgg PT0gMHhjMykpKSB7DQo8IAkJRFBSSU5USygiZm91bmQgQVRBIGRldmljZSBieSBzaWdcbiIpOw0K PCAJCXJldHVybiBBVEFfREVWX0FUQTsNCjwgCX0NCi0tLQ0KPiAJCS8vIEFsbG93cyB0aGUgY29t cGFjdCBmbGFzaCB0byB3b3JrLCBG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MzNSwxMzM2YzEzNTcsMTM1OA0KPCAJCWlmICgh YXRhX2lkX2lzX2F0YShkZXYtPmlkKSkJLyogc2FuaXR5IGNoZWNrICovDQo8IAkJCWdvdG8gZXJy X291dF9ub3N1cDsNCi0tLQ0KPiAvLwkJaWYgKCFhdGFfaWRfaXNfYXRhKGRldi0+aWQpKQkvKiBz YW5pdHkgY2hlY2sgKi8NCj4gLy8JCQlnb3RvIGVycl9vdXRfbm9zdXA7DQoyMjM1YTIyNTgsMjI2 MA0KPiAJIk1PREVMIiwNCj4gCSJTTUkgTU9ERUwiLA0KPiAJIlNhbkRpc2sgU0RDRkgtMjA0OCIs DQo= --=-vk4aXg/h4hPBBBYc/mNv-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/