Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp909350rdb; Fri, 20 Oct 2023 03:07:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDCJMWbYfZAnZ13LRe7glb6MaGdi6D7oZps60e2sSZHCoZGLmhJ30q7+JxEgcHMzw+YodL X-Received: by 2002:a17:90a:d903:b0:27d:b9d:bd6f with SMTP id c3-20020a17090ad90300b0027d0b9dbd6fmr1324644pjv.45.1697796458142; Fri, 20 Oct 2023 03:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697796458; cv=none; d=google.com; s=arc-20160816; b=iWNUdPLZYgT0huPeSQ3e1OFCwm2szui6txD3dME7+RVDXZwV8tih+evXmM/AhCX3w1 ZMWaSx2GnzeOM5TcNc/dyouSGowKevoPr6m4dkyw6RRucgcDUnHETbqHxhk406Zsnpmx kwJR//dFmls0s37ni/Um88YDwI2v2wYnPDRQt7AHium6PhjTx8cZO7lpuU2HU2CJiOgV D41KTIV9tPI4xOWAXKQCmWOOFFMNXcHsBk2u5TCilsyHei8rZnmODPfa3flX2reJGSEF F342LW4juLUXB+7m0bTAHFU2qcmAuqSrazDJJx1LJg7jfisMGzUwzlHaLPpW80VMnBCT oVmg== 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:dkim-signature; bh=eg/csZTe11WF84HY2bC30HCtKA95bWgVvxI9p/8afRY=; fh=nOo/6OkDCFZSk7Wft+ltHuQ+lNt6swLaTLP6bIS8rSY=; b=lhHoF5pNQa+HSbuMRD1HWu5mpblMjgpLbPn93IHsRKKVbMWD23Pu2VXPZnGjIIEddD 19cpdodhxxJRTSe0CJAFonOghvQiJTuBr/GphtdiS7IEgmOzhMYjxYoygfp84Oj4V8kW 4gFv7J8Y0lJDSCJMB0jr3yO+wFv+inqOG/Cum/+iXWmQjZPM6aSmNIcs62Ws7IgQm8Wy J3e0GUqQOZRuaIvyC1sz41W24iYR6sPkCpqSJRsF8PjOzHWN66muV4l24JrvpHCy6fD5 2EP/UVz6XJnbCMgJ0d6Is4IR3vD2uAThmXmuLV6TKNN7OhkdKQmYNbiaUFJ9ocy1PgG2 47PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W/1H7+mx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bs68-20020a632847000000b005859c874eb7si1474042pgb.701.2023.10.20.03.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W/1H7+mx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D184E83C9F8C; Fri, 20 Oct 2023 03:07:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376874AbjJTKHS (ORCPT + 99 others); Fri, 20 Oct 2023 06:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376715AbjJTKHQ (ORCPT ); Fri, 20 Oct 2023 06:07:16 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF5DCD64; Fri, 20 Oct 2023 03:07:14 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso5305535e9.3; Fri, 20 Oct 2023 03:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697796433; x=1698401233; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eg/csZTe11WF84HY2bC30HCtKA95bWgVvxI9p/8afRY=; b=W/1H7+mxcgaW2CIZYzlMcgQmGAkNadgMutA1aQstRAx9seq239n1cCjK/Hb3GePFU7 oTyN5GT+MGBb7uwWj39MSJTqvbVL+rM+zFhdKRTn4KXT3M4uS39UxDxbuQKTCibZEZ79 kDVkcFl3q08PLSlfw9O9SV0KVxz83GGdKedAFdvdA0N2gaPbuU0qDCiSUK1IXeRQUBuJ yClwWAe5ZQJCuN9DuDm19GaHekHy7k+sriVO270bN6Meo6kSbMTTsUp6BKLEqOJcoZ4o rVSQ9BJZ3ZWcbzB6EVwFuAZGQb7sqKloI7CQH9MBWLZtBvY96xKCIOnS1pKVSvdEEUyN i+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697796433; x=1698401233; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eg/csZTe11WF84HY2bC30HCtKA95bWgVvxI9p/8afRY=; b=MedMJRwlHgNMeTbIGyJX7TKd+FKnmNJVzeuNcNncpKGuT1niv7qr2Qv91CT0to9Onc 1gBe64QnjDfMbKmSqsDeoUL/L9hObYQ62bE1l6uJ5EKXgOKGNqOQpty8tOJbYUgONnp4 DVqAUNmM45moPum67EL9huBX2t92y38EuQe7R0d/bYQEoKrquRQ+6JwBE9bfLwt6eZmJ J2jUL0zHsFVnofyfOFhGFuwzAQKaFydiDKJAZiGvLmS5jKbZjijM5TFnKObetybCGeBY ub3KjOkPTYDxxDQJDZCfElFhFUujs2IWbfBPLE88joK/8VbmH46zSnPfsHK2WNlh5lrU Wn6g== X-Gm-Message-State: AOJu0Ywv7/SaSRthovZesJ1yGF8rLM98NW4+/1QyC5FTBRZxYFiPDN76 o89UVSym26DFQUgeY5dN/jY= X-Received: by 2002:a05:600c:510d:b0:406:53f1:d629 with SMTP id o13-20020a05600c510d00b0040653f1d629mr1084077wms.5.1697796432432; Fri, 20 Oct 2023 03:07:12 -0700 (PDT) Received: from skbuf ([188.26.57.160]) by smtp.gmail.com with ESMTPSA id w15-20020a5d608f000000b0032dbf32bd56sm1343204wrt.37.2023.10.20.03.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:07:12 -0700 (PDT) Date: Fri, 20 Oct 2023 13:07:09 +0300 From: Vladimir Oltean To: Su Hui Cc: andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] net: dsa: mv88e6xxx: add an error code check in mv88e6352_tai_event_work Message-ID: <20231020100709.yy2ovjm3q2hphek6@skbuf> References: <20231020090003.200092-1-suhui@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020090003.200092-1-suhui@nfschina.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 03:07:36 -0700 (PDT) On Fri, Oct 20, 2023 at 05:00:04PM +0800, Su Hui wrote: > mv88e6xxx_tai_write() can return error code (-EOPNOTSUPP ...) if failed. > So check the value of 'ret' after calling mv88e6xxx_tai_write(). > > Signed-off-by: Su Hui > --- mv88e6xxx_avb_ops :: tai_read() and tai_write() come in pairs for the existing implementations. So, a missing tai_write() method also implies a missing tai_read() and would have been caught by the previous call to mv88e6xxx_tai_read() in this function. But, ok. Reviewed-by: Vladimir Oltean This is a patch for net-next, as it doesn't fix any user-visible issue and is just an improvement. For future changes, please note your expectation regarding the target tree yourself, by formatting the patch as "[PATCH net-next]".