Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4367005imm; Wed, 30 May 2018 04:27:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLpLrOqpd6FutR0HA4YTovU+5VY/accGJGKabEmV2o3JFUiE5uZnPRZT/kGDyFUnqZsgW8D X-Received: by 2002:a62:428f:: with SMTP id h15-v6mr2417429pfd.156.1527679628728; Wed, 30 May 2018 04:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527679628; cv=none; d=google.com; s=arc-20160816; b=q/j/YktDkHWIsxXiWj+QcmwgRBjRLU0zYQyrphsAxCT7lniPHmdlTnZoG+BOjLxvte yszJp2ISefTLXRkwTHTemTuTpfI2n6W/K44YbmKmsc8bjmkAojBK+Da49AE+rmPWwpH4 ktM9TKK67tw4iuYdjtvIksRuLIrgzWV6JpxVkHnZXw1sTNHznkZJHGZRwc2KqOK+8I62 JzPt+mHB6WLkODuQ/ZHiY4ZIKpf742UVl6kHZU4j4F2s98WafThG1yu8PrRbMdF6dk/W j09DSu3IqXQTq+gf1u4zC/dSRw04k0DUAOencAFicdzNi0OGnSJIxxtGWkOuTTHkC/yg TzWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=uJ+WoDv0I8x5Y5D7jTbS13sYdo6OXUy/HJVK176Bac4=; b=xinozE//yyU3KusGAjklj681ShRWBgb1TjNO91H6GwOoUPLybdDfRNqK/hequNsQJE tdIMauqtTFs7u+ioGVMJ5mY6Sr9a4ml4PbI2Gs7xthzuv9CZr5F4KW/xP+dr8fkYNV8W PR6QLO+ggG+2G6AkcDPOwDrAWCudBQL8ObdBfCKQX67C/bgF/BOy6dktFwaf1KI65vNu ITCEjDeIIZh74NLlg6OiJnnyvW1Khx2JKoJRMA60kCcyYjpqqUijaV8kJeFWE4zYKV56 VwMPzxNs7BV2XmY7okuXkNPP9EOhw5M/HlNyjhhrALSb1I2S1IpgG13ymElka2vA8mQP fVMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qEk+HJRi; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m79-v6si33992747pfi.236.2018.05.30.04.26.54; Wed, 30 May 2018 04:27:08 -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=@gmail.com header.s=20161025 header.b=qEk+HJRi; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753171AbeE3L0M (ORCPT + 99 others); Wed, 30 May 2018 07:26:12 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36146 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555AbeE3L0H (ORCPT ); Wed, 30 May 2018 07:26:07 -0400 Received: by mail-wr0-f196.google.com with SMTP id f16-v6so13820619wrm.3; Wed, 30 May 2018 04:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uJ+WoDv0I8x5Y5D7jTbS13sYdo6OXUy/HJVK176Bac4=; b=qEk+HJRiEWNqZXBEa8XKKxCCtplcdsXl8HDI7JgeuaDMIkmjX/lQlxqt3TdXyd3J/L 3SZPYciNlyOEm0r7jUMpimsf3+eaauz+J0767bSMJaiOlwWKNf20tycimFLJiopezCM3 b17Q7SmWywEwq3d7wIZuwN+piHyImhAEcQfvSH62H7HVkIBFjJaxn5thijXRcvZpyLQY OYqxIz9IxLCr0Am0Hx7V/Ewg+hEqb9+7xYR2R1wa2t5gJD1Hk0dfc19EmbXwsQF2i1OA ZxDFvVV/oLMZtqJCugupMdqP6/N5+c+LkEmE0moC0IUXv569T3QUNJgpRFOh5TTYZHDW 9rSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uJ+WoDv0I8x5Y5D7jTbS13sYdo6OXUy/HJVK176Bac4=; b=JZXEeQg2RhRJJE12XPATZYhmZgNGAhrxIRGTqxk7HkMkZ+wlAfpi22aKkJ5NzYnGfv twpXUWsgY9PQRTrNs18U7XojRHHC22Naor8cvNijfSDVyrWx9X1K/omPLDoKmpsh+G+S oNorViYOQIuFCWZiaVOoLeshpI6RTKf/TIc9jQpgjqbeQ3M2DXI8LR49aep3T5ELhDxB LaMaYAWHNHHVDoOTbXxv99SmtX0ZCyIlXXfltv8p9rNv3d5ta8TpqZXmIc0WL4oylXOo etmtfWFXDjWc85FO2XKIJE9VDzv8+ZmzbNATTjeeoSr/RbhunMF/RxQBwA04dbyp7V8E 9cxQ== X-Gm-Message-State: ALKqPwdqYRAXr9nspmIoz4KJIthhYi+8URBHTGD7ALWimUjeNPCEa826 QMtr22Cho1+RfWOVhoTVRzWfpjN+ X-Received: by 2002:adf:c884:: with SMTP id k4-v6mr1944161wrh.6.1527679565524; Wed, 30 May 2018 04:26:05 -0700 (PDT) Received: from [192.168.43.97] (cst-prg-9-157.cust.vodafone.cz. [46.135.9.157]) by smtp.gmail.com with ESMTPSA id c18-v6sm22073427wrq.17.2018.05.30.04.26.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 04:26:05 -0700 (PDT) Subject: Re: [PATCH 6/6] mfd: da9063: Add DA9063L support To: Lee Jones Cc: Steve Twiss , "linux-kernel@vger.kernel.org" , Marek Vasut , Geert Uytterhoeven , Mark Brown , Wolfram Sang , "linux-renesas-soc@vger.kernel.org" References: <20180523114230.10109-1-marek.vasut+renesas@gmail.com> <20180523114230.10109-6-marek.vasut+renesas@gmail.com> <6ED8E3B22081A4459DAC7699F3695FB701941A47F0@SW-EX-MBX02.diasemi.com> <6ED8E3B22081A4459DAC7699F3695FB701941A4866@SW-EX-MBX02.diasemi.com> <3d81a469-e54f-953d-7600-7ddf3d026ca1@gmail.com> <20180529074659.GC4790@dell> From: Marek Vasut Message-ID: Date: Wed, 30 May 2018 13:26:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180529074659.GC4790@dell> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/29/2018 09:46 AM, Lee Jones wrote: > On Thu, 24 May 2018, Marek Vasut wrote: >> On 05/24/2018 02:32 PM, Steve Twiss wrote: >>> On 24 May 2018 @ 12:49 Steve Twiss wrote: > > [...] > >>> static const struct regmap_irq da9063l_irqs[] = { >>> /* DA9063 event A register */ >>> [DA9063L_IRQ_ONKEY] = { >>> .reg_offset = DA9063_REG_EVENT_A_OFFSET, >>> .mask = DA9063_M_ONKEY, >>> }, > > [...] > >>> [DA9063L_IRQ_GPI15] = { >>> .reg_offset = DA9063_REG_EVENT_D_OFFSET, >>> .mask = DA9063_M_GPI15, >>> }, >>> }; >> >> We can probably do the same trick with the regmaps and irqmaps as with >> the rest, that is, reorder them and register only a smaller portion ? > > Please also consider using REGMAP_IRQ_REG(). Done in a new separate patch with a simple sed oneliner sed -i "/\[DA9063_IRQ_/ {N;N;N;s/\n//g;s/.*\[\(DA9063_IRQ_[^]]\+\)].*reg_offset = \([^,]\+\),.* = \([^,]\+\),.*/\tREGMAP_IRQ_REG(\1, \2, \3),/}" drivers/mfd/da9063-irq.c -- Best regards, Marek Vasut