From owner-cvs-src-old@FreeBSD.ORG Wed Feb 16 20:07:55 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F3CA10656C0 for ; Wed, 16 Feb 2011 20:07:55 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F013A8FC15 for ; Wed, 16 Feb 2011 20:07:54 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p1GK7sL5017010 for ; Wed, 16 Feb 2011 20:07:54 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p1GK7s9P017009 for cvs-src-old@freebsd.org; Wed, 16 Feb 2011 20:07:54 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <201102162007.p1GK7s9P017009@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Wed, 16 Feb 2011 20:07:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/flash mx25l.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 20:07:55 -0000 adrian 2011-02-16 20:07:44 UTC FreeBSD src repository Modified files: sys/dev/flash mx25l.c Log: SVN rev 218747 on 2011-02-16 20:07:44Z by adrian Modify the spi flash driver to allow smaller read IO sizes, but enforce the larger, aligned write+erase sizes the driver currently implements. This preserves write behaviour but makes the flash driver usable for things like a read-only FFS or a geom_uzip/geom_compress . Note that since GEOM will now return the sector size as being smaller, writes of sector size/alignment will now fail with an EIO. Code which writes to the flash device will have to be (for now) manually taught about the flash write blocksize. Revision Changes Path 1.8 +18 -17 src/sys/dev/flash/mx25l.c