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: 3738 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2130291wrt; Mon, 9 Jan 2023 04:36:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXsI5oQJRFZm7NcOha4/pGY/zAHq3DhsyGRmcA92hGYFkhi05yAInnGOCevhylMx46YlBPBi X-Received: by 2002:a17:906:2442:b0:84d:141f:6784 with SMTP id a2-20020a170906244200b0084d141f6784mr11048129ejb.29.1673267794684; Mon, 09 Jan 2023 04:36:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673267794; cv=none; d=google.com; s=arc-20160816; b=rTg7Ux/yQomv7pymk1EWZkLl5fD5pmDzeeHAjji9XgBPz0tlhxavVkVfBPKfSaxQNU g7z/AK7gNv8TkCLj7xfM8kDeTbzr2ReCLIEp62SFTBFSyMdops7ZcehCgtfi+BJd6dJc vmrtmbU1hSUq8ahrQuI2JwgC3pva1Tf06Na714lk4MtdAo7jKKysZKA4wSMDPRYeQRgl aWwqFE8D7fcRqXxF/IEu/pgwbWtdyIKJLy++QY2eqN9uM9MUCsoJ1mnrGIUodSyKQpHN DCJMdV2mtnifZveVo10b6Ra9kposQvx7FTVmPGD10F4lag0bqkbfGDOr4x4QvZtZVKI4 jkmg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=upyrZdolmsIaz/3ipKAYE7vsFiNeP/xhZA94dw1O1dc=; b=1CmqP6h9Mg6v2CBkR2JmA/Rseq5FTasZ/CpJBqc2mDRYpVDide95NlnnHKYmqvnqBX vHAU82USy7C+D1ue0hE55c0s7zcN9Iy1reH6R2Zai/zwpc71zDRBFpYmYk1ZLEvFD0GJ 5M9qtjF6ermExUQB7Hrf4OeO1f4Avrv+SMSx6rW+CQwcWVwXekIuibSyCUpOH112Ziaq 88u4tcW/NNKZdu38bs+2JbxxhTN+PFfV+YWtEekXvguX4RxeyAjYMPpQSFqbue6d9P+L xgrT3jsq+zGtyo183NeW1YPjot4dmT2N/vdhbiUZDszmOR/Sa9BMdGSld4zVAGRG3qLf UYPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=aCz1+DyW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb27-20020a170907961b00b0084c7e7eb6fdsi10030232ejc.131.2023.01.09.04.36.11; Mon, 09 Jan 2023 04:36:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=aCz1+DyW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234672AbjAIMac (ORCPT + 99 others); Mon, 9 Jan 2023 07:30:32 -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: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754548451021727350?= X-GMAIL-MSGID: =?utf-8?q?1754548451021727350?= 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