Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964956AbVKVO6J (ORCPT ); Tue, 22 Nov 2005 09:58:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964958AbVKVO6J (ORCPT ); Tue, 22 Nov 2005 09:58:09 -0500 Received: from zproxy.gmail.com ([64.233.162.207]:23979 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S964956AbVKVO6I convert rfc822-to-8bit (ORCPT ); Tue, 22 Nov 2005 09:58:08 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=He3P3eZDcppwnnmY88bqJcwu6zhWt9bCrsiL3+51czVsoQTzIrJeQepSudEX8e9iIR/9bkCN7htp13F/++975+EokREl0DyWorvXFRHxAtRhnCI5ysqaOvYmKZq/ARWBhSvj3TlWBUSjpW2YqX4/vp8NEe2zJ+oPCdga7zu2CEQ= Message-ID: Date: Tue, 22 Nov 2005 15:58:07 +0100 From: Franck To: lkml Subject: How can I prevent MTD to access the end of a flash device ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 24 Hi, I have two questions that I can't answer by my own. I tried to look at FAQ and documentation on MTD website but found no answer. First question is about size of flash. I have a Intel strataflash whose size is 32MB but because of a buggy platform hardware I can't access to the last 64KB of the flash. How can I make MTD module aware of this new size. The restricted map size is initialized by my driver but it doesn't seem to be used by MTD. The second question is about the "cacheable" mapping field in map_info structure. I looked at others drivers and this field seems to be optional. Does this field, if set, improve flash access a lot ? Should I set up a cacheable mapping ? Thanks -- Franck - 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/