Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp687032lqh; Fri, 31 May 2024 13:13:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5ijHc8nBAXPK7L8CXm2HGSeds6LzlrPhte+9mbtrpTc2dcnO99MrXhK6YagQA55K1Zm91SrR0rMejJyKkIBOWv3ZeB3HehX1QNiYqyw== X-Google-Smtp-Source: AGHT+IF7zIETDfJ5sfJCf2jY9MS/KIG0Rq2nyWahg7RHDq6vUoMlpuqlWN3q6fK/IotLzMghykE6 X-Received: by 2002:a17:902:da84:b0:1f4:bcef:e94e with SMTP id d9443c01a7336-1f637002f81mr32531885ad.19.1717186421834; Fri, 31 May 2024 13:13:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717186421; cv=pass; d=google.com; s=arc-20160816; b=WBI6tydbjBcGaRdWq0R5d0Qs6JoSuj/SfwZnEeurfTtAvgL+K1Ee0ga9pQJA7WbFrS PuECGac45uQA0SwnI5OsaZ06hJG8L4ZbqK+hhiLBzhQxfpRIENFFiPdTrQZN1aK7Klvu CzUu9Cfhh1HeCH0PSgGxdr7kkzO+EqvHN2/LoPjCoEL0o/nU+/GIMV9MCAEWzj8h71PI OM64gai3RWqqWeSmmyOLbuyVZzzX7HqJcyGtljNNf19jvZ9XDAcRzeBG7QLfv1ksZ44F nfnlkQdzTm/CTMJlh4Ki0OQZBX6GD1wlbQ5Jk0cwLdubfWxsUHGXnMweiK/ZWMPHl6EO DuWA== 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=0nu4nW4POrtPq8n+StV9YqZGhyH8UrE3xrORyRuVLfw=; fh=+TIONKwli8GT76AMNoaE5SryB00pwx2K+v9EK0vtvOo=; b=hviXh4LrAa+CwcdL9FM/5LSbFNhZrKxwucP7a+LnpkmM9umsnZxzsDe1qHu//KRFld 9g4of75iaKLGpP/4523WOHiqZ8dpPrGLnH+RGA56k7xn6k5LvL12HpGPO/zhVOZM6v5N n4d3TzC10P7RJLzF57TtLMGWsm4VuQ9ild8/XjlwpiGhUk7lN3azpf0jtT27xorxmXDo gexnUitBTD2HyKLlbi6WxbCk7+ckNKdStP4eFRpYmYT56W7du8/7hzYnpLC0aFan1H9+ f+WjEY1+UNpFUjzcM2P6h04hUBMuHj21dIp8rAt0vfRuzqW6Zv7gJsC24U6gI5YHSGfB eH/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=pmyr8u6i; 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-197409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323dd8f6si21108665ad.226.2024.05.31.13.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 13:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197409-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=pass header.i=@lunn.ch header.s=20171124 header.b=pmyr8u6i; 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-197409-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197409-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90838B229F6 for ; Fri, 31 May 2024 19:56:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B44317D360; Fri, 31 May 2024 19:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="pmyr8u6i" 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 3CE69380; Fri, 31 May 2024 19:56:44 +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=1717185406; cv=none; b=sn6DcyTtC1AzAhkgq0+PjBWOxGNux7cYlrp+Zl6buBtc8VqOBXRF0JgrD9wojr0h5Yluj6effIAI9mziyimsqKtc97HG8D3+XHzDcVlbi/8MR2ytBGu3wWKW4m1atj/vRnGIwT7g56w6uPuveO0qYr/j5kkJd5zZ6g0MSBCX6gg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717185406; c=relaxed/simple; bh=+eZtCbv2zIz36GeBPn3ygzQntbOSxJ26axyz+qS7G38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iN/zPmtinBbyKhVEXN+lQkseNujh00hBEnq65QNUX8WEGY0E22I4JompKNGDlvkrgI+y7gZ7gRXtn3l43QX+/U1RVTtM+3mfYubFNUyy9fZCYeCTdK/Fa05GphafrHgPg9IsPDSQj8pcK5IvFTRmb4LHpzvoEQKKcPi0txzyLfE= 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=pmyr8u6i; 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=0nu4nW4POrtPq8n+StV9YqZGhyH8UrE3xrORyRuVLfw=; b=pmyr8u6iZKPgwKa3JGfhr8kIxr oeN/ChQvKyGGp4eaO48nvvMamTneHMpo5wc0uMi+PhlEd/Euwo1b71kauoI3R4YC4ebDmuui/MKWL fm9Ecf92QM/8LOADNyi5mBIbckqIUwJTWD7/gKdM0mDSyZKNogTqE54sGHx71NzAWdPg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sD8MW-00GVvF-0l; Fri, 31 May 2024 21:56:28 +0200 Date: Fri, 31 May 2024 21:56:28 +0200 From: Andrew Lunn To: Christian Marangi Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Robert Marko , Daniel Golle , "Russell King (Oracle)" , =?utf-8?B?UGF3ZcWC?= Owoc , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [net-next PATCH v2 2/2] net: phy: aquantia: add support for PHY LEDs Message-ID: <25ce6c90-f7c0-4c88-966f-8bbfe59ebde4@lunn.ch> References: <20240530212043.9006-1-ansuelsmth@gmail.com> <20240530212043.9006-2-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: <20240530212043.9006-2-ansuelsmth@gmail.com> > +#define AQR_MAX_LEDS 3 > +int aqr_phy_led_brightness_set(struct phy_device *phydev, > + u8 index, enum led_brightness value) > +{ > + if (index > 2) > + return -EINVAL; AQR_MAX_LEDS should be used here. Apart from that: Reviewed-by: Andrew Lunn pw-bot: cr