Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp892243pxb; Thu, 19 Nov 2020 17:02:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxffPVlsQHsNFzcVKSVxi26D2SCkr879qJCanCUoAxEiH8FoT27jamDq3MKREpuzarYhMir X-Received: by 2002:a17:907:250b:: with SMTP id y11mr10086234ejl.39.1605834135673; Thu, 19 Nov 2020 17:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605834135; cv=none; d=google.com; s=arc-20160816; b=jlpuLRvkBbzx6XpVJNVbbHe29c+CHSn4diEccoT6mDNTMrJ/g5zP9v8EJgEg/6yXJL Pzh8p/n0tPw6EV0B4ORrpKx224JLl/WiNS5WLLnMuFn6B2a3NoCxcMqM8pMmUdJux4bI FSohrPT0LEsrnG1QpaJvnsBOgVM4fBbidFnPRgXqaOLk/sQRvhK6+eTH2b8spE7gyAmG byQr89sEEcSiUG3vkf1Pe7i7GQdM4PLBAGW0gZUAEjUiUos2yMh8Va5jFTdSxbDnOzSh mqSD4z9pt1YPwtlBrfTBc89a+CLAFwjo7ezckNFJBhTUBUKvYgeokalCAkEdH8FHODsb 8vXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yOh5GDZBtnZGMB4nSZGQu4hpXjGG1EfMKjTa4t9Sr5k=; b=09CXd4/zpaSgINmiPe8ztZyJiKJKSVgnEL3LhHiEpvjGZGIlI7myrkiuEyy6RTtGEH 35w2zYP0z5fdfOThpSYAG1zsozU98Ogg6RW2PN+m/fu1IEK1cLAeV4exTZFT53fU8Uz6 XyHzbPLbb5Khh/4bzrocZDprmy7Q+dvEWQfvGqH1Lr74oiEs0YQOMVLHH9Yp6gTB/Hzt iLptwOJN+WXqzR5XQ1kaNRb4qVkgBaBOTbnm2MJ34p/dEjKT4tRHRYhhp8FeydTQymke EOcQtU1BjbzFmtetec/GJS/Mrx5U0aEGhFNFKCH2MuuEP1U4We1zPG0pKCdH+bpd8BvP I68A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu15si850870ejb.175.2020.11.19.17.01.50; Thu, 19 Nov 2020 17:02:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbgKTBAB (ORCPT + 99 others); Thu, 19 Nov 2020 20:00:01 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:40210 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbgKTBAB (ORCPT ); Thu, 19 Nov 2020 20:00:01 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kfumF-0082QI-Im; Fri, 20 Nov 2020 01:59:51 +0100 Date: Fri, 20 Nov 2020 01:59:51 +0100 From: Andrew Lunn To: Pavana Sharma Cc: lkp@intel.com, ashkan.boldaji@digi.com, clang-built-linux@googlegroups.com, davem@davemloft.net, f.fainelli@gmail.com, gregkh@linuxfoundation.org, kbuild-all@lists.01.org, kuba@kernel.org, linux-kernel@vger.kernel.org, marek.behun@nic.cz, netdev@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, vivien.didelot@gmail.com Subject: Re: [PATCH v10 3/4] net: dsa: mv88e6xxx: Change serdes lane parameter from u8 type to int Message-ID: <20201120005951.GZ1804098@lunn.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -459,7 +459,7 @@ static int mv88e6xxx_port_set_cmode(struct mv88e6xxx_chip *chip, int port, > chip->ports[port].cmode = cmode; > > lane = mv88e6xxx_serdes_get_lane(chip, port); > - if (!lane) > + if (lane < 0) > return -ENODEV; return lane since lane is an errno. Other than that: Reviewed-by: Andrew Lunn Andrew