From patchwork Wed Nov 29 02:12:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 171025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp68232vqn; Tue, 28 Nov 2023 18:12:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVVyuBWQ8QI8WPIMqHK5WzZocd7UyxMXof0zZyWZdVYluGtHNN3vb61Ow/KkX44dCNkWo/ X-Received: by 2002:a05:6a20:5651:b0:187:3709:80ae with SMTP id is17-20020a056a20565100b00187370980aemr16244683pzc.36.1701223965484; Tue, 28 Nov 2023 18:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701223965; cv=none; d=google.com; s=arc-20160816; b=0F97Z4GoyAt1vxD/A+3uFhN4tkowP8yJKaYrARz313RdeSnpQgOzw7z8oOyyEULBHm uUf1pbunHmhnnFgEFKp7pysM//XzbV1Ez2p3s/MIR3Lo3/d3DrUqRvWQeXXA9dpBN7zn A1YzxPLzUIM3y9GWTJ0a8gkeXP2BmORHKgEeGhsGKGEqYF0qetdVaO041wQtqf2NkpP6 NkMOTCvBhZb/NjY01E2zKq8uWiEgR3T2WdeBbZgWIkpUOEo7nxJ7h3obBVAUiPIA4blP EUsbhIjVInayWo/SamjQb+S2MzAlHu06dex3BngD6SnpejzqnF3sWHMNcAtiwJpfg5iB 1kzg== 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:date:subject:cc:to:from :dkim-signature; bh=U5ay5oC9DZAwFCrHcch3zWMGDOFcuL6xfvWXGq+yQ4o=; fh=M/Mg9TtngevyqXgZJCTwFV5p5//1sl9LEorA0JOhC3o=; b=mZ9cUeltJ6g2+AfpcaxyWTtE0Lf+EnNJmwK8dNLgGCKN+7lon4/o7BcbPDqrnX20bF YXH/CzY03WhKzX1RVsMMurysIDGmEgR3U44y3lc3VG8sVppm3KRAoDzTEvByRZsrHQyi IGHnC2MYfv6Iw3gzc0zRJSiFe7h61FDAsIPfQPm/tZJi68nOwwsosHXxF/JD8EnsZoz4 VJiJrMfC5w6wUlqyqwfNaE5r8W7QTgDyhYVn3ck3CNDfuY6uWFuJhyq2oNQsN3eQkFl8 hsuTPl54K7bE5zZ+RFUHJHGpEganwZ1OdOy32yi1T81g5/Hic9szhRkwK2GSzHm5FSb4 UUTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PNLN+iBx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l19-20020a635b53000000b0058986c61bb6si13013866pgm.706.2023.11.28.18.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:12:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PNLN+iBx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 653FD80C0368; Tue, 28 Nov 2023 18:12:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229477AbjK2CM1 (ORCPT + 99 others); Tue, 28 Nov 2023 21:12:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234566AbjK2CMZ (ORCPT ); Tue, 28 Nov 2023 21:12:25 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CA71998; Tue, 28 Nov 2023 18:12:31 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40b5155e154so3764995e9.3; Tue, 28 Nov 2023 18:12:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701223950; x=1701828750; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=U5ay5oC9DZAwFCrHcch3zWMGDOFcuL6xfvWXGq+yQ4o=; b=PNLN+iBx/BxFlMzskCMpuMoh6q4v1hAUuQRgTjxfPnTUZnMYoPoIW0YCjXJaPprExm MiT6LnxixIYVouQ8aBY4uYVEgJglk2xJYTZAnBcSphA4DXTYRj8Fo07vkSLxecP7Fo6Z vAm4LViIVSYhlLv7DJacOucQ27XWeVWHyYmSLLAe/3YNLru7eU8Qf5WW4z0VsQse/FEH w81F+pXSyOb6agQ487bnPfmzXFTlXZ6K4dmkU5ccGJlRXer5icdBLlf/JkqTW/HquJpf l0NrGZpkPcLCFXuXaTByY7xUy7ljBvnl4di20HLqEly8+YmwJk1WGfGWlELMZrg4ehYC QFgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701223950; x=1701828750; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U5ay5oC9DZAwFCrHcch3zWMGDOFcuL6xfvWXGq+yQ4o=; b=LAygyRjfWfx3QFxDl6FZMRNWGxl+wDnPgChtB3VsJ80BxdfEGjrkD6UcFLCqQAhicZ im/0hxngJhFkL31G4WLvMZkePysHGU2U5sW3Ffy9xReL3kBAac4yYFupAedEPyQpr/UT 9PTn8d0nzjWQ1CiiddsooDefAEdfq0SNbZUBSpB6dH6ls/WHvbG08ojhhUMUgMOuk7/y ZG3p3GWRZvssGuc/HRAMAz0h/Ap+mKYO/4sqlgm7BV2gmsO/Uh+3oVgKQpHsxQOcz3g1 wfisle1gNrnOc/t2qOWjWv2+WMvde5Fin5feKjc5H2Sn2fCvZT3Rui8xzlQqSsd67HWP c9vA== X-Gm-Message-State: AOJu0YzBXC+wJw0JluAMfUQlXRZVRDLZUQxECM+u6nhi/BxI1C9tapBx M1gl5EhWovvmeE3KXLI48Tg= X-Received: by 2002:a05:600c:4f82:b0:40b:2b42:a1c9 with SMTP id n2-20020a05600c4f8200b0040b2b42a1c9mr11767158wmq.23.1701223949645; Tue, 28 Nov 2023 18:12:29 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id b19-20020a05600c4e1300b0040648217f4fsm321406wmq.39.2023.11.28.18.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:12:29 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH 01/14] net: phy: at803x: fix passing the wrong reference for config_intr Date: Wed, 29 Nov 2023 03:12:06 +0100 Message-Id: <20231129021219.20914-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231129021219.20914-1-ansuelsmth@gmail.com> References: <20231129021219.20914-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 18:12:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783862620636725918 X-GMAIL-MSGID: 1783862620636725918 Fix passing the wrong reference for config_initr on passing the function pointer, drop the wrong & from at803x_config_intr in the PHY struct. Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn --- drivers/net/phy/at803x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index 37fb033e1c29..ef203b0807e5 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -2104,7 +2104,7 @@ static struct phy_driver at803x_driver[] = { .write_page = at803x_write_page, .get_features = at803x_get_features, .read_status = at803x_read_status, - .config_intr = &at803x_config_intr, + .config_intr = at803x_config_intr, .handle_interrupt = at803x_handle_interrupt, .get_tunable = at803x_get_tunable, .set_tunable = at803x_set_tunable, @@ -2134,7 +2134,7 @@ static struct phy_driver at803x_driver[] = { .resume = at803x_resume, .flags = PHY_POLL_CABLE_TEST, /* PHY_BASIC_FEATURES */ - .config_intr = &at803x_config_intr, + .config_intr = at803x_config_intr, .handle_interrupt = at803x_handle_interrupt, .cable_test_start = at803x_cable_test_start, .cable_test_get_status = at803x_cable_test_get_status, @@ -2150,7 +2150,7 @@ static struct phy_driver at803x_driver[] = { .resume = at803x_resume, .flags = PHY_POLL_CABLE_TEST, /* PHY_BASIC_FEATURES */ - .config_intr = &at803x_config_intr, + .config_intr = at803x_config_intr, .handle_interrupt = at803x_handle_interrupt, .cable_test_start = at803x_cable_test_start, .cable_test_get_status = at803x_cable_test_get_status,