Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1858960rwl; Wed, 12 Apr 2023 20:47:54 -0700 (PDT) X-Google-Smtp-Source: AKy350Yo+4qk2TPzaXhU6iTaf2AaO9+obZ/OMV4aP49GzFqJO0OMfxrJOg69tW1l3jBlFoL+UW6e X-Received: by 2002:a17:906:3713:b0:949:b9fa:497a with SMTP id d19-20020a170906371300b00949b9fa497amr1145517ejc.70.1681357674076; Wed, 12 Apr 2023 20:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681357674; cv=none; d=google.com; s=arc-20160816; b=cXr3x2IeBqtdDCXw+kj3kQmvB9f07eKx1xPS7prNHJyJfcsSBKM29O80kb9VWub3zU QqAdrNZOXPtHPzUfa9W6+3IgkPjp4q8pcjfv0ZqaUj0C+uf4HzVrRO6Cep8jRatfBVZJ QwM3MbsJWcwgIEz1MNNYOHSiX8QGWEjq5KndtGFU2nVhsc+mQ9tN8VyBvFhzrEzSqhEG M5OblUrbe7NTgCZoTavY12ryhzheA1n3W4GFWRCKE8C1IqwZVSsdawG9CriA9mqOuGjb 1yczfeJ8t5pdK0PmttSA3AP+Jm4QVZEXvuASi1yBT0G3sfP3P5K2MJOpb8UQbM1qTuGv jdfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=4KpZeRwqyMHOsBGv1lAz9RH0lv5BYrWYNUSlhZaYPWk=; b=TBujrlCo/uQMMALV8gSe/Pxg/Pi1ZY1Sq0IRa1v+1wFxynt6JyxwLk/mhTk2bXNbgv 097R7WwU2n20DGpVhhtzBQIqUxOiZl1DLKUr5UkLxI5xiMbTEyllPvVK3/dIeBq5EqRt ZslzHveVkPmrK9yvUvld2oZV60cWRR1P2SgAY4BC1Zxmzar/nw94eXKqaySw95voVs8D cSuQZc/E6sUmOpVGX3STQeehzCjyQX592o6WJCsVre3Lvwsn4jAIyk2JSem6tPvpoFVd zHFyusrpd1B5H7XlHJ6I0//au4b+TTEm8qcJkg3BMb7D9xjjyxOxGrQJV7QOFvKRcpwI oxZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YC81KQbS; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ep21-20020a1709069b5500b009094a93d9b7si693008ejc.990.2023.04.12.20.47.29; Wed, 12 Apr 2023 20:47:54 -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=@kernel.org header.s=k20201202 header.b=YC81KQbS; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbjDMDoW (ORCPT + 99 others); Wed, 12 Apr 2023 23:44:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjDMDoU (ORCPT ); Wed, 12 Apr 2023 23:44:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2146126B3; Wed, 12 Apr 2023 20:44:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B1749618A8; Thu, 13 Apr 2023 03:44:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF756C433EF; Thu, 13 Apr 2023 03:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681357456; bh=1PPvIHWJLWZaXeNwvxpCYgYBMdUgCOq4oAMZ+tDARSA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YC81KQbSbeIOZfW6h1vmXukqtShmRR80MyHthILoel5t8xoWmf3bzgUZlv3/FMQRJ 34vEK6xEQJgzScb7rjYU4HUEc1k0JVsWYmh4/musAxPl+s000Voke0qAST4xdBSowd y+V507Af9Cv6g2L5fBBlnuorLfsZskrlYZ5j0mqPpP/7Usat6krJeVv/rf+VI1/TvG sWWemgBGufShxUtWDHJ73MxJXSGc1s2sXirMEceQwA/THEOT6bISjfRvITgb46UXuz GFGjWg1IlFSosY2VqrZ77PCz3mJnfQidg9oK9rUXMo5RQ3jMS1zPe+6d0FNclebm9G vm3WqAiI4R78w== Date: Wed, 12 Apr 2023 20:44:14 -0700 From: Jakub Kicinski To: "Radu Pirea (OSS)" Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH net] net: phy: nxp-c45-tja11xx: fix the PTP interrupt enabling/disabling Message-ID: <20230412204414.72e89e5b@kernel.org> In-Reply-To: <20230410124856.287753-1-radu-nicolae.pirea@oss.nxp.com> References: <20230410124856.287753-1-radu-nicolae.pirea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 On Mon, 10 Apr 2023 15:48:56 +0300 Radu Pirea (OSS) wrote: > - if (phydev->interrupts == PHY_INTERRUPT_ENABLED) > + if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { > + phy_set_bits_mmd(phydev, MDIO_MMD_VEND1, PTP_IRQS, PTP_IRQS); Isn't the third argument supposed to be the address? Am I missing something or this patch was no tested properly? Also why ignore the return value? > return phy_set_bits_mmd(phydev, MDIO_MMD_VEND1, > VEND1_PHY_IRQ_EN, PHY_IRQ_LINK_EVENT); > - else > + } else { > + phy_clear_bits_mmd(phydev, MDIO_MMD_VEND1, PTP_IRQS, PTP_IRQS); > return phy_clear_bits_mmd(phydev, MDIO_MMD_VEND1, > VEND1_PHY_IRQ_EN, PHY_IRQ_LINK_EVENT); > + }