Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757935AbXHTNJU (ORCPT ); Mon, 20 Aug 2007 09:09:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751373AbXHTNJN (ORCPT ); Mon, 20 Aug 2007 09:09:13 -0400 Received: from maggie.spheresystems.co.uk ([82.71.70.17]:55457 "EHLO maggie.spheresystems.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752083AbXHTNJM (ORCPT ); Mon, 20 Aug 2007 09:09:12 -0400 X-Greylist: delayed 3092 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Aug 2007 09:09:11 EDT From: Andrew Bird To: linux-kernel@vger.kernel.org Subject: MTD_WRITE called by a kernel timer OK in 2.4.20? Date: Mon, 20 Aug 2007 13:17:35 +0100 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708201317.35885.ajb@spheresystems.co.uk> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 20 Hi, I'm trying to periodically write to flash on a small embedded device I'm playing with. I want to sync a buffer to flash every 15 seconds if it's dirty. I'm using a 2.4.20 kernel(not my choice) and have connected my buffer_write routine to a kernel timer both directly and also via a tasklet initiated by a kernel timer. Both methods give me an oops when attempting to write the flash. Is there anything basically wrong with this method? Will MTD_WRITE not function in interrupt context? It works just fine when called from an ioctl. Hope you can help Andrew - 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/