Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265170AbUFROTT (ORCPT ); Fri, 18 Jun 2004 10:19:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265168AbUFROTT (ORCPT ); Fri, 18 Jun 2004 10:19:19 -0400 Received: from stat1.steeleye.com ([65.114.3.130]:27555 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S265170AbUFROTK (ORCPT ); Fri, 18 Jun 2004 10:19:10 -0400 Subject: Re: Proposal for new generic device API: dma_get_required_mask() From: James Bottomley To: Jeremy Higdon Cc: Linux Kernel , SCSI Mailing List In-Reply-To: <20040618055909.GA13007@sgi.com> References: <1087481331.2210.27.camel@mulgrave> <20040618055909.GA13007@sgi.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9) Date: 18 Jun 2004 09:19:00 -0500 Message-Id: <1087568345.2135.10.camel@mulgrave> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 661 Lines: 17 On Fri, 2004-06-18 at 00:59, Jeremy Higdon wrote: > Sounds good. But I'm curious why you make the driver call dma_set_mask() > twice. Basically so that dma_get_required_mask() returns a value that may be related to the current mask. If the device has a wierd mask setting (say it has bits missing or something), the platform may want to return something different to tune the required mask to be optimal. James - 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/