From patchwork Thu Nov 19 11:57:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 7656661 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EC743BF90C for ; Thu, 19 Nov 2015 11:58:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B637206A0 for ; Thu, 19 Nov 2015 11:58:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2AB4220699 for ; Thu, 19 Nov 2015 11:58:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757831AbbKSL6C (ORCPT ); Thu, 19 Nov 2015 06:58:02 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:45981 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754723AbbKSL6A (ORCPT ); Thu, 19 Nov 2015 06:58:00 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAJBvewT027544; Thu, 19 Nov 2015 05:57:40 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAJBve8W023791; Thu, 19 Nov 2015 05:57:40 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Thu, 19 Nov 2015 05:57:40 -0600 Received: from [172.22.234.155] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAJBvbaJ001116; Thu, 19 Nov 2015 05:57:38 -0600 Subject: Re: [BISECTED] v4.4-rc1 GPIO regression on OMAP1 To: Aaro Koskinen References: <20151117214212.GB18138@blackmetal.musicnaut.iki.fi> <564C75FE.5000303@ti.com> <20151118183106.GC18138@blackmetal.musicnaut.iki.fi> CC: Linus Walleij , Tony Lindgren , Javier Martinez Canillas , Santosh Shilimkar , Kevin Hilman , , From: Grygorii Strashko Message-ID: <564DB931.8090904@ti.com> Date: Thu, 19 Nov 2015 13:57:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151118183106.GC18138@blackmetal.musicnaut.iki.fi> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 11/18/2015 08:31 PM, Aaro Koskinen wrote: > Hi, > > On Wed, Nov 18, 2015 at 02:58:38PM +0200, Grygorii Strashko wrote: >> On 11/17/2015 11:42 PM, Aaro Koskinen wrote: >>> Amstrad E3 computer (OMAP1) boot crashes early with v4.4-rc1. Bisected to: >>> >>> 450fa54cfd66e3dda6eda26256637ee8928af12a is the first bad commit >>> commit 450fa54cfd66e3dda6eda26256637ee8928af12a >>> Author: Grygorii Strashko >>> Date: Fri Sep 25 12:28:03 2015 -0700 >>> >>> gpio: omap: convert to use generic irq handler >> >> Could you check pls if below change will solve this issue, pls? >> >> iff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c >> index 56d2d02..2905e0d 100644 >> --- a/drivers/gpio/gpio-omap.c >> +++ b/drivers/gpio/gpio-omap.c >> @@ -1129,7 +1129,7 @@ static int omap_gpio_chip_init(struct gpio_bank *bank, >> struct irq_chip *irqc) >> } >> >> ret = gpiochip_irqchip_add(&bank->chip, irqc, >> - irq_base, handle_bad_irq, >> + irq_base, handle_simple_irq, >> IRQ_TYPE_NONE); > Thanks for testing it. But I'd like to ask you for more help here if possible :) Above change is expected to fix the OMAP1 boot, but looking at the OMAP GPIO code I think that MPUIO IRQ are not working :( and this functionality has been broken long time ago - commit "gpio: omap: convert to use generic irq handler" has just made hidden issue visible. (I've found only one OMAP1 board which uses MPUIO GPIO as IRQ (board-osk.c)). So, could I ask you to test another change instead of previous one? In my opinion real test will be - request(any MPUIO GPIO IRQ, IRQF_TRIGGER_LOW/HIGH), - trigger MPUIO GPIO IRQ - free(MPUIO GPIO IRQ) --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1122,8 +1122,6 @@ static int omap_gpio_chip_init(struct gpio_bank *bank, struct irq_chip *irqc) /* MPUIO is a bit different, reading IRQ status clears it */ if (bank->is_mpuio) { irqc->irq_ack = dummy_irq_chip.irq_ack; - irqc->irq_mask = irq_gc_mask_set_bit; - irqc->irq_unmask = irq_gc_mask_clr_bit; if (!bank->regs->wkup_en) irqc->irq_set_wake = NULL; }