Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp931252ybt; Wed, 24 Jun 2020 15:09:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP7xef+F6oDC7ZHb/7psY26gviB0n8Qm8cKsaQI35DtDsGwe0TQFl+/lSjYkriD/aURLMa X-Received: by 2002:a17:906:b0a:: with SMTP id u10mr28350940ejg.211.1593036579533; Wed, 24 Jun 2020 15:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593036579; cv=none; d=google.com; s=arc-20160816; b=A0mBnTiIDQbrGJVs7nODxkxkaxMRBBITEW1vznbepfnCZpPvL+OzsmKN/+EmkKBv9z tnaZz7abBafFLlLx7pdrHZc4TjJod0mFZdw7/3PKhDyNKApvHcQRYSV4cUpN5rxFMHCm QK+CZlJBkIcXUzm97Z7uLYK+gPTmqpsuhc6mD1y9TFImof6jf0FLh/j/GmPnYBFq5Yt0 +QgzM2NIVs3+4lnFJozupanDOJUoCYfeeYINI5z7CPS0BEEoszTWza2FUpWLg+ywjzFV E8N9Nm2O1ztH3F/7KkPZDAa84vh3wtXRtiyd63QBgWB2wPU1jUcz45grFbzAG1rC202l pmBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=HCJn4W0IZ+HtQEj220fEjHomgKYds0obYmDjWGbKPsc=; b=Adw+SRP441Akd0QKIaXPx1kh0XfhJIh+uwVDKFwvumXOnNdUfYSEkoXm+gXcUbJ0QZ BhGzqFumstHampJHi0gzsRqP0yZE1IXrEYU7VP/B+nHHZj7UU3apleLaEoj8rocH9Z1U wJ/WhGZwvdARoqWy7DUa3zhFeBd86mHzuJ0Z772uaBdqn+Y+W5CjrxTu9FmQqbH0lyNS u52ALDVH5FFz7Kx+63FKiv6s0WI9B4VWGPHFzMAQXaUKAWRWYcID2IObsRl1o3+9evU6 UZSjBPLrpSQV7lcg+b8laativH+tXrvxbmSBx43njaPC9uA96cxi/apXregRUNezoH+E ajig== 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 o6si5594457edq.450.2020.06.24.15.09.16; Wed, 24 Jun 2020 15:09:39 -0700 (PDT) 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 S2404892AbgFXVsi (ORCPT + 99 others); Wed, 24 Jun 2020 17:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404563AbgFXVsi (ORCPT ); Wed, 24 Jun 2020 17:48:38 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76E74C061573; Wed, 24 Jun 2020 14:48:38 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CB1B812737AF6; Wed, 24 Jun 2020 14:48:37 -0700 (PDT) Date: Wed, 24 Jun 2020 14:48:37 -0700 (PDT) Message-Id: <20200624.144837.358793393121356729.davem@davemloft.net> To: s.hauer@pengutronix.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas.petazzoni@bootlin.com, kernel@pengutronix.de, linux@armlinux.org.uk Subject: Re: [PATCH 2/2] net: ethernet: mvneta: Add back interface mode validation From: David Miller In-Reply-To: <20200624070045.8878-2-s.hauer@pengutronix.de> References: <20200624070045.8878-1-s.hauer@pengutronix.de> <20200624070045.8878-2-s.hauer@pengutronix.de> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 24 Jun 2020 14:48:38 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sascha Hauer Date: Wed, 24 Jun 2020 09:00:45 +0200 > When writing the serdes configuration register was moved to > mvneta_config_interface() the whole code block was removed from > mvneta_port_power_up() in the assumption that its only purpose was to > write the serdes configuration register. As mentioned by Russell King > its purpose was also to check for valid interface modes early so that > later in the driver we do not have to care for unexpected interface > modes. > Add back the test to let the driver bail out early on unhandled > interface modes. > > Signed-off-by: Sascha Hauer Applied. Please submit a proper patch series next time, with a header [PATCH 0/N] posting. Thank you.