Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4318352imj; Tue, 12 Feb 2019 13:45:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IbHQW41+1widWTC4iy1D7CHfPjDJeZr5wl5OC0UNHFtWJwVRH+pxjAtArDUZB6fU/nNYCwN X-Received: by 2002:a17:902:8bc6:: with SMTP id r6mr6075806plo.67.1550007925871; Tue, 12 Feb 2019 13:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550007925; cv=none; d=google.com; s=arc-20160816; b=ULJqpKFqoYw53KQ2dDT+PgX8YHCSqqFrNPD9lTMuDIHmXaXEAl4D1j0kfCDmXddt2P pf9TzWL51AGAowVU/Od6xPdXkrGn1E8UwD1kyy8UbhANzfWdDhoByKLPPakdnKe8PjgE HR9fC9paDeQBeAi1rgXsh2HFsMBr+CMM6ExxMNuuM02kKZJRkF3wy450cx2AzKt98dnt PAPVHzGDgSnSOAWtzzcABJcsyjE+HoQoeLAW0ZU/GXmpAK6letYbBV7xwN9erC0+9f9I v0hyrmFo48Cyw3aJVc8lK6Q1cZhwG3QOk7D0lS/aCdMpgJCouhd/PIZmi+GSnVxKLQjv tQGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=RKa0vaLRy80JEhZ94QJ0R+r1K4+tymdSzaV0CbMmito=; b=UAuh/qDabsdP3uoG3rXVse65mFoUr+GWUQxOpVbwR9xPPgLNa1JdsJayiwvQoRuIfB xIz7ZJ/E3UmPu1LE8NGjY01tJA3bywb5aaGyM2pz7thDZeQvtiLy29k5jW2X8UzHouH2 eg7jymv0xG5fVLR/1Zz36XU1YU/lkyXBr+KAmZ3Cwta2e/+Aax/u576KM8C7IcyMBGjG QjjeZVr+2qI1XYyzC8XBLsXZQ9OCSblQcj+rmAy2XsvjhOJlOZ475BHAOLfOyND0rJSL uN95v3sLa84N410GN9LigWM4PpzxRXoV+msa3sGhxntbRHCP08piFIxwfn+Tn7HGzgLd hBjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="I0rfuUg/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si2079514pgp.504.2019.02.12.13.45.10; Tue, 12 Feb 2019 13:45:25 -0800 (PST) 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=@broadcom.com header.s=google header.b="I0rfuUg/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730851AbfBLUxr (ORCPT + 99 others); Tue, 12 Feb 2019 15:53:47 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44308 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730672AbfBLUxq (ORCPT ); Tue, 12 Feb 2019 15:53:46 -0500 Received: by mail-pg1-f193.google.com with SMTP id y1so20032pgk.11 for ; Tue, 12 Feb 2019 12:53:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=RKa0vaLRy80JEhZ94QJ0R+r1K4+tymdSzaV0CbMmito=; b=I0rfuUg/aRWA58ZBeJdAyPj/P3U0VGCvFmtUZNoDA8gEFpbHX77HskfEB6IZf3uiAG tyzE9UXVVdXebpIBUm2FTE2Ujt6ccKmY+YrAK1/Et4qr/smWBthcsBGshhuD4sRSJk0R Cy/Y8IdTcS58C5mx3DZoB4e42wNRZaRtPp238= 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-transfer-encoding :content-language; bh=RKa0vaLRy80JEhZ94QJ0R+r1K4+tymdSzaV0CbMmito=; b=pS+ZB7uw54IBpgSumBBTrsyKmPFsn41R+qSMCqGCxr1gdrLN4aMTB1qYE/vwETGngx 42xmXuXraiq9x+daEopWr2bNfgohJBoCuFP6GeIFIb70WWFxEFUMj44A0QLLauO/FPRG wMDrHI9J3PUBrUa5jtQyfV0l27qe45+j8toC01z79fRBeIgrGhqtdsOFpvMXckbps2m1 Oja0EhvKLiZ8uGUTeQhmSDaD1YoC6k1r+Z7fNoPSXS6U+hsgwBVFQFKVUY8Is/Wk3Wph n8fxB7BIDJx1T07ua7LOBYMrCLH6xQ7XxDxCL55WkSw/sVEKjmsyu9nX2/45OfqQtbh3 vLwA== X-Gm-Message-State: AHQUAuauDjutoQCvSpYYb9xn/na4BtnLp2BA0DTYWvTvLTYvFzeWqctA l8ZnoRZQa1mIwBvNhjYXqYynaA== X-Received: by 2002:a65:608d:: with SMTP id t13mr5460568pgu.129.1550004825589; Tue, 12 Feb 2019 12:53:45 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id x6sm14595179pfb.183.2019.02.12.12.53.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 12:53:44 -0800 (PST) Subject: Re: [PATCH 1/3] gpio: bcm-kona: drop ->irq_{request,release}_resources hooks To: Thomas Petazzoni , Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Ray Jui , Florian Fainelli , Scott Branden , bcm-kernel-feedback-list@broadcom.com References: <20190208115201.7518-1-thomas.petazzoni@bootlin.com> <20190208115201.7518-2-thomas.petazzoni@bootlin.com> From: Scott Branden Message-ID: Date: Tue, 12 Feb 2019 12:53:33 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190208115201.7518-2-thomas.petazzoni@bootlin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-02-08 3:51 a.m., Thomas Petazzoni wrote: > Those hooks implement the exact same behavior as the default hooks by > gpiolib, so there is no point in having a duplicated definition in > gpio-bcm-kona. > > Signed-off-by: Thomas Petazzoni Acked-by: Scott Branden > Cc: Ray Jui > Cc: Florian Fainelli > Cc: Scott Branden > Cc: bcm-kernel-feedback-list@broadcom.com > --- > Note: this commit was only build tested. > --- > drivers/gpio/gpio-bcm-kona.c | 16 ---------------- > 1 file changed, 16 deletions(-) > > diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c > index c5536a509b59..0ae806edabc2 100644 > --- a/drivers/gpio/gpio-bcm-kona.c > +++ b/drivers/gpio/gpio-bcm-kona.c > @@ -484,28 +484,12 @@ static void bcm_kona_gpio_irq_handler(struct irq_desc *desc) > chained_irq_exit(chip, desc); > } > > -static int bcm_kona_gpio_irq_reqres(struct irq_data *d) > -{ > - struct bcm_kona_gpio *kona_gpio = irq_data_get_irq_chip_data(d); > - > - return gpiochip_reqres_irq(&kona_gpio->gpio_chip, d->hwirq); > -} > - > -static void bcm_kona_gpio_irq_relres(struct irq_data *d) > -{ > - struct bcm_kona_gpio *kona_gpio = irq_data_get_irq_chip_data(d); > - > - gpiochip_relres_irq(&kona_gpio->gpio_chip, d->hwirq); > -} > - > static struct irq_chip bcm_gpio_irq_chip = { > .name = "bcm-kona-gpio", > .irq_ack = bcm_kona_gpio_irq_ack, > .irq_mask = bcm_kona_gpio_irq_mask, > .irq_unmask = bcm_kona_gpio_irq_unmask, > .irq_set_type = bcm_kona_gpio_irq_set_type, > - .irq_request_resources = bcm_kona_gpio_irq_reqres, > - .irq_release_resources = bcm_kona_gpio_irq_relres, > }; > > static struct of_device_id const bcm_kona_gpio_of_match[] = {