Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3106773imm; Tue, 29 May 2018 00:48:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKISa4HCo0jkjkCqpNRrx1nhLT30K0F0O/guaAdfbUPDCG99GgDXK0ilJtgQyzB3fr0pMEZv X-Received: by 2002:a62:5dc5:: with SMTP id n66-v6mr8203203pfj.220.1527580088555; Tue, 29 May 2018 00:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527580088; cv=none; d=google.com; s=arc-20160816; b=zvvoKISNKWWQ6TMVsScOYW7FaWA51rE4p74vydUqP79aYYWKb9Vth3izU78JIhXD5e Bl/iHVekgYUIh/TZAVuycZUD3nwXAwsFV/pWaxCp1hmhfwxcz6+ZtrkKrErca7EukDWw Ed2eI2LCMVT8Hsv9Ykk6wuyDY0ffl+DwJNgsW34sNS3MhQAOWtFQVRvwHu7ozLSIQK/I uUalCriaCpeBKrcdi8CJtQjw7FUmpjAY1PBFqc/I0s+ao+4MKtoUFoYKoWP4UFm08EWu m9lX0U0i07EyDJTJ0qFpQWNkJUQrmK/gUKFbMDesNwS/TPIvmvFZLFpHf3ytyWDJD+6z zU7w== 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=t2qSn3ymisKLY0f9D09PcZIq8HUYpOfsugFQHCkkaBA=; b=xPIEsb3ud34eSPI30AbOsBvFICMjoLrNTZOJZgfyaUEMzpagePG5OkogJMuSD98BuP YkhNM6ZbcfA8i1HihdYB0k6tDyqW+TsMHLoMoBu+A+7jYDLF9oCMa9E/hI4hGuEbXjRd w5RGygwQIiywah514Hpxtw/+MPGjd6qkZhXjaIRPficcQ1GBIRua9M87m1wfZUwdVG6h o54s/bfrcqhG6EnL5otwZusKvNlT7w8YNmcmzH/XArsK6iqnzA1gpjCaSYOXb2MJFbFe L2YCPXGrRBMwwUlC6sjYprJP1y+7tvrHj/D0qk3BYM6koAQTsWghigqcPjLfJyBa95mU 2vPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YfiLe0HV; 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 z21-v6si30773627plo.465.2018.05.29.00.47.54; Tue, 29 May 2018 00:48: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=@linaro.org header.s=google header.b=YfiLe0HV; 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 S1755205AbeE2HrF (ORCPT + 99 others); Tue, 29 May 2018 03:47:05 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:45155 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755176AbeE2HrC (ORCPT ); Tue, 29 May 2018 03:47:02 -0400 Received: by mail-wr0-f194.google.com with SMTP id w3-v6so23742467wrl.12 for ; Tue, 29 May 2018 00:47:02 -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=t2qSn3ymisKLY0f9D09PcZIq8HUYpOfsugFQHCkkaBA=; b=YfiLe0HVxILuTv9gi0HO9TwLzRJRuWsfIoEax+kPoD/Tzy1rIicrXH3IXm7c8WgpQT dpfkqUOwiy6M1HyUxzsVezYIEteVT2PL3ggIOzQ2iitifC/9V8OcRsnpZJGhJf1Vc9f/ f+2hcI1TfEZU3tcMup0602iRYC8a9/llfrI1g= 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=t2qSn3ymisKLY0f9D09PcZIq8HUYpOfsugFQHCkkaBA=; b=FRz31wfZDY4cbg1uglXBHjlXkiA8Hdi6lil5SMouzZE+t1LaJd0oii5zX9zObMNp8Q tbL+z0bnnGKRbFEknnZKLUau7z5gPX92Z9POFZrzbi2mDfRUH1tZkF6RNYqybEY6Otpo WzFTLrNqtN2b99R2uoyfj1En3bobPHVKs0hWHq4KpSxReHg7wDccnKlolWMS5VyqYEQM 0erEWVtC9AQkbPezd2+3jEBHbDWg1Iyl41ApFkpqh2Q9giOA0j+69KoB6ZxiVLiAVVPg /W0bsxHPaxqKLmLYa5DCwTNNEAt+uE4or8KsBD0KauifLzo7Nh11EC3lxFWgGesNEDKU NfHQ== X-Gm-Message-State: ALKqPwcBerO/RoubEehbyWUoPZ+rYQroXX5gOgrp62tQr9YiNO2un6ZM x5v7D2TIigbmj2v0nNHrD2awYg== X-Received: by 2002:adf:86e9:: with SMTP id 38-v6mr6569027wry.232.1527580021498; Tue, 29 May 2018 00:47:01 -0700 (PDT) Received: from dell ([2.27.167.23]) by smtp.gmail.com with ESMTPSA id g28-v6sm15533854wmc.38.2018.05.29.00.47.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 00:47:00 -0700 (PDT) Date: Tue, 29 May 2018 08:46:59 +0100 From: Lee Jones To: Marek Vasut Cc: Steve Twiss , "linux-kernel@vger.kernel.org" , Marek Vasut , Geert Uytterhoeven , Mark Brown , Wolfram Sang , "linux-renesas-soc@vger.kernel.org" Subject: Re: [PATCH 6/6] mfd: da9063: Add DA9063L support Message-ID: <20180529074659.GC4790@dell> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3d81a469-e54f-953d-7600-7ddf3d026ca1@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog