Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4576101imu; Sat, 19 Jan 2019 12:47:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7uxfnMF6iypuUCMP5a/8LfPmB2u91uyNh0kJtGPbKAUosLofIqGXW5et5mu78cEL0KuATr X-Received: by 2002:a63:b4c:: with SMTP id a12mr23029318pgl.131.1547930862871; Sat, 19 Jan 2019 12:47:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547930862; cv=none; d=google.com; s=arc-20160816; b=YJ1Z03VJPMBhSjT+lmVdUjk3NnKfAathxqrDRkpY6pfpztYJkuHr4rELm13y0GOlJb zTjeH/QXCymaiAjv/Gv5gTw2Foqfq4OTRoGlnsURY2rQd/h1uMckzwX7RC5ORkaqg+Gg yimiCbHcYyr314j72j/BCbKbdhwxxPZJZyGCGoQ57yfZjE2lVNq5qAjEOvsiMakWYZLg VKVtsaP3xP6DScc4FZ360pNBAhrRDj27h7ajR2F+jApyibg4fb0gtgS2E0AUHvE2MaOm lxRjv2rL05+pDYWgjti/u9fpjhhb3CHLIanrjXXuwoz6vQkaMfveiApe2U2SKt2maEaa 4NpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=rkR1YJCex8mJtvo1yEQJVnDI8ikmkuIysXcn9eN6x3c=; b=RkZ62DChvlMfouLNi1n5oj1WQOeplV+FUTepLWQDB6fd8fuqJQ8+t9IFyuBxGY6Qfh yY/PxYZx2gL+SS4fT5EXx2/1uw0EjqEHLpdVGhMxPh4NpYosLBz9YgoYxFqGrN42l7nf trD9vqsErERAhwWxLdnfEhdDt8rdl1bQ50ckV9yx0mn6fKjBxId717CryvMLxXUv8Pot nmdWlii2vQOsky2WLEk6rJ61Fccp8MfrOeq10DaWeszdrSAs7eDGdFn/pLvDN1JaulWl hhtnwxkhBQS3B0wPIauXiefnTj6hZqomn6r5WpcHB2LmfsjRr5Vlr0EXzMU5DTdup4Zf UK3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@onstation.org header.s=default header.b=HlvjzTVN; 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 j22si4881722pgj.244.2019.01.19.12.47.00; Sat, 19 Jan 2019 12:47:42 -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=fail (test mode) header.i=@onstation.org header.s=default header.b=HlvjzTVN; 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 S1729781AbfASUn4 (ORCPT + 99 others); Sat, 19 Jan 2019 15:43:56 -0500 Received: from onstation.org ([52.200.56.107]:35178 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729662AbfASUnk (ORCPT ); Sat, 19 Jan 2019 15:43:40 -0500 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 22C7B35F; Sat, 19 Jan 2019 20:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=onstation.org; s=default; t=1547930619; bh=gmbhuXFpMLE2hjInrT/aPjWKUTsmtRZ1zUneD892RnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HlvjzTVNDhQR1jM0cxHYTA4DewWZC8X7KXdO5Lj3lGvHFahmcQtx45b71NWgjegvM EWZrXrKz4n5MZGyCg1Y0Gp8OJht/GwW1pBDY348F4YHRd24kf5luYUWYEB5ljMT2eV Ci9L6rrmD1oj885cczvsxLPGk/+uv85kEhqZGfEY= From: Brian Masney To: linus.walleij@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, marc.zyngier@arm.com Cc: shawnguo@kernel.org, dianders@chromium.org, linux-gpio@vger.kernel.org, nicolas.dechesne@linaro.org, niklas.cassel@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 15/15] spmi: pmic-arb: revert "disassociate old virq if hwirq mapping already exists" Date: Sat, 19 Jan 2019 15:42:52 -0500 Message-Id: <20190119204252.18370-16-masneyb@onstation.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190119204252.18370-1-masneyb@onstation.org> References: <20190119204252.18370-1-masneyb@onstation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that spmi-gpio is a proper hierarchical IRQ chip, and all in-tree users of device tree have been updated, we can now drop the hack that was introduced to disassociate the old Linux virq if a hwirq mapping already exists. That patch was introduced to not break git bisect for any existing boards. Driver was tested using gpio-keys and iadc/vadc on the LG Nexus 5 (hammerhead) phone. Signed-off-by: Brian Masney --- Changes since v5: - None Changes since v4: - None Patch introduced in v4. drivers/spmi/spmi-pmic-arb.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 5666b99c9a92..316e2708f3ba 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -745,15 +745,10 @@ static int qpnpint_irq_domain_map(struct spmi_pmic_arb *pmic_arb, irq_hw_number_t hwirq, unsigned int type) { irq_flow_handler_t handler; - unsigned int old_virq; dev_dbg(&pmic_arb->spmic->dev, "virq = %u, hwirq = %lu, type = %u\n", virq, hwirq, type); - old_virq = irq_find_mapping(domain, hwirq); - if (old_virq) - irq_domain_disassociate(domain, old_virq); - if (type & IRQ_TYPE_EDGE_BOTH) handler = handle_edge_irq; else if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) -- 2.17.2