Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp596319imm; Thu, 26 Jul 2018 08:45:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdFSP+rGEurv201aI3XZHOMXxgw3LVxb0p4t/mvPAisxfrpnNdTG4VUtzZaNl1fDKwCzKxp X-Received: by 2002:a17:902:bd4b:: with SMTP id b11-v6mr2368753plx.243.1532619931769; Thu, 26 Jul 2018 08:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532619931; cv=none; d=google.com; s=arc-20160816; b=Pqgg57Wfj3s+Asu+u55bhE0REVj45+ZRrXMZqCJjpHI9ctnn2uQ0lI7s0PvbZLSIs5 h8DSK+bd27I/RzhNBl3pugBm/mF8euZuiyK/VFTjqe8I/8sksftgKkTCg9zLV2ivqkkB ubh1/hw9oQtYp4LRWb150p3LiWNDCUsXDnH0P06h3AINYpz/Os/Mo9tydWwaSmfu/CsM lFahHd34kmSeGernCh6G1TygG+NYqZE+6i/LjOl2Krh+0TfjNXw07RV0FUMRK4HjgXQL y997mBHnzXCsVqNm/kt4dnPiCvCUYkVSp+mrG4JGAqt9eY/S9z2xBY/GPa8a1PviFU2g M0xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=h8U3CnkoFMKT1i1yIuUZum9/1P/lyHhs+Q+sLSHT8BY=; b=jN2CnjTOUWPsY9dlOSBna2eOcGvgs026Prr7B5n0BwGVKSe83HkTKPLaU9Vu1ZamsA 293/p4pJ4lWSiHHtXXbV7Kg6/9nUlj8n40OngsHpT/yq0+aI4kabBkQr13TIU9WLC/rv Yq/reo+cDQKbuWrY5FPoiAGV2h+KdnhlhsDeEj/uGgfmnUP+TdPVZER8oShqfUCAeBvd xxe2svkUQNova6fS76jF3DO2lzSH4KkWriBsjt0USyfy1t8LBE5wyN4fLM92BCaX1ejh ZN2nf+Q7ILGfRlScXkSzPxKclNOZrNcz31MtOhYLjiXKD1yRKNPj8aWpS+lTdbBsM0Jy W//Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=SUr+BkJQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23-v6si1638540pfb.284.2018.07.26.08.45.16; Thu, 26 Jul 2018 08:45:31 -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=@agner.ch header.s=dkim header.b=SUr+BkJQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731990AbeGZRAU (ORCPT + 99 others); Thu, 26 Jul 2018 13:00:20 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:57672 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731721AbeGZRAT (ORCPT ); Thu, 26 Jul 2018 13:00:19 -0400 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 5E76C5C21F8; Thu, 26 Jul 2018 17:42:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1532619773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=h8U3CnkoFMKT1i1yIuUZum9/1P/lyHhs+Q+sLSHT8BY=; b=SUr+BkJQuL4ifMz7gTa5cwQU8bFmRx13vjvCZAxtIm/KqvsVIzFUm12r2aEC0Cbyk1cHHl 9b2MZY8GqS0riegonUijdoelUJsucYtDpx5bgmFCl+D8koxWVm/RnFlfjK5Eln1r0cPBiM aANr3B5Kfsk3uYmqh3RYrmaUMqZe1A0= From: Stefan Agner To: linus.walleij@linaro.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] gpio: tegra: drop tegra specific GPIO lockdep classes Date: Thu, 26 Jul 2018 17:42:52 +0200 Message-Id: <20180726154252.14137-1-stefan@agner.ch> X-Mailer: git-send-email 2.18.0 X-Spamd-Result: default: False [-0.60 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:6830, ipnet:46.140.0.0/17, country:AT]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit e45d1c80c0ee ("gpio: put GPIO IRQs into their own lock class") and commit a0a8bcf4670c ("gpiolib: irqchip: use different lockdep class for each gpio irqchip") GPIO lib takes care of lockdep classes. In fact, gpiochip_irq_map() overwrites the class anyway, so the lockdep class set by the driver is useless. Remove it. Signed-off-by: Stefan Agner --- drivers/gpio/gpio-tegra.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 94396caaca75..e5fcc012179e 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -550,13 +550,6 @@ static const struct dev_pm_ops tegra_gpio_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(tegra_gpio_suspend, tegra_gpio_resume) }; -/* - * This lock class tells lockdep that GPIO irqs are in a different category - * than their parents, so it won't report false recursion. - */ -static struct lock_class_key gpio_lock_class; -static struct lock_class_key gpio_request_class; - static int tegra_gpio_probe(struct platform_device *pdev) { struct tegra_gpio_info *tgi; @@ -661,8 +654,6 @@ static int tegra_gpio_probe(struct platform_device *pdev) bank = &tgi->bank_info[GPIO_BANK(gpio)]; - irq_set_lockdep_class(irq, &gpio_lock_class, - &gpio_request_class); irq_set_chip_data(irq, bank); irq_set_chip_and_handler(irq, &tgi->ic, handle_simple_irq); } -- 2.18.0