Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7241840rdb; Wed, 3 Jan 2024 09:02:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSpZk7SqWkKDroq3q02+8YvTFXyNCkMoWr7BaruVpvl/v4KhshnjI/8bdTuCMBcFTCOcqD X-Received: by 2002:a05:6359:7301:b0:172:fb12:e7b2 with SMTP id ux1-20020a056359730100b00172fb12e7b2mr13095204rwb.63.1704301321091; Wed, 03 Jan 2024 09:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704301321; cv=none; d=google.com; s=arc-20160816; b=orGZBkgh+3/T57dwqUywHyt1ENjmcOlyoP1kDdcn0/8936KJQ7FsEjb1h1Blk4wR1S utQp1AfAhvgXGj90OnjV8fBZzrDgQbYT/gGcTVp6HGLIpVBgUN4ZcfTa4zgPYTzFvrDP C5IxLtMitXh5MyWxy/UGYgsL3DPJ9gDCwqyRo8ctkNKOX59J2poNcvRAs97RR1o1EKaz flsUuY/RPjNO4cKb6nu+m+YsBwbTsMF7qCAbo+FXKS7rEeqIIUJJOhFvlsMQaBFnB/vf 8klMk12Ib5ISOrMtRzM75qpDouiNWQv83Z6UaEltZh44fkIKd48ekctdmsurv8uR5AF0 mNDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=oVTmI+8SJlo66J8e4e/1PXwZd0ZEK+jDBeMKC2o+Ab8=; fh=zylrA/7XRZnzmUyS761iN5V3F8lcNtR4rnj4zyWDpyY=; b=KZhSPjpRp7tqnyiech0GLCfaQhmNcZy9T10PQ3vWduTGOlSBn8fr6YpqRy1i9K6Oai lKz3RhLUXzWWhZR3Yx9GXt8LEieBQ7Ok4+sQVZ/nxaW0j74aFOTXF9/Ti2TFLA2d6hZW J3PSnVdV+UqjyS+TZYLN17x0Mpy0+wwHX80I81CRSwehhk48N/QHoOj4rrzCfGKmCN5C I9dQHhqRIAMmC7oky7VQv9PMmNpvzd5I93Ugqe6IFaLqrMYKLNoI5jk+BG8AbwPlCJ8B gLBQTcoffd6OB+CRBAnJIhpL41pgJfuFncbBzcTArSlRS8cwsdivV/vlIMgqHsdb3AlW cHWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="EFh0ToC/"; spf=pass (google.com: domain of linux-kernel+bounces-15782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e7-20020a656787000000b005c67398f70fsi19010095pgr.379.2024.01.03.09.02.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="EFh0ToC/"; spf=pass (google.com: domain of linux-kernel+bounces-15782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 035EBB23253 for ; Wed, 3 Jan 2024 17:00:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C7811C295; Wed, 3 Jan 2024 17:00:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="EFh0ToC/" X-Original-To: linux-kernel@vger.kernel.org Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BD2F1BDE9; Wed, 3 Jan 2024 17:00:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oVTmI+8SJlo66J8e4e/1PXwZd0ZEK+jDBeMKC2o+Ab8=; b=EFh0ToC/9RxY68FyQPfSmJBxkr 0jQUb8I3mc4fZ2atp9SL3oJkZTRcg5BoLVYQXEK4hQX5h1kbKX9FzGKjkNJ4L28jthZSTu54Xkgl9 vJP2aYFpNgdwHXJWtAG2ZeWkOqYMEakNXaZID41bdpzDRS+Aig2KRdKGcxTullSakE9yUhOYUmMNm WVPNX32gxmcPQmyi8pnR7R7wYIKyxjDlwCdE1gTsasGdWynZb2Zf4/1W/FJdEF3X7UGxoF2yub4WL DF/oaj211yxamL9CtaPiSrKsXS2Vu57xo/2owzMqI00cbOX134oGZKetqzS3AkbO9LeA/f/t5Ufzj qeLsKXBg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55008) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rL4as-0007iH-2U; Wed, 03 Jan 2024 16:59:50 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rL4as-0006Xp-OQ; Wed, 03 Jan 2024 16:59:50 +0000 Date: Wed, 3 Jan 2024 16:59:50 +0000 From: "Russell King (Oracle)" To: Christian Marangi Cc: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Heiner Kallweit , Jacek Anaszewski , =?iso-8859-1?Q?Fern=E1ndez?= Rojas , Sven Schwermer , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [net-next PATCH v6 5/5] net: phy: at803x: add LED support for qca808x Message-ID: References: <20240102183835.5332-1-ansuelsmth@gmail.com> <20240102183835.5332-6-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240102183835.5332-6-ansuelsmth@gmail.com> Sender: Russell King (Oracle) On Tue, Jan 02, 2024 at 07:38:34PM +0100, Christian Marangi wrote: > + if (active_low) { > + ret = phy_clear_bits_mmd(phydev, MDIO_MMD_AN, > + QCA808X_MMD7_LED_POLARITY_CTRL, > + QCA808X_LED_ACTIVE_HIGH); > + } else { > + ret = phy_set_bits_mmd(phydev, MDIO_MMD_AN, > + QCA808X_MMD7_LED_POLARITY_CTRL, > + QCA808X_LED_ACTIVE_HIGH); > + } Maybe: return phy_modify_mmd(phydev, MDIO_MMD_AN, QCA808X_MMD7_LED_POLARITY_CTRL, active_low ? 0 : QCA808X_LED_ACTIVE_HIGH); -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!