Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp555826rdb; Thu, 1 Feb 2024 17:38:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZJHu8HE0uJrObCxe5k7uPRx4kEJqTUBjimbkCPeXLAcxMKFU9ypDyRB1Dalg9+kpUKqaF X-Received: by 2002:a17:902:e808:b0:1d8:ac08:3cb7 with SMTP id u8-20020a170902e80800b001d8ac083cb7mr4707482plg.33.1706837920874; Thu, 01 Feb 2024 17:38:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706837920; cv=pass; d=google.com; s=arc-20160816; b=x0FC3wsF1j/f09azOS2n9Ca+ltkDAS6r2PyBO9F1CVq/THc88L11I7aqX1LesqxpRt p+rXSd1Z9iyTgLxmgbU14mFFuwb18VAGZU7PY8LsgePTr+EfLIUW31k+CQtBr99OGtf9 Yw1U/iGSuwNR++Yp2L2HUqep/erLG+36ezLe7yhfI34gbQAisJDELPOrctQLDxIpfUmR koPUTKkCjyx0MAE8ahviV8XX4ewpWW9r3mHweEd/6w4okdj5JSfvWtgvLbSxWZCDUJxU 76MQUG1OqvnqPCYIScXyDRP8o6MPAaSWqXVE0WRbvbHLXLcXCs3aGJ2Cc1Lv0qNTQsX3 CSLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=wV4rR0AKtPj1WIddqkyqKOAXUe6Ps5Ee+7NgRDAA0Yg=; fh=3RnbeN6sUaA3o94ga8DLCTKbDjhW4xY3Uhv2dNuTd9s=; b=0P/lqDIpypQgcvz8sb/fQgeAMfscoDnwljtJQ2ntwCElC/XRBlmpMugNoBiqSccoB8 c7/XMPIHl/7evkUcRUr44Jy7AedboxTuSylXme+fljJSlsTWuFc1DCQoiPK0YAZLXKoC qYBuEgXvsg+0zPhf9/Rhw3n3BTRw4m91nkIul2X2aiFnXu9VKpO8Bo8IpXLLm/LaFmxL 0hB+ODepa357A8PdYvmQJNgEo3uYojgWhAFixetovo07Pndta1GDEb56s0qcp7C6cGeY ywB9GhL3WNEaq96WjVbOMDiWCfxGcj+9RaifDfeOAS2WF/3gFJAqIS5mKlN98FQH9ra2 dLIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BfcRPwjK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-49067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCWBtBu8b/7bis9gKzUy1EWho/H+ghuZQ9jlfiTzhdzC9bKfJsnX+REw/NzQIfjlVXO+vMxCdqGVQQpV2e+C1yis6q93nM94B+lNeaLgbQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t12-20020a170902dccc00b001d5ea445244si720230pll.483.2024.02.01.17.38.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 17:38:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BfcRPwjK; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-49067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6ECED289B81 for ; Fri, 2 Feb 2024 01:38:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C935747A; Fri, 2 Feb 2024 01:38:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="BfcRPwjK" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 E3C1C53B9; Fri, 2 Feb 2024 01:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706837908; cv=none; b=rNS5iiUVf8AFtdG+uuuG+1vcVy6C+xKT48r5A1Haoqr7EHp9OvE1bH+QJNjHdiewAbq4Gr+KVkJ6n1xzMN01A2RkH2lW/O8URQFOr20D5ryqQ14zvitoNFMtd7Ntu5wJIPKXB3ub9JTz0cPeQlDVBrlNib0pTxMX9TyiIlkLmlQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706837908; c=relaxed/simple; bh=YcpLpVCdlye1BoPJKLYYkusS/fcIkeSV6M2HV65jNfo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BLOD90AIk7qyu+wDMsuIHp/cEkIn0CWj6fwThHdV8Hkpd9gwwDx08qVMuEH8fZ3C5SItX7QrcOZCTNBXXRP/0fu94FUtglY/UJ4HuuBdJTCtyF3Liw7Y8rk48rEQXT2/G8z2h9M+kzbov52wWeW2/VEitzqQzsEAjYPjzCLSbaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=BfcRPwjK; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=wV4rR0AKtPj1WIddqkyqKOAXUe6Ps5Ee+7NgRDAA0Yg=; b=BfcRPwjK3LbmSGRbFxgpQfDM41 jC7xyB9dbGsDvwdeHchIuQGXduQbs3cYwJ9GgrdepNy0Z+d1O6989t5t90dJOxOV9Hk2O3sMWYDd0 y6RzlqDkxjODnqGP0GyH3SHCzT6iXhfrZ+11uZ4jAc4xtn2wSfKMBUg6unvMINOCm+wo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rViVW-006jkd-BL; Fri, 02 Feb 2024 02:38:18 +0100 Date: Fri, 2 Feb 2024 02:38:18 +0100 From: Andrew Lunn To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Frank Rowand , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v5 8/9] net: phy: qcom: generalize some qca808x LED functions Message-ID: <56fb487f-4358-4c1f-9c8c-c6d75991972d@lunn.ch> References: <20240201151747.7524-1-ansuelsmth@gmail.com> <20240201151747.7524-9-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: <20240201151747.7524-9-ansuelsmth@gmail.com> On Thu, Feb 01, 2024 at 04:17:34PM +0100, Christian Marangi wrote: > Generalize some qca808x LED functions in preparation for qca807x LED > support. > > The LED implementation of qca808x and qca807x is the same but qca807x > supports also Fiber port and have different hw control bits for Fiber > port. To limit code duplication introduce micro functions that takes reg > instead of LED index to tweak all the supported LED modes. Please could you split this up. Do the move first, no changes. Then add the macros and other refactoring. That will make this easier to review. Andrew