Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754033AbbKBPkF (ORCPT ); Mon, 2 Nov 2015 10:40:05 -0500 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:33544 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753992AbbKBPj6 (ORCPT ); Mon, 2 Nov 2015 10:39:58 -0500 Date: Mon, 2 Nov 2015 16:39:50 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Guenter Roeck Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Niklas Cassel Subject: Re: [PATCH -next] serial: etraxfs-uart: Fix crash Message-ID: <20151102153950.GX4931@pengutronix.de> References: <1446431576-4385-1-git-send-email-linux@roeck-us.net> <20151102073755.GN4931@pengutronix.de> <56377350.7040005@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56377350.7040005@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2198 Lines: 54 On Mon, Nov 02, 2015 at 06:29:36AM -0800, Guenter Roeck wrote: > On 11/01/2015 11:37 PM, Uwe Kleine-K?nig wrote: > >Hello, > > > >On Sun, Nov 01, 2015 at 06:32:56PM -0800, Guenter Roeck wrote: > >>Since commit 7d8c70d8048c ("serial: mctrl-gpio: rename init function"), > >>crisv32 either do not build or crash as follows. > >> > >>Unable to handle kernel NULL pointer dereference > >>Linux 4.3.0-rc7-next-20151101 #1 Sun Nov 1 11:41:28 PST 2015 > >>... > >>Call Trace: [] show_stack+0x0/0x9e > >>[] printk+0x0/0x2c > >>[] show_registers+0x14a/0x1c2 > >>[] printk+0x0/0x2c > >>[] die_if_kernel+0x7c/0x9e > >>[] do_page_fault+0x32e/0x3e6 > >>[] of_get_property+0x0/0x2c > >>[] of_irq_parse_raw+0x12a/0x376 > >>[] of_get_property+0x0/0x2c > >>[] get_page_from_freelist+0x73e/0x856 > >>[] of_get_property+0x0/0x2c > >>[] d_mmu_refill+0x10a/0x112 > >>[] devm_kmalloc+0x40/0x56 > >>[] add_dr+0xc/0x1c > >>[] devm_add_action+0x2/0x4e > >>[] mctrl_gpio_init_noauto+0x1c/0x76 > >>[] mctrl_gpio_init+0x22/0x110 > > > >There should be a warning at compile time about mismatching parameters. > > > >>The function call in the etraxfs-uart driver was not renamed, > >>possibly due to interference with commit 7b9c5162c182 ("serial: > >>etraxfs-uart: use mctrl_gpio helpers for handling modem signals"). > > > >Yes. BTW, 7b9c5162c182 looks broken, too, because the interrupt handling > >is missing. > > > > I can not comment on that; all I can say is that it works for me with qemu. What does "works for me" mean? You get output on the qemu console? Fine, but that also works if you don't do any handshaking at all I guess. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- 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/