Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6272679rwn; Tue, 13 Sep 2022 01:24:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7yPUVipnfaZ0zCXL4Ias9QGgOorAp876R4d5g52obBH1FLONNbGuqAUEshWw74ZjZ16bFv X-Received: by 2002:a05:6a00:1695:b0:53b:2f0c:4d33 with SMTP id k21-20020a056a00169500b0053b2f0c4d33mr32148136pfc.7.1663057457905; Tue, 13 Sep 2022 01:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663057457; cv=none; d=google.com; s=arc-20160816; b=TnceTPTMbTdJBmqBHuiOQ9NMU7cS5ZZQaf1pFOfq097pa5Vtr2Z2w4TnYrcmPrPOSl kMX1UEfhO713sUjsWC9q9HzllmWMgleURfukT5nD4vtq/u11LFrtEyYMDXnpMFN00li1 06vRRoJlZIZCbCHdKQcSs73RLgfE0GSP6RIINYCuHj9aUrMB/EgLWiip1YR3gmCqlMp/ nfu74aBdRry4dpLF5U7HfjYQngixmybAfyiOAss6Kj8bYTwObx2IsmT+R5b7FHPStAWl himrs1MqehXfbDk+oHjO6dC6o2AmZj7+6kcJ8adKCPvBDih7RIELIAtQbcg2moERoZEG qMtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=yVtB/VJEfqHZoKPwgwxIul/sPitJMz3rz7VeLQrdCpk=; b=rK8EDlngNHr3PmfuVGcsOeP/xvHv5X7H4tVhK58yE8sRR46w35thrH5X3RHjhEgBMC vf1eu9tVwJi2B4dK9+7O2fVMtVfTOQCgMcxpl/JdWASElGj1x5QzM9E2be8l0juHTfCX z9/SyzyfPXyiIvNTrv7keEPs0eq8jNkul98scqFLsqDkkALfvejGQHjHzblUZ+RJGk0o TtA6TtgL9JE1cjQMSx8+OKcvOjQeBc4nTsVKq4oI1SAMqe8iTebPnuetoTMLMm2nVnTL YxqCM7gOcpqHs3rfA7gy0NTGvmJPchGmaNHD/Y/vlo9QOoq3xI+16GTTZ5ZEbuQRDNCg ikNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=O8jLzS5G; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a170902dac500b00172fa1d47d4si13676211plx.509.2022.09.13.01.24.06; Tue, 13 Sep 2022 01:24:17 -0700 (PDT) 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=@walle.cc header.s=mail2022082101 header.b=O8jLzS5G; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230417AbiIMIAS (ORCPT + 99 others); Tue, 13 Sep 2022 04:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiIMIAM (ORCPT ); Tue, 13 Sep 2022 04:00:12 -0400 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3EBE240B7; Tue, 13 Sep 2022 01:00:10 -0700 (PDT) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 8F3B7135F; Tue, 13 Sep 2022 10:00:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1663056008; h=from:from: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=yVtB/VJEfqHZoKPwgwxIul/sPitJMz3rz7VeLQrdCpk=; b=O8jLzS5Gmcb8l6dbfs+w/rpJXtZ/yp2o/NXEZIkfR3M43rISCrVAp0+S0sGE20Npg1KUWp 9PW2Rv3L6Ux6Wzf4IC0DJILnCi3+NrKbmvia517IsaYsoqnBQzBMVXoF1ZOV5+TVd4S0pC lBiLgqnlP8RPykM/rpIp2hWVmMzERr52IsC8r5SPPUPUHNqhiAXAX0P8o9KnTbig1cnXO9 iXfGstMhkzx+ANdS8AOO55NwER9t0f6S046TKu6rgyeIjEqlKwhFPMunTqkY0r97pCVtho +o4MbS+lmedILV8wt9krA8FCWF08nr0ITFK8xYij3kySvXJMnxXUfxAkcKc+VQ== MIME-Version: 1.0 Date: Tue, 13 Sep 2022 10:00:08 +0200 From: Michael Walle To: Horatiu Vultur Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, claudiu.beznea@microchip.com, nicolas.ferre@microchip.com Subject: Re: [PATCH] ARM: dts: lan966x: Fix the interrupt number for internal PHYs In-Reply-To: <20220913075719.y63uvvwzquk435ht@soft-dev3-1.localhost> References: <20220912192629.461452-1-horatiu.vultur@microchip.com> <20220913075719.y63uvvwzquk435ht@soft-dev3-1.localhost> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <1f9ea2607ea1d8e0d4a2530a4c7dab41@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Am 2022-09-13 09:57, schrieb Horatiu Vultur: >> Accoring to Table 3-155: Shared Peripheral Interrupts >> There are ID47 and ID48 listed as "MIIM controller 0 interrupt". >> Whatever that is, because the internal PHYs are on MIIM >> controller 1. >> >> But 80 and 81 would be ID48 and ID49. Did you test the >> interrupts? > > Looking the same table (3-155) in the documentation that I have these > interrupts correspond to ID112 and ID113 (Embedded CuPHY port 0/1 > interrupt). > And because these are shared peripheral interrupts, it is required to > substract 32. Therefore I got the numbers 80 and 81. Ahh, I need more coffee :) Yes you are right. > As the internal PHYs don't have yet interrupt support, I have sent a > patch here [1] and I have tested it with this. > > [1] https://www.spinics.net/lists/kernel/msg4511731.html Thanks for the pointer! -michael