Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763581AbXE1VF6 (ORCPT ); Mon, 28 May 2007 17:05:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760134AbXE1VFr (ORCPT ); Mon, 28 May 2007 17:05:47 -0400 Received: from ug-out-1314.google.com ([66.249.92.169]:64621 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181AbXE1VFq (ORCPT ); Mon, 28 May 2007 17:05:46 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=VK5iKbXPLittTymmZik4sXfJ1iLK0v3PBfX4s8thFNjndW2Kd2e/PKd1YJVrj7uv+aoW6VMJI7BY4aohBAUvEP91QdhT7ALHA/NjZ5fXYSaK6EJG/UUCa+w2abEYct4V4+EVLO0SWWgCYxcOVcPcjyO6luev3UjOzay1KBkxJug= From: Bartlomiej Zolnierkiewicz To: Junio C Hamano Subject: Re: [PATCH 3/3] Make ide dma blacklist handling a bit saner. Date: Mon, 28 May 2007 21:41:42 +0200 User-Agent: KMail/1.9.6 Cc: Alan Cox , Linux Kernel , linux-ide@vger.kernel.org, Dave Jones References: <20070521145042.GA6957@redhat.com> <7v3b1pbgeo.fsf_-_@assigned-by-dhcp.cox.net> <7vps4ta1iy.fsf_-_@assigned-by-dhcp.cox.net> In-Reply-To: <7vps4ta1iy.fsf_-_@assigned-by-dhcp.cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705282141.42507.bzolnier@gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1887 Lines: 46 Hi, On Tuesday 22 May 2007, Junio C Hamano wrote: > Earlier, the matching of (model,rev) in ide-dma black/white list > handling was to consider "ALL" in the table to match any > revision. This changes the wildcard to NULL. This way, the > DMA_BLACK_LIST macro used in the previous patch does not have to > use a slightly funky compile time constant expression to convert > NULL to "ALL". > > Signed-off-by: Junio C Hamano The change itself looks good but IMO it is worth doing it before patch #2/3 (it would also make it possible for me to merge this patch immediately). When it comes to patch #2 - Alan's comment may be a bit harsh but he seems to be right - there should be a common library-like file (ata-blacklist.c or ata-quirks.c or whatever name you like) containing ata_device_blacklist[]. This would require slight modification of ide_in_drive_list() to teach it about ATA_HORKAGE_DMA but as I see from this patch this shouldn't be a problem for you. ;) Please also note that is used by both IDE and libata so it should be a good place to put struct ata_blacklist_entry and ATA_HORKAGE_* macros. Care to respin both patches? > * I do not really know what I am doing in the mips area, but > that architecture specific table seems to be used by the same > ide_in_drive_list() function, so the entries are matched to > the updated code. Yep, thanks for not breaking AMD Alchemy IDE suppport. It looks like au1xxx_ide.h should really be in drivers/ide/mips because it is only included from drivers/ide/mips/au1xxx_ide.c - could somebody verify this and send me a patch? Thanks, Bart - 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/