Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbdGQVXB (ORCPT ); Mon, 17 Jul 2017 17:23:01 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:1863 "EHLO smtp2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751440AbdGQVW7 (ORCPT ); Mon, 17 Jul 2017 17:22:59 -0400 Subject: Re: [RFC PATCH v3] irqchip: Add support for tango interrupt router From: Mason To: Marc Zyngier , Thomas Gleixner Cc: Thomas Petazzoni , Jason Cooper , Mark Rutland , Thibaud Cornic , LKML , Linux ARM References: <657580dd-0cfe-e377-e425-0deabf6d20c3@free.fr> <20170606175219.34ef62b9@free-electrons.com> <24f34220-a017-f4e0-b72e-d1fdb014c0e1@free.fr> <9f384711-eef0-5117-b89c-9d2dc16e5ae5@free.fr> Message-ID: Date: Mon, 17 Jul 2017 23:22:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: <9f384711-eef0-5117-b89c-9d2dc16e5ae5@free.fr> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 29 On 17/07/2017 17:36, Mason wrote: > This controller maps 128 input lines to 24 output lines. > The output lines are routed to GIC SPI 0 to 23. > This driver muxes LEVEL_HIGH IRQs onto output line 0, > and gives every EDGE_RISING IRQ a dedicated output line. > --- > I think the driver is mostly finished. It works without > errors for my basic use-cases. I spotted a problem. Output lines are allocated for edge interrupts in tango_set_type() but they are never released. So if we insmod/rmmod modules in a loop, we will run out of output lines. It seems set_type() is not the right place for an allocation. Perhaps that should be done in tango_map()? I'll try to trace the code to figure out when the unmap function is called, as well. > There is one required feature missing: > suspend/resume support. > Should it be a separate patch, or just squashed > into this patch? That question still stands. Regards.