Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp280037lqp; Wed, 22 May 2024 04:38:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeP4+Th9QW/Olmm4XlfvexP2DhnGE7mIHKpJusH6PO9aLA1MJ2gd3+hd9BtBRuMPcocvHlxkv7mEsL0iIfCtWtxn2yU6lkCfbS7xtncA== X-Google-Smtp-Source: AGHT+IGm3i/BlwJrbD/V0UY0ylscbaU/yxh6Vx2G3VzmVYwaJ685qfBpOYNxVOGflv3uIN1jpBdq X-Received: by 2002:a81:8492:0:b0:618:2972:ee3b with SMTP id 00721157ae682-627e4881d0amr16856577b3.39.1716377939334; Wed, 22 May 2024 04:38:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716377939; cv=pass; d=google.com; s=arc-20160816; b=SM8KEeZ54SCpQRxemDdYP/Wzg6qt3QraJ5ueAEjTQeir7TdQvRq/Kxf8Si3oXFX8q2 CXeegfEFHNu6Woieh8veUqV6JeLPM+6xYHT6ZwQIyJx0u54InrsaIOSOmxrvQvdckt0s 45Vv6Q/j+QoAafGHzxZoU1dy09S4m8F4Rz3t/2EuTxLEDGDTyPQQMM0lLpx6l1n02yFd LNHelbdcazDemB1/nZzq2cc4fEWbszoNuSo53kqDnRlQd66yN0x0aue1YSa+1BwaAXiW catCNT2fPdRzAJTKZ6I90j4b/yp8uNACqTqhc89gio9WLxilH6eit0yPkDtRmC8CqmvT 6SYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=ozR5UPKF3Qyww8Ahh5rDcDSPLy5kexc1/BjXgWcYQNE=; fh=g9/8+CIWRzHI/urdoLeqYdpO4Ft8IUDxkf5PtiIICyo=; b=YJ9US8ivHVbBYxvRPAmAFNCsZ1k7r//xSGSxHuU5ouxT/YR27SDMLcq47XBsTHBO/l 8oDS6Mjn7nBc/VMeY53FTYBjevRj1HMys9B8S4/bMZMEHyLcDFsNQUbx0bM/hhAhQSM/ OuMWNPn8NLbe9wzQt79bqvf+8eNGc/xX63xTRrQ7hU3rJszS11IJR5EHeKMtNIq6Fi84 UJlIh1SWdJmx89uz8+3oEgXkOUzORs2u1LeUe1wMmv0EVQ4OBLDdlN/9IVGqZOhcBECU NPjDtXXaqHpu/YbJpwy/sMp/gOeHPGaUNLYR8HHAutg+98p6zhEGlI1ERu6Mfh3x5urY Iy0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a12Rds1z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-186154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab839a501esi9910646d6.463.2024.05.22.04.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 04:38:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a12Rds1z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-186154-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 111841C224DC for ; Wed, 22 May 2024 11:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C35B8287E; Wed, 22 May 2024 11:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="a12Rds1z" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5571839FE for ; Wed, 22 May 2024 11:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716377914; cv=none; b=TUb18Y3R3el0AXIcJtaYtylCIRMCbRAE8dAPdpKaQuucuy3+oJSFFYkso3rA9z0Q4OHhNERnVkM1/q98mMtWJQi4KU4B/oZpZLGcXiAQnmF7qRTIEnlgc4f8vGiYzAGHR8KAONYRRx3oMStdQPQsjjaawhfeWtgYOne8JXm4oo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716377914; c=relaxed/simple; bh=yHzX9y/qCvid1mg33b2D6r7EkS+pv/D5AgQLr82rKKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=BKiTfbT4/IxFiuTrf8SSrh6jeb9cm5/hN/I8b/L2t7/iUlHqpiFMzY0nBZojU0XiRikS7RWGhLFqeNIJAkUVkLXMrU5CV10bz5/ZmxQwSuG7FuWb5qHmn0IxWb7Y0tMWywCoPpK02LjN6QbEIY014SAnpc/2O6Y+dCQPcU+436g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=a12Rds1z; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59cdd185b9so164660266b.1 for ; Wed, 22 May 2024 04:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716377910; x=1716982710; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=ozR5UPKF3Qyww8Ahh5rDcDSPLy5kexc1/BjXgWcYQNE=; b=a12Rds1zlFWzejq9nAepL1H36AhkrzVm2m8FpMgJIcYY9TyNVtNWMGGAiaICZ/YvVM xwwnZYgy9vqYA+DI07LieSHscsG1eYb/1kvOLyNoUAi7AQC6hBJ2z8YX4yy40t3GfzZu DToH6I5/gBMZC3/8P8uN9n1eS/UHDYH8/8/nDmWtRGorFAI6qssvJse9vKDvcOt3N1dI aFiXjFoVB1mZw0pet2+RxmgqerfUWFkLLWoaH9xUtgWD1UC5dgo2l/rm5igwS1u1JGCz vLg+TGrdAJQFX/712XFmyMHfNhquOwlfusm4GsGg4nR2PEqIQ0ImpUcDRrav5aCw9M5q pHow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716377910; x=1716982710; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ozR5UPKF3Qyww8Ahh5rDcDSPLy5kexc1/BjXgWcYQNE=; b=YQ2LAqZWc5eg73iNmk6dgJ++/XNuzU4BSMZFmyrLjQIw67YKwUbXp/uHWHQN4MITLh YTWx77JJfUMR1nupAZtBTfJYgW/Jk4gM9CrS2QUTMaKWfLtzjNoUqnY7vLhpVf09tkZk w7KwTF8wou3Gqo//7wfAa+LP9ZfL6TWBfQ2ZvmLJZoSdB4DnERTGGc7mP+DqyBF4gXOD M9lQa+nwNRm2yvR+cxpHstae5kg16yZTdZbhxta7DmWT+/vKTFu95X8SXEosOdsfNZsP o0vGXEIJU6my+tp7Y/Zk7OqFQjRoUxEAL2ZgPcYdcJ52aE/8yl3i5NNIWTGvltDkCGsK 0CmQ== X-Forwarded-Encrypted: i=1; AJvYcCV2dNnnmm5Md0RGKb82KC2VDl4QbK8GVX8lgjs5tIK9Y1rxaHivdOyTRCqzDgfn4PtjQAHCImy/HnSonJIZOxu1SqRDVf/KbiQLC6Xd X-Gm-Message-State: AOJu0YzzYTbugvSLbtJmlmM9LKN4rI9uGwi9qP+ns50hSILW0WVh0rUU N00hXvoYyCKDa0S+VbN5X201lBhJ7ByCRTIWs1ytfKPfchNf+14eezXyh8hPgBk= X-Received: by 2002:a17:906:4c53:b0:a59:ad76:b371 with SMTP id a640c23a62f3a-a62232b3846mr157482666b.26.1716377909924; Wed, 22 May 2024 04:38:29 -0700 (PDT) Received: from [127.0.1.1] ([2a00:f41:c55:53ae:3b6a:7bb9:3183:8e19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b179casm1758569066b.203.2024.05.22.04.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 04:38:29 -0700 (PDT) From: Konrad Dybcio Date: Wed, 22 May 2024 13:38:23 +0200 Subject: [PATCH] spmi: pmic-arb: Pass the correct of_node to irq_domain_add_tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240522-topic-spmi_multi_master_irqfix-v1-1-f7098b9c8804@linaro.org> X-B4-Tracking: v=1; b=H4sIAC/ZTWYC/x2NQQqDQAxFryJZd2CMVqFXKUV0mtFA1WkySkG8u 6GbB+8t/j9ASZgUHsUBQjsrr4tJeSsgTP0ykuO3OaDH2t8RXV4TB6dp5m7ePtnYaybpWL6Rfy4 2FQ2xbgePAWwkCVn+Hzxf53kBypFbU3AAAAA= To: Stephen Boyd Cc: Bjorn Andersson , Dmitry Baryshkov , Abel Vesa , linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev Currently, irqchips for all of the subnodes (which represent a given bus master) point to the parent wrapper node. This is no bueno, as no interrupts arrive, ever (because nothing references that node). Fix that by passing a reference to the respective master's of_node. Worth noting, this is a NOP for devices with only a single master described. Signed-off-by: Konrad Dybcio --- drivers/spmi/spmi-pmic-arb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 791cdc160c51..46ea93f78dcd 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -1737,8 +1737,7 @@ static int spmi_pmic_arb_bus_init(struct platform_device *pdev, dev_dbg(&pdev->dev, "adding irq domain for bus %d\n", bus_index); - bus->domain = irq_domain_add_tree(dev->of_node, - &pmic_arb_irq_domain_ops, bus); + bus->domain = irq_domain_add_tree(node, pmic_arb_irq_domain_ops, bus); if (!bus->domain) { dev_err(&pdev->dev, "unable to create irq_domain\n"); return -ENOMEM; --- base-commit: 8314289a8d50a4e05d8ece1ae0445a3b57bb4d3b change-id: 20240522-topic-spmi_multi_master_irqfix-f63ebf47b02c Best regards, -- Konrad Dybcio