Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6039419rdb; Thu, 14 Dec 2023 06:56:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEevlWHWs6212VEv1JzUuquy9jHmx9e8SrsyqioPbeb8xPgrIZEsdUKXCm6pQgb9FQVZaJ4 X-Received: by 2002:a05:6a20:560c:b0:18f:97c:928a with SMTP id ir12-20020a056a20560c00b0018f097c928amr4953327pzc.111.1702565796796; Thu, 14 Dec 2023 06:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702565796; cv=none; d=google.com; s=arc-20160816; b=hf6W2DzE8AeVhw0DW5+KpxQt3YjBige1S8crfbymoBa00E4y6eTFZQsbWDbADzkSul NINzgE59Lin3JzYuK6Rs6AA4X5zUIU6Wh6X2xn6fjz9mV8SuiNTKWboza53tKfiM6bD7 NJ/uv54rGZV/omI0SEO3kLeBzLxoVSW1zX6HP1neLQiX2tsRM1d9Kcg5uRMG8/ERtlr9 mDlipKGW4zsFISBBnIDrPBTJZTCLgI6WCvBv/ZD3sAdaCs/z62gH7/W858IzVk6YsZ1E f+N/jtx1i7F35LtpDMYJfuCDKMJcEWdFU21vkGdVgS+3ywIet5OiIP4x++JqFLxLoA0E mZbw== 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=hwPvIr0iXoyea553Yu3So7ADX0ncA/Wo0qGLRHYq400=; fh=NkF7f6ID7JOpStyAXfNlYOXfFdReAPcKUtyBL9/gqmU=; b=MgqVuU0HhV40KhYlirUUbB1r6CklF4MVGOhMMnVuIVRb/wOc/jCWdkCfB5Xn6qdnkQ XyKA5d92R8XKt+Pp5IurK56WoxRR17y4fJqv8ZGL/FlYtwFhegiY7v5gwbguXIGNfbV/ anU0AQoyQ7rjBeyn4zEbQBT+Gk4OswycFsAGKKepEmyAyqdNqTEzTP5SSXl181bZ3cvI Bnn8QxnstQmhmKHaq+diVeWUnJGBt7sZk9B1MY4vswTXTvUWu/pHe4ETNSzYP8vgy7YU XiYUFVeV/ICzIJRhObdMTgRJlLN2dyY5o/DQAU66dDtsUuHOOXriv2YJykiWVQr8MRD5 Kz7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YOEJlhmm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ep5-20020a17090ae64500b0028ac7443e87si4218760pjb.36.2023.12.14.06.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:56:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YOEJlhmm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 9AECA833CE28; Thu, 14 Dec 2023 06:56:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230149AbjLNO4T (ORCPT + 99 others); Thu, 14 Dec 2023 09:56:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbjLNO4S (ORCPT ); Thu, 14 Dec 2023 09:56:18 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95D5711D; Thu, 14 Dec 2023 06:56:24 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a1e7971db2aso948176366b.3; Thu, 14 Dec 2023 06:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702565783; x=1703170583; 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=hwPvIr0iXoyea553Yu3So7ADX0ncA/Wo0qGLRHYq400=; b=YOEJlhmmZGz+dijPoeZ7kJF8aF1tvO1YOgg+qwoOm7cnO1mj0RZ964qsb50vYHQt4m wqBWKGNXy1k0bqNMbyhKSD4MAuG4QapLi6H4vHAnnaa9PU1OPB50iqAK9+xtsWZ1joh2 l5SG+ZqyHdugTqkZvQvngiWY45PQE62/JKscKnwR+mM5oTzbkS8Z+vnEslMoHd5F7sS3 6HQTJsO8fcB4smaMr7Wgn9IMi0LsmVHRxTUxQc0mtpkgoy7bjUU/7PXXuMjiU/IgbwM0 27GyzF1aN4xBzJFv2Tq8uS0+bEliOZKyiSTLXJbP96Ynuctb8HBui6bRT9tnBCzB+hip dSzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702565783; x=1703170583; 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=hwPvIr0iXoyea553Yu3So7ADX0ncA/Wo0qGLRHYq400=; b=cK9oTPWfOq1o64G1ISTZQFo82pXLCg43yhGKtmjdAfXC8FrlKOKG6CCckEgWehXjC8 E68f6VBLgis/TBLKefT9Rpj2k1TbN1E1D1ljsVYCiTpU2VKOVIjT+XkeHxtCG3OtT6W3 99tjmD0rdKeki+ifyzM1zHehw8k71H3kavEU/+0DYU3UEuuyOIPvzHK/CnQiqRydBXZa 2D+SoBKABe1NobgUujr/Nmp046Jl0qb9LBXpETgdNEh0s/bma4jwwxinUnEAHGGxO/Zp mRsHp4RwitZSmaEWlAp3HD9X4OK8QVDibb+Yq/eO/VfyH7JliNJONwscN3TDDt1yd1Jc szNg== X-Gm-Message-State: AOJu0Ywc1yXZyprfRy00t/6StT+lHIxCyX1QROLEnc98oJ0eJenMCm3m 08ruk0cM7xY1dvoJTnFV26Q= X-Received: by 2002:a17:906:2d2:b0:a1f:821a:11ae with SMTP id 18-20020a17090602d200b00a1f821a11aemr4910517ejk.20.1702565782883; Thu, 14 Dec 2023 06:56:22 -0800 (PST) Received: from skbuf ([188.27.185.68]) by smtp.gmail.com with ESMTPSA id mt29-20020a170907619d00b00a0a5a794575sm9515400ejc.216.2023.12.14.06.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:56:22 -0800 (PST) Date: Thu, 14 Dec 2023 16:56:20 +0200 From: Vladimir Oltean To: Ante Knezic Cc: andrew@lunn.ch, davem@davemloft.net, edumazet@google.com, f.fainelli@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com Subject: Re: [PATCH net-next] net: dsa: dont use generic selftest strings for custom selftests Message-ID: <20231214145620.lfsft2c3x5fjz6ev@skbuf> References: <20231214142511.rjbr2a726vlr57v4@skbuf> <20231214144751.1507-1-ante.knezic@helmholz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214144751.1507-1-ante.knezic@helmholz.de> 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Thu, 14 Dec 2023 06:56:33 -0800 (PST) On Thu, Dec 14, 2023 at 03:47:51PM +0100, Ante Knezic wrote: > Indeed I do have a custom implementation for the mv88e6xxx chip, but its not > come to state to be posted because of test/chip specifics. > > > I didn't notice when the selftest support was added that there is no > > implementation in DSA drivers of custom ds->ops->self_test(). Adding > > interfaces with no users is frowned upon, precisely because it doesn't > > show the big picture. > > I was not aware of this, I apologize. If this is the case, perhaps this patch > should wait for the first custom self test implementation and be reposted as > a part of bigger series. > > Thanks, > Ante > I agree this should be resubmitted with a user of the API. Looking forward to seeing it. Thanks for the understanding. The only thing I would want to comment on the patch as it is is to avoid the pattern of: if (a) return x; else return y; and formulate it as: if (a) return x; return y; instead. The "else" is redundant for an "if" that ends with a return statement. --- pw-bot: changes-requested