Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2301512pxf; Sat, 27 Mar 2021 07:46:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5RKmH97D0XYZikuhCSOejqUJ1ae58KuANNTT396Yb2H8zLxBQ8NoBDFwj+cU2WK9Vd6R0 X-Received: by 2002:a17:906:1749:: with SMTP id d9mr14848339eje.12.1616856383160; Sat, 27 Mar 2021 07:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616856383; cv=none; d=google.com; s=arc-20160816; b=oXc1Vsxi0TRqmSgDGy+MpXxDZFUxq9U/SwZ0nKPDRQLEHLIK/KNZz8d7VwENvLHBmM oDfwEUnhRmBlv8EB1U/+YAl6rfG6gulCViZBtZpNj7mQPjbZzmSdHndg2pRiudNlHo7E /2CtJRpRuY9CfzfxPByimwM1ibkx0ZhC2pGTtHqGo9InHCVTB4d6SmJPr2l00D4d7Y6x uThZdxUjAVwq39uJPiCDUDymgZIin2ZUN1J7ah8pmbJJnway9QnWsVm8fEGaV+fG3Kb+ trtvuBVuRux7RK1UzYxGmvQy0xe3quK39LLFh6UJ/S6LG7j7Ji+1fjX/ld3onAkJhLKL AYhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=MQ7+ewNZDnSQqCKCZObldhHXpa9PMMxVNse+Z2fng1E=; b=0HbFgHZJkMLGO9Dzx5/yPnMPHbss6IOAcueqn+3mIQfDtsEo9EISpZhCmhEG8XVJbi 2TSmyXAjBClC8v2n+eC2K1ot2hnnoTMaHHQLkuO5tlJM8hltJk9pQZzyi4AXTqxTxdQn 9gTIMc+z1HkCwpt7fjiI510CLlr1bAbfU42sBIWgoayXWiBxzsdsuStP4cm0ugilKQs4 PuISNILYPoA4J02WWdpqZyvWZfTjyT7Gsn2LM+44XimBzZ9J0K21WxKcookGMhq/8T7w rZo1QYhb1JaQuUof3gu4CgAKx7NRmbYhGDfrwXJDoW97WdvJP/yaVIGeozFFPL/F90AQ IhFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=gHQQoh7U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si9882121edb.68.2021.03.27.07.46.00; Sat, 27 Mar 2021 07:46:23 -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; dkim=pass header.i=@nic.cz header.s=default header.b=gHQQoh7U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbhC0Om6 (ORCPT + 99 others); Sat, 27 Mar 2021 10:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhC0Omr (ORCPT ); Sat, 27 Mar 2021 10:42:47 -0400 Received: from mail.nic.cz (lists.nic.cz [IPv6:2001:1488:800:400::400]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7BD9C0613B1; Sat, 27 Mar 2021 07:42:46 -0700 (PDT) Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTPSA id 33833140AE7; Sat, 27 Mar 2021 15:42:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1616856164; bh=nbYNsAK2One2JFvggre3QyTyFpQJQ7zSpNnqJUjIURM=; h=Date:From:To; b=gHQQoh7U/onyzxPBUweSPHiV5+X91lH1RlYcOfYSRYSyfpqbTVHBfwmk+H7AHP3si FgR6xYPEUZxB5fXDcr7rVcowKrKspJO3B+0pTLm3VM8eozVUH1QTVW6YUeXyXd2Zm2 h9ZPLipHM14MFnXMOGeYaHeaQ8nQPVsJ9b5J6S7o= Date: Sat, 27 Mar 2021 15:42:13 +0100 From: Marek =?ISO-8859-1?Q?Beh=FAn?= To: Pali =?ISO-8859-1?Q?Roh=E1r?= Cc: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Kalle Valo , Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Marek =?utf-8?Q?Beh=C3=BAn?= , vtolkm@gmail.com, Rob Herring , Ilias Apalodimas , Thomas Petazzoni , Jason Cooper , linux-pci@vger.kernel.org, ath10k@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Disallow retraining link for Atheros QCA98xx chips on non-Gen1 PCIe bridges Message-ID: <20210327154213.571aa263@dellmb.labs.office.nic.cz> In-Reply-To: <20210327132959.fwkphna7gg57aove@pali> References: <20210326124326.21163-1-pali@kernel.org> <20210327132959.fwkphna7gg57aove@pali> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WELCOMELIST,USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 27 Mar 2021 14:29:59 +0100 Pali Roh=C3=A1r wrote: > I can change this to 'if (!ret)' if needed, no problem. >=20 > I use 'if (!val)' mostly for boolean and pointer variables. If > variable can contain more integer values then I lot of times I use > '=3D=3D'. Comparing integer varibales with explicit literals is sensible, but if a function returning integer returns 0 on success and negative value on error, Linux kernel has a tradition of using just if (!ret) or=20 if (ret) Marek