From patchwork Mon Jan 9 12:30:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13093370 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F648C54EBD for ; Mon, 9 Jan 2023 12:30:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234220AbjAIMaa (ORCPT ); Mon, 9 Jan 2023 07:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237265AbjAIMaX (ORCPT ); Mon, 9 Jan 2023 07:30:23 -0500 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 726F01BCBF; Mon, 9 Jan 2023 04:30:22 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (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 3AD5A38; Mon, 9 Jan 2023 13:30:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1673267420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=upyrZdolmsIaz/3ipKAYE7vsFiNeP/xhZA94dw1O1dc=; b=aCz1+DyWw+ecXR5EeHHM/sgINUpWBxrv00H8HNBpDuTdDOlVacW6yFGFgxmc6pWpWLFfd8 dRSyZDuafeafjh0GCf1ui2ctG2jtJhSHenSeo5ip4wVkrSp9SNEE0g/yT5Gm0veqa8xB2K lGZkRwXtgPYr2oNBIVVFh03+hwh0Vq+VAoykwk2Da2OVWfKNZFiMxtL6lBUPiaHJEEQUOK J4Q5Xp1aKyoqHzEIi6zxjjQVo+iZxglZU644X7HZtLwxxCl9bDLW1EMBK8GVEp5OREEwVz MJd7Z/NyvqQax2/mjqyTDMmx1qZk7L+xYV6EXMIYAwhlAKVtpRmXBUy/lgu/LA== From: Michael Walle To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Xu Liang , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH net-next v3 0/4] net: phy: mxl-gpy: broken interrupt fixes Date: Mon, 9 Jan 2023 13:30:09 +0100 Message-Id: <20230109123013.3094144-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The GPY215 has a broken interrupt pin. This patch series tries to workaround that and because in general that is not possible, disables the interrupts by default and falls back to polling mode. There is an opt-in via the devicetree. v3: - move phy_device::dev_flags after the struct phy_device definition. also add a comment. Thanks Russell. - add a rationale for the new devicetree property in the commit message v2: - new handling of how to disable the interrupts Michael Walle (4): dt-bindings: vendor-prefixes: add MaxLinear dt-bindings: net: phy: add MaxLinear GPY2xx bindings net: phy: allow a phy to opt-out of interrupt handling net: phy: mxl-gpy: disable interrupts on GPY215 by default .../bindings/net/maxlinear,gpy2xx.yaml | 47 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/net/phy/mxl-gpy.c | 5 ++ drivers/net/phy/phy_device.c | 7 +++ include/linux/phy.h | 3 ++ 5 files changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml