Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp559999imm; Wed, 23 May 2018 01:31:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqOkEEo/Eh6PEdbwYMu/9hyeGqOC84a7Yaf/1+pbAhYpBXm9Lj1i9kTysUIelG3RbFn0QyT X-Received: by 2002:a17:902:694b:: with SMTP id k11-v6mr2021966plt.334.1527064302343; Wed, 23 May 2018 01:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527064302; cv=none; d=google.com; s=arc-20160816; b=hditqvxG+B+kfAUdrUI/oFKHjgFLBUUNi/eqgAsQuuR5IdLK9/wuZJETAMnuW9AvCy ny76VTKdUPTP3AR/SxWycYA+fRrN2eX48HjmuLDreHYwisZbHt+GwCS2BPXvABjGFshp QyTbxZWhjiclgHHHMHTQXCJbMRhT7JV/kzm7NH4vytsCk+wjSShN/NRzbou+lpwdinGd oIXyfofnRLObkFI+z+P/2uu4sdRWSo7YJHAQYfat5qFaC+xiV60wvMT1f9QweBsHwROg IJWzzgleXcLTV8TZcgywgzWbRWUHKAdMO7zlUZYlAabeO38yVeYRZdKV2NhfFsn3M8F1 OlLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bAst3wtx8wdbGYLFYY/YUfLdK9PG3S4FaAJIP/3PeGY=; b=g8/DXI2Q3VOPwoFtIrkvG0u87672HGwspusgcRQ1JITB52P6K/SE54iPiNTRa2ujkX HjhnOdYtFjXgP4NbvOwEEPIcaxc1eZwlRv8SCPPDDyaS5pgI8YgFX8dfvriJ7UfRiNsb KfzzlTT1t7r4xfahy9wih8eEjf6p/aKRFpJAhOP7Ew0eII5JDcJJZpDVbGUKs72Ed4MN D/9K4XfNToP3oyEM0kioJDEYPQX3qe/pNHkbA/EwbOTOV0wfNTkbk56e4IqMVQCN8Lde wVSwb6O+5ILANq61lcHIN8syq+c0LKclNrm6JlwGInIZ1KDuylWNkQ9SmxOF0i1pdoRy jNNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GCpx/ClL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18-v6si19159653pfl.359.2018.05.23.01.31.27; Wed, 23 May 2018 01:31:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GCpx/ClL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754651AbeEWI3c (ORCPT + 99 others); Wed, 23 May 2018 04:29:32 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:54791 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754614AbeEWI3W (ORCPT ); Wed, 23 May 2018 04:29:22 -0400 Received: by mail-it0-f67.google.com with SMTP id z6-v6so3346277iti.4 for ; Wed, 23 May 2018 01:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bAst3wtx8wdbGYLFYY/YUfLdK9PG3S4FaAJIP/3PeGY=; b=GCpx/ClLc9XthpB9Y29h87+bTldUNu0dZajROo71MGdkleSdfV8rWdFAlcpeJIklv/ 6ArmTX2PRD8V6J7vzxiZ0/2ekZaFShEw2Ln3LGHjS3vXRE5iPltQ4NgiDbyz2Dj9O6ZW 74LIT/7wBkB4f8cb4iAChPsRlbRleLEeYtH8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bAst3wtx8wdbGYLFYY/YUfLdK9PG3S4FaAJIP/3PeGY=; b=I8WRxZCykN5a84qZr5RC2N0ZiXdyjF9WbXRirZf2CzZvVU1kApHV9Qcu3Xz/+J1iuV 5y0LGX940qlQyeoCYV1w1cZbN0oAgWdURHPMqtM2vgiLSPvVT05IPmrVmxEQHhrpzSlY zrKd0eGLetQe1RelkUxuD7Ifqyzzzfi5Cl3h/BP8TNQ7OI6El7Oy4AI92Jbz95v4lr+2 taCZ4SDV+SaOuecN3QFVfhA1hDV7yeUhqpxsRRwovryHhVZUzyx9SmpN0vBKebns68/d 1CgR834RyBwZILJLptoVwxM7W6W44CqwY3BJ3VwOCL3fkxZ8G8iGqmvYkB+2FY/Ctzch /SIQ== X-Gm-Message-State: ALKqPwdpmJeMEXiMSJ9VFedMObS8hYBx6+estOBT5RgjLBB8sJG7djdE ZKNZSjgZ94EA8xYMVEKJA4gpmCsLEwM8XJA3lYmILg== X-Received: by 2002:a24:c146:: with SMTP id e67-v6mr4180988itg.70.1527064161754; Wed, 23 May 2018 01:29:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:4c95:0:0:0:0:0 with HTTP; Wed, 23 May 2018 01:29:20 -0700 (PDT) In-Reply-To: <1526027497-32556-1-git-send-email-phil.edworthy@renesas.com> References: <1526027497-32556-1-git-send-email-phil.edworthy@renesas.com> From: Linus Walleij Date: Wed, 23 May 2018 10:29:20 +0200 Message-ID: Subject: Re: [PATCH v6] gpio: dwapb: Add support for 1 interrupt per port A GPIO To: Phil Edworthy Cc: Andy Shevchenko , Hoan Tran , Mark Rutland , Rob Herring , Lee Jones , Michel Pollet , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 11, 2018 at 10:31 AM, Phil Edworthy wrote: > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > per GPIO in port A, but the driver currently only supports 1 interrupt. > See the DesignWare DW_apb_gpio Databook description of the > 'GPIO_INTR_IO' parameter. > > This change allows the driver to work with up to 32 interrupts, it will > get as many interrupts as specified in the DT 'interrupts' property. > It doesn't do anything clever with the different interrupts, it just calls > the same handler used for single interrupt hardware. > > Signed-off-by: Phil Edworthy > Reviewed-by: Rob Herring > Acked-by: Lee Jones > --- > One point to mention is that I have made it possible for users to have > unconnected interrupts by specifying holes in the list of interrupts. This is > done by supporting the interrupts-extended DT prop. > However, I have no use for this and had to hack some test case for this. > Perhaps the driver should support 1 interrupt or all GPIOa as interrupts? > > v6: > - Treat DT and ACPI the same as much as possible. Note that we can't use > platform_get_irq() to get the DT interrupts as they are in the port > sub-node and hence do not have an associated platform device. I already applied this patch in some version, can you check what is in my devel branch and send incremental patches on top if something needs changing? https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/commit/?h=devel&id=e6ca26abd37606ba4864f20c85d3fe4a2173b93f Sorry for not knowing by heart what was applied or when, it's just too much for me sometimes. Yours, Linus Walleij