Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3531284pxb; Wed, 13 Oct 2021 07:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYZlD4xzTEXmTHv8VH+Uhp6vmpI7DKcmhHHiPeveddnskhLLLSk820gDwbECUd9uStjAOE X-Received: by 2002:a05:6a00:2343:b0:44d:2e13:3edf with SMTP id j3-20020a056a00234300b0044d2e133edfmr13444983pfj.72.1634136788060; Wed, 13 Oct 2021 07:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136788; cv=none; d=google.com; s=arc-20160816; b=yWwtX7TC/fUyRZ0Z3gzXA5V0VbBSyOW9KEGk4wCpZpkSzKD6rcFVRMKIlhlmIgtLh4 ccVnMlp6KbbNEe8bt/qSMBKyvL1f3dms5sEYCCj4JD+tE28mYfJ+xUlK3AhiyPVyUhMX VbBiCxfyJ8yXldE/RGJdcSmgdUCe0SYLReEoyP+K5XQVikT+eyFspEcC7SL781G550cF sH3/PpGMG9w5XWxroXjw2GLXISccTPAT1/W4UjgLeWL5NT5XcLXR9ZLhG5SOCYCUKV9X SsTAZ4R/Xs/I4QximoUqMTrq31qFF+ZN4ppwInM7naJUDr4DRTFhlbClN2zV9lAxM+G+ ULBg== 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=qIGrxPrX/5Qdzso08VaHMbyDPIhwyDSE1YbGuKz74Ic=; b=ddBxirktLTHBDGAFNaKdt+vn0lkEy3D+jONwAVmWI5vQ+TNze72oJIPFXIH6Ka/vg4 ZE5fWbbqm1KFyckqVkuyxB5IbfK7gVn3EMtMzJK43fmFfPfjHuJSXZA6ffUnFKZ+Ddxa SQTX6cui+zeHS15s7hD5lqyFKjq+uBUoFI0ORrusEgpO1/c6XqLF6kcLCt0Bx8rl/58p PxMh66HFrun3aB71GOvmKwJ+Ij3oJFksAxqHOMorDqtVTcV0LLWPw/YDw6+bHlAagpnN dtNMG+c8D7kvhcwNi7lGq67/XQBNI6sS9jgWimlKstPkPv3sRxg35Hbd6rVldnrE2ZnH j90g== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=Gca8ta1W; 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 s12si20216796pgp.44.2021.10.13.07.52.54; Wed, 13 Oct 2021 07:53:08 -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=Gca8ta1W; 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 S238019AbhJMOxa (ORCPT + 99 others); Wed, 13 Oct 2021 10:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237879AbhJMOxN (ORCPT ); Wed, 13 Oct 2021 10:53:13 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4A00C061765 for ; Wed, 13 Oct 2021 07:51:09 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id z20so11340402edc.13 for ; Wed, 13 Oct 2021 07:51:09 -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=qIGrxPrX/5Qdzso08VaHMbyDPIhwyDSE1YbGuKz74Ic=; b=Gca8ta1WL/iPld9An4mFFTAeMO8yjMYP2PvRvYoYRKDMAcHQJ3m3g2OcHscvzDxW4o 1b3ywQWHHzR1j6lgrHwtPd2cMcmoftk1d7nBTwg/bMSoFRagexzN5Nmp8g6ZGxc8nxPY QEsPKEV/IZ/YUgkk1yO0QlfYWMPr/ZetBUOF4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qIGrxPrX/5Qdzso08VaHMbyDPIhwyDSE1YbGuKz74Ic=; b=oJeCrvvzxYvo3GtjOgLIEvnqF7att1674n2EIPbuTnmUR3dzGMdcA7W6ONu1XA724r oEuonDNXQT8Oa7WoA8/nC5VXWpMIfTT8M/Qf7XzVIc23TyDVxUP5u9Q9jdXp6IZ4ZagZ SDEn12eboWf2D0hsLsetq7WOHSf4xnnGOe+VFFRMJ+ZBjk/2T3QO7bq3MqgY6S4jdraf GmA8H4f47Iy6a1aI+otFFrMVMCj03Dym+hUo5JF3HZMKzF3NfaSFUCBjQpSrukCRDIKb VbcM61qMJOj7t3rjQGVqToEnEAiRNgejluWyZP62p99OIvl38FmphVjmPonEt09x9g4O W2nw== X-Gm-Message-State: AOAM532x/GXJu8EVCHlzm5W+KTllBTUuzTEWbzbjZvxS0sdvoqJp5OKo /EgGILaa2npKZJaVrguqfKyWpA== X-Received: by 2002:a05:6402:5187:: with SMTP id q7mr10119779edd.374.1634136668453; Wed, 13 Oct 2021 07:51:08 -0700 (PDT) Received: from capella.. (27-reverse.bang-olufsen.dk. [193.89.194.27]) by smtp.gmail.com with ESMTPSA id nd22sm7535098ejc.98.2021.10.13.07.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 07:51:08 -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: =?UTF-8?q?Alvin=20=C5=A0ipraga?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 net-next 6/6] net: phy: realtek: add support for RTL8365MB-VC internal PHYs Date: Wed, 13 Oct 2021 16:50:38 +0200 Message-Id: <20211013145040.886956-7-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211013145040.886956-1-alvin@pqrs.dk> References: <20211013145040.886956-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 Reviewed-by: Florian Fainelli Reviewed-by: Linus Walleij --- v1 -> v2: no change RFC -> v1: no change; collect Reviewed-by 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