Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1309474pxb; Sun, 22 Aug 2021 12:35:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLuALG65HlVpwslx9CVrMtKfCg73h6gF6f7SbgsA7n34YFnJUiLe/isMSRwkl4z51BLgi2 X-Received: by 2002:a17:906:c1da:: with SMTP id bw26mr32273529ejb.253.1629660941260; Sun, 22 Aug 2021 12:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629660941; cv=none; d=google.com; s=arc-20160816; b=w2cYMJeO4ZXchnsmQbTCkKkXZygSDZBEwXmDcWC7VWov0q7c5lra13A+yw/d2hdSuo Yhj6Z1xjPSkqNMEkMvjoouCkRO2S456NRMd6g1vs2VsC3cWhHUn7eVOQNtP4TUflEzdN IWfPVzwjM8yXNoA9+jDx4WMknoTK+noj34A0e5CXoJNXcTaI1luA4BJGOYF5fHwvzdWg en2LWuIJpWDxuBK/edb5NK1zv3VYh6haIdSowJCOtyKvJw3aDLZMxIXAEs+BBjtCon7A xfxn/fUebxBLMMar5b6heOMg9ffobfsn+p4EHYEFpe8NSa+T9rnFPMPIIap3X5PTI0sy 12HQ== 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=+Nzh1d+N/uwFrWUnjgU0gqJLXBqT+FtWJdnjcrat3aI=; b=LrsFjiaAedkHitazeUZzCKyE5bcfkMtAjrRSzmC+wptgOiHmhlvllGcTBqRGxA8nW3 lMBky82x7xOmjMO6VoavnKOBH4IuXMXdFCYJMZ4mKT0aQmPNoS+f8+ZFzdUYv2Lk1yAK rjqFr7m4pb9MbM3BluCkmnlONkMO8ZSLErKXTV5mVllV1Y0jKabSnNaOPa4vMdGC6k80 tnvOT/HOfIVLZV/GK8teDjUFyDqYmMCS69m0JKLg2UsHnMec+IOviDYc5vYWDxKxPTKN t0CnDYRGp83GBOMm6F+uv0PvbA/9dODCFD6XjShRBY5phey18BHIO9qhrGY8oCPaPRSg eEsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=gpGjl8Bx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si12369174ejy.519.2021.08.22.12.35.18; Sun, 22 Aug 2021 12:35:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=gpGjl8Bx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233586AbhHVTdo (ORCPT + 99 others); Sun, 22 Aug 2021 15:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233324AbhHVTdk (ORCPT ); Sun, 22 Aug 2021 15:33:40 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38253C061760 for ; Sun, 22 Aug 2021 12:32:58 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id i6so22790775edu.1 for ; Sun, 22 Aug 2021 12:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+Nzh1d+N/uwFrWUnjgU0gqJLXBqT+FtWJdnjcrat3aI=; b=gpGjl8BxzvHz9UV3JmbcUDXQIAv2TRnxsYTg01PLqGl2yVE2/kHSC3pDWe5sLGCuJH 0vy33j7q/fygzO7L07lHikaP9rfsUdW9hhVtPhBStxS0TUeFe5ytmbFbEgCFDkLsZ1Hw XuRSoa1Zhme6SbTWde0YLNv2SwBa0rq23EFvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+Nzh1d+N/uwFrWUnjgU0gqJLXBqT+FtWJdnjcrat3aI=; b=A4pkwFwYcE+HAStwXpOQ0khb0Vf/adbkh1dP2TlhqMgm3NzFPlnhmhxds3XbAxX+tk RWTwrXS+lKRJHEZUcrIO441KefrnM/v0NOVvl+04d7+hVFqiAb+shlpi6kOA85aERNDp 6+0kH9vV/499NKUdulMIOsq7z0Y+EbvDOO3E9wflO2qeJr9UHko1bob0it8n03w34TBS hCOSyHfpfgf4FiOm2BOpeynRfMoloQwWPrZNpRhlRSz3UUdVhEx7t56a8bMULQpzR6Uv fDYDThipEkz1cFk+lpH6P6Y/ThxdF+u3v7X5i8zYXzEs7GQfim+hiH1rlC5AK3ES+PBH WLLQ== X-Gm-Message-State: AOAM532ZSLPf7MmwOM7UTKTVSPjtWyZ5dGqvW3IiDQYC1Gag5ZsDS9hj cwM52D6X3Hvi+F130LgSDS+LKw== X-Received: by 2002:a05:6402:2158:: with SMTP id bq24mr34070883edb.8.1629660776839; Sun, 22 Aug 2021 12:32:56 -0700 (PDT) Received: from capella.. (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id cn16sm7780053edb.9.2021.08.22.12.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 12:32:56 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Linus Walleij , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Heiner Kallweit , Russell King Cc: mir@bang-olufsen.dk, alvin@pqrs.dk, =?UTF-8?q?Alvin=20=C5=A0ipraga?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH net-next 5/5] net: phy: realtek: add support for RTL8365MB-VC internal PHYs Date: Sun, 22 Aug 2021 21:31:43 +0200 Message-Id: <20210822193145.1312668-6-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822193145.1312668-1-alvin@pqrs.dk> References: <20210822193145.1312668-1-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alvin Šipraga The RTL8365MB-VC ethernet switch controller has 4 internal PHYs for its user-facing ports. All that is needed is to let the PHY driver core pick up the IRQ made available by the switch driver. Signed-off-by: Alvin Šipraga --- drivers/net/phy/realtek.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 11be60333fa8..a5671ab896b3 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -1023,6 +1023,14 @@ static struct phy_driver realtek_drvs[] = { .resume = genphy_resume, .read_page = rtl821x_read_page, .write_page = rtl821x_write_page, + }, { + PHY_ID_MATCH_EXACT(0x001cc942), + .name = "RTL8365MB-VC Gigabit Ethernet", + /* Interrupt handling analogous to RTL8366RB */ + .config_intr = genphy_no_config_intr, + .handle_interrupt = genphy_handle_interrupt_no_ack, + .suspend = genphy_suspend, + .resume = genphy_resume, }, }; -- 2.32.0