Received: by 10.192.165.156 with SMTP id m28csp961695imm; Wed, 18 Apr 2018 01:16:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+sXGYA/gweL5dOlpRyfPHAKD2+m80O7zL4HMb6wkSNVLdCJwJ2v1QznJK2VSIlUUbZ7xhP X-Received: by 10.101.81.131 with SMTP id h3mr971824pgq.110.1524039362499; Wed, 18 Apr 2018 01:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524039362; cv=none; d=google.com; s=arc-20160816; b=d9savkUQmJDkt6FR9mJCQkPFycccllNJP1EjMT2PodURSq0HYFWbZqqmp7LskU5Yos v3TV213AIzywvVNLFUwjWfW3BG9nxNEzbAUbQTFHoT+yH8Wk0ed1yxuTRDFKFjBAtm/I tRXBQk3mibeaCqY8GySEBvWcNwiVGsebsShWnOxjcEpPV6d12EIS/kf1Pfqmd+XTF/rS WHkprjuAXYvHW89Wyx6P/VZVXtn8pLUAtcWe9J5hgK61aiFOa2Yf2VUAnONE28pl6f86 0Zf2/MjoQW3ti8Hby1ZLiDIA85FTtP7wUiMqOWjWpPXf5o0k4iGRfElllHBS+EqqzMCo 4Nqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ZKxxgQLnsX25S0gVWTLm6SvnpLz0vNAVSgwuypt8SHE=; b=zmfGtctL5+w6e0f7Bqz4KV/V9eg0ASWt6RKdKl01+9RlEAS1AWzzPu8gvaXHClOSjV btN6GpciSTvzrWw9dSUKM8ozVecsF7gp0dDQT7ZiSvMTyeOEcSCTlOhXv8d5c8uQUZrs x79ZvzV+t0/bMolheO27wR5OngaHi/6VaAIZYHbL65jTKLJ+wykelr/zbL5WxlFACMav W3Rz8WYBP1fftm/D4VIVIXlvFJpYZ8HkxLAcOrahmSj7/NJz96/tE0zBxl/8i1kCMPl9 JHWeJR5lq6OXKIm/nEphsK5jZ+oz2YGtxLJHPmvnuJXwPXk+DXySt+eVnj7OLbW1b4mu uM8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b55mEYQ2; 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 k7si630719pgo.149.2018.04.18.01.15.48; Wed, 18 Apr 2018 01:16:02 -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=b55mEYQ2; 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 S1753694AbeDRIOc (ORCPT + 99 others); Wed, 18 Apr 2018 04:14:32 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:35118 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753254AbeDRINR (ORCPT ); Wed, 18 Apr 2018 04:13:17 -0400 Received: by mail-wr0-f193.google.com with SMTP id w3-v6so2241712wrg.2 for ; Wed, 18 Apr 2018 01:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ZKxxgQLnsX25S0gVWTLm6SvnpLz0vNAVSgwuypt8SHE=; b=b55mEYQ2BJ6Oelk/fE6bVWeJUpoWLRuT82Oj0FZ69vpkuJxczMC6bOXJ8WGtFIkNL0 zD/w4cTqUKw7u4avMrGsD6x3gRyzA0GYCnRGhnZ55zbsC1EtvXhcLreLWzmWWNyy+SyV HPFTBZRP2Slf7aDFGmQpqDY5NRg8t0ul2j4g4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ZKxxgQLnsX25S0gVWTLm6SvnpLz0vNAVSgwuypt8SHE=; b=DmsCJYlWK4QmE2dSxfgZcTLWixEtgGnaFdV++mHT0zL50kfE4I62hvhZyrntT+aD7h rmxfH0xamcr2a06467QcgV6wH2lXefiZJS5XriKefS9ekbshY1DHBo5T0DPUk03zLbyl 1dtky1eU0REgEWQ05A1DNnteH33ZolC2whhhyHXuB9AXnM+RaGmKK6BYPyh8Ed0SIdSO lxqwNUAgsoxvqS2DmOF1L2rod2leLPwe2a+aeJ6r1xztV6pN5+OE96SROAltDNWUccJ/ o7IOUwO3zyiXbHDuvkBVu/qFlS7KtsSoT1aNZIMB0WEAvfh7QY0q0ISUSryBYG6AVfz9 vPJQ== X-Gm-Message-State: ALQs6tAV0Dutn8Sgoc/uyfBxF1H8CjAHlIR31ZQVNvHoNoiynMPaLe08 8ooVi6TUzYyjM7b7vSg1QXDLNQ== X-Received: by 2002:adf:9205:: with SMTP id 5-v6mr849405wrj.282.1524039196438; Wed, 18 Apr 2018 01:13:16 -0700 (PDT) Received: from dell ([2.27.167.70]) by smtp.gmail.com with ESMTPSA id q4-v6sm333401wrd.33.2018.04.18.01.13.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 01:13:15 -0700 (PDT) Date: Wed, 18 Apr 2018 09:13:13 +0100 From: Lee Jones To: Phil Edworthy Cc: Hoan Tran , Linus Walleij , Rob Herring , Mark Rutland , Andy Shevchenko , Michel Pollet , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] gpio: dwapb: Add support for 1 interrupt per port A GPIO Message-ID: <20180418081313.dqxdtjqmw4z27uny@dell> References: <1523968977-4241-1-git-send-email-phil.edworthy@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1523968977-4241-1-git-send-email-phil.edworthy@renesas.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Apr 2018, 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 > --- > One point to mention is that I have made it possible for users to have > unconncted 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? > > v4: > - Use of_irq_get() instead of of_irq_parse_one()+irq_create_of_mapping() > v3: > - Rolled mfd: intel_quark_i2c_gpio fix into this patch to avoid bisect problems > v2: > - Replaced interrupt-mask DT prop with support for the interrupts-extended > prop. This means replacing the call to irq_of_parse_and_map() with calls > to of_irq_parse_one() and irq_create_of_mapping(). > > Note: There are a few *code* lines over 80 chars, but this is just guidance, > right? Especially as there are already some lines over 80 chars. > > snps:gpio fix > > Signed-off-by: Phil Edworthy > --- > .../devicetree/bindings/gpio/snps-dwapb-gpio.txt | 9 +++-- > drivers/gpio/gpio-dwapb.c | 42 +++++++++++++++++----- > drivers/mfd/intel_quark_i2c_gpio.c | 3 +- If Linus, is happy with the GPIO implementation, then the changes in MFD look fine: Acked-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog