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: 1723313 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=walle.cc header.i=@walle.cc header.a=rsa-sha256 header.s=mail2022082101 header.b=aCz1+DyW; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NrCwF1cQnz23g5 for ; Mon, 9 Jan 2023 23:30:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233304AbjAIMaa (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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: devicetree@vger.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 Reviewed-by: Andrew Lunn Reviewed-by: Andrew Lunn