From patchwork Mon Dec 5 11:21:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 29645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2192178wrr; Mon, 5 Dec 2022 03:30:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ruj5gIaSUVWOoqyUClmowh7vhGo7yBYeXl5f/LIGsYrvulA/q1Epodge2/29jCjL2aodo X-Received: by 2002:a63:fa41:0:b0:476:e84c:ab65 with SMTP id g1-20020a63fa41000000b00476e84cab65mr57156176pgk.513.1670239846313; Mon, 05 Dec 2022 03:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670239846; cv=none; d=google.com; s=arc-20160816; b=IttYB+xZNrbwYYQqFtmEGNRB8pVAsvYZPXAmd/H0XuxBtDKh3hoYUXoAYB/ZlcAbq3 dkjjdehxP21Hcld3hQ7DQpuQeH/3Z0doOjyDAGIdVuuAXW2ziFFL1w13+UwDU5lTmHZB CYxZmaUPifLgONwcsAHcKssOfiOWtiZu+FTJZV5v/BlNk7ewGQ/Dfdb7FQn4h1W8MxaN aODa+wdPEhtqieC/RjDWvnfNf/uD2lX4vtLOydaJW4iT0PiR2oY5mG2fOrsKBAfPk0C6 nn7ojdUgUA3c8zKXjhLNE0mvV1PSjqcnka4Rv5csaA7PNSEovs9N2xVlEUy35RUUwm1h PDhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=THNc2eWNyAUjX46iElhm0cOZLZCKjFqsNGTMEP1GEyk=; b=Z1+5a21u2q+4yV5C0AMIZhcAsIruWJXBySPWQHiuuwTpFxTyEsZzbkhcAI/MqfzUV2 spWl51O9fgmnKsHq2tLSCSpU5nWjk9SDGvMPKFRuLUoVGaLtHeUngIUmAOh5Vq0w+u84 j65K/oHoWPZKMazTQz/pB18Wid2kJDhhgcaVIc6eYrZkdNTq+P5RR8hHVl2aeXyFSdUZ WYVcT2jkV4twumrlGy6vqeGPFcNiFVHZsUzIbCfKOslr/1ehd5qaEPs61NQfk+IxIcJV caREH7GRKfrLTrOZCLMK4AgMPcie7s7uCtDrd0m6OGdycu4A7QkgnBUpAIfdiGUriRKt xuDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="QlPH6/WV"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gwTRIEGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170902d14d00b00188736cbeebsi13119051plt.436.2022.12.05.03.30.32; Mon, 05 Dec 2022 03:30:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="QlPH6/WV"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gwTRIEGE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231182AbiLELVN (ORCPT + 99 others); Mon, 5 Dec 2022 06:21:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbiLELVK (ORCPT ); Mon, 5 Dec 2022 06:21:10 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92B8817599 for ; Mon, 5 Dec 2022 03:21:06 -0800 (PST) Date: Mon, 05 Dec 2022 11:21:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670239265; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=THNc2eWNyAUjX46iElhm0cOZLZCKjFqsNGTMEP1GEyk=; b=QlPH6/WVhz/TNDTDqBl+rPOblTX8u25oOl77r42kHyL4M4I9bEougg/tvl5+t2WpA8LKgH deLlyiOQ+wJz8ifPkrCKqaSIJjnFw/qc5zykNiz0e1HlYrJOEfiuAfcUVde0fbjZLprsZY WP3x2UOMcmoNiG27CBkeMjaP4wfEIjKx64RKplNbI8nK56UOx4RtFGbzFnw6FGHPg6qIM5 iOH4VyAQ3yJwEdM8JWUClz8e7pHvOnsey2PFwDX0a9tkDHIznn5nvxY4jHWxqToT0J+App F9bBClQAW+x33LYFEEb81kixszRmulAMAB/phb59e5SYb9CAkrBzOYt2LVqPIw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670239265; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=THNc2eWNyAUjX46iElhm0cOZLZCKjFqsNGTMEP1GEyk=; b=gwTRIEGE4NFxRxJYZUJGhLyQNGXN+UA5CtetPg4rfxk56FQJsZvMMGGAWvcYBglBJAWNv7 jyfbJtgaQBDoBIDQ== From: "irqchip-bot for Sean Anderson" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/ls-extirq: Fix endianness detection Cc: Sean Anderson , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20221201212807.616191-1-sean.anderson@seco.com> References: <20221201212807.616191-1-sean.anderson@seco.com> MIME-Version: 1.0 Message-ID: <167023926482.4906.17012979311813913704.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751048798383356659?= X-GMAIL-MSGID: =?utf-8?q?1751373416765754601?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 3ae977d0e4e3a2a2ccc912ca2d20c9430508ecdd Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/3ae977d0e4e3a2a2ccc912ca2d20c9430508ecdd Author: Sean Anderson AuthorDate: Thu, 01 Dec 2022 16:28:07 -05:00 Committer: Marc Zyngier CommitterDate: Mon, 05 Dec 2022 10:39:52 irqchip/ls-extirq: Fix endianness detection parent is the interrupt parent, not the parent of node. Use node->parent. This fixes endianness detection on big-endian platforms. Fixes: 1b00adce8afd ("irqchip/ls-extirq: Fix invalid wait context by avoiding to use regmap") Signed-off-by: Sean Anderson Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20221201212807.616191-1-sean.anderson@seco.com --- drivers/irqchip/irq-ls-extirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-ls-extirq.c b/drivers/irqchip/irq-ls-extirq.c index d8d48b1..139f26b 100644 --- a/drivers/irqchip/irq-ls-extirq.c +++ b/drivers/irqchip/irq-ls-extirq.c @@ -203,7 +203,7 @@ ls_extirq_of_init(struct device_node *node, struct device_node *parent) if (ret) goto err_parse_map; - priv->big_endian = of_device_is_big_endian(parent); + priv->big_endian = of_device_is_big_endian(node->parent); priv->is_ls1021a_or_ls1043a = of_device_is_compatible(node, "fsl,ls1021a-extirq") || of_device_is_compatible(node, "fsl,ls1043a-extirq"); raw_spin_lock_init(&priv->lock);