Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272246AbTHFScx (ORCPT ); Wed, 6 Aug 2003 14:32:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272281AbTHFScx (ORCPT ); Wed, 6 Aug 2003 14:32:53 -0400 Received: from mion.elka.pw.edu.pl ([194.29.160.35]:1184 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S272246AbTHFSco (ORCPT ); Wed, 6 Aug 2003 14:32:44 -0400 Date: Wed, 6 Aug 2003 20:32:23 +0200 (MET DST) From: Bartlomiej Zolnierkiewicz To: Erik Andersen cc: Andries Brouwer , Alan Cox , Marcelo Tosatti , Subject: Re: [PATCH] ide-disk.c rev 1.13 killed CONFIG_IDEDISK_STROKE In-Reply-To: <20030806181142.GD25910@codepoet.org> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-959030623-1060194743=:10247" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 16119 Lines: 287 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-959030623-1060194743=:10247 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 6 Aug 2003, Erik Andersen wrote: > > Can you please resend me the patch once its accepted in 2.6 ? > > > > Maybe we want to test it a while in -ac, also? > > Ok. Though it is being incorporated as part of a much larger > patch in 2.6. I suppose that will filter back into 2.4 when > it is ready, Hi Erik, I made init_idedisk_capacity() cleanup. Then I ported your patch and reworked it a bit. Could you take a look? Thanks, -- Bartlomiej ---559023410-959030623-1060194743=:10247 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ide-disk-capacity-init-cleanup.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="ide-disk-capacity-init-cleanup.patch" DQppZGU6IGluaXRfaWRlZGlza19jYXBhY2l0eSgpIGNsZ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=:10247 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ide-disk-hpa-fixup.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="ide-disk-hpa-fixup.patch" DQppZGU6IGZpeCBDT05GSUdfSURFRElTS19TVFJPS0Ugc3VwcG9ydCBpbiBp ZGUtZGlzay5jDQoNCk9yaWdpbmFsIHBhdGNoIGZyb20gRXJpayBBbmRlcnNl biA8YW5kZXJzZW5AY29kZXBvZXQub3JnPjoNCi0gZml4IENPTkZJR19JREVE SVNLX1NUUk9LRSBieSBhZGRpbmcgcHJvcGVyIGRldGVjdGlvbiBvZiBIUEEg ZmVhdHVyZSBzZXQNCiAgYW5kIHJlbW92aW5nIElERV9TVFJPS0VfTElNSVQN Ci0gcmVtb3ZlIGlycmVsZXZhbnQgaWRlZGlza19zdXBwb3J0c19ob3N0X3By b3RlY3RlZF9hcmVhKCkNCi0gbWFrZSB0aGUgSFBBIGRldGVjdGlvbiBhY3R1 YWxseSBkaXNwbGF5IHVzZWZ1bCBpbmZvcm1hdGlvbg0KDQpJJ3ZlIHJld29y a2VkIGl0IGEgYml0Og0KLSBkZXRlY3QgSFBBIGJlZm9yZSBjYWxjdWxhdGlu ZyBkcml2ZSdzIGdlb21ldHJ5DQotIG1vdmUgSFBBIGRldGVjdGlvbiBvdXRz aWRlIGluaXRfaWRlZGlza19jYXBhY2l0eSgpDQogIHRvIGlkZWRpc2tfY2hl Y2tfaHBhX2xiYTI4KCkgYW5kIGlkZWRpc2tfY2hlY2tfaHBhX2xiYTQ4KCkN Ci0gcmVzcGVjdCA4MC1jb2x1bW4gbGltaXQNCg0KIGRyaXZlcnMvaWRlL2lk ZS1kaXNrLmMgfCAgMTI4ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysr LS0tLS0tLS0tLS0tLS0tLS0tLS0NCiAxIGZpbGVzIGNoYW5nZWQsIDc4IGlu c2VydGlvbnMoKyksIDUwIGRlbGV0aW9ucygtKQ0KDQpkaW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19TVFJP S0UgKi8NCi0JCXByaW50ayhLRVJOX0lORk8gIiVzOiBzZXRtYXggTEJBICVs dSwgbmF0aXZlICAlbHVcbiIsDQotCQkJZHJpdmUtPm5hbWUsIHNldF9tYXgs IGNhcGFjaXR5KTsNCi0jZW5kaWYgLyogQ09ORklHX0lERURJU0tfU1RST0tF ICovDQorCX0gZWxzZSB7DQorCQkvKiBkcml2ZSBzcGVha3MgYm9yaW5nIG9s ZCAyOC1iaXQgQ0hTICovDQorCQlkcml2ZS0+Y2FwYWNpdHkgPSBkcml2ZS0+ Y3lsICogZHJpdmUtPmhlYWQgKiBkcml2ZS0+c2VjdDsNCiAJfQ0KLQlkcml2 ZS0+Y2FwYWNpdHkgPSBjYXBhY2l0eTsNCiB9DQogDQogc3RhdGljIHVuc2ln bmVkIGxvbmcgaWRlZGlza19jYXBhY2l0eSAoaWRlX2RyaXZlX3QgKmRyaXZl KQ0KDQpfDQo= ---559023410-959030623-1060194743=:10247-- - 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/