Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp556769pxb; Thu, 19 Nov 2020 08:05:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmeBxlhI/XTKznrptDCgDDUbQyL8DcPC1KPp5LmzqQlK7A7chIcmiMf7sdUmA5+YfI2Teh X-Received: by 2002:a17:906:6010:: with SMTP id o16mr28634098ejj.55.1605801913601; Thu, 19 Nov 2020 08:05:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605801913; cv=none; d=google.com; s=arc-20160816; b=b5IDHmE1sU8UN3V5FJwi7pmKaifl22c8JAdreZMxEdjs5IdVXGGNFZKPrSCtxb/apJ gkiygNSnpXIJwU9ba7AhU4BtgUbxKq0a9/34JEMHVw7gxxkZC1+igutf8B6nSFecypth LHSREnsPklwQ+SqL1B2zebPkxKTMeYq4+zMqyfy10faHLJtSqzpVkoXPBjB0I9xVdOwm YjN6n+EpjnY5rfKbclY75Wvtq3IbgOWx1Z3CxQ4o+TzXrlFv32uZlGHKdYaDeyCnwTAd Kczk9Y2mM+bo7o3dFhqY8VPAiGs4VbHa2NsxqzyZ0tPbQiqNEOsKNcWKO+9ufDt881y8 CYnw== 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=FqJuuO3oFn6sc/Mabmp5niVjk2ercB6QBinOywxH+ks=; b=cJh9DvuZESrMN/Xewvweawh5P0/TZ5dcrSYCP9tUBHcNJhhGN0Bz5UiR5bzFKzuY6X JKAEcvHlKEXhNYqqUEesM29oIYuwb/dr0LvRtHvoxGdVLOgCm+mbcB+Wk9mXtfqt5Jxb dG4uOONQckue3TEie3F/WYPwwxTy4XL5IcNhgEJOrZClDPusKRzYUIgpI1sfMYqNyWAT NnjkvbnoMGCpvJBMPckteSwYWSG8D903wY9hSo+gStTmjTQy8yH9Sh3Nzp00GiXPMsSX 6Zd/lteTeN1kPXpsdAwSbMtSsSd5VD28D+i1hOuPSDd/PYbtXAOPZtAlODIGhXQNJuiB HQ+A== 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 b15si42014eja.538.2020.11.19.08.04.49; Thu, 19 Nov 2020 08:05:13 -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 S1727392AbgKSQCj (ORCPT + 99 others); Thu, 19 Nov 2020 11:02:39 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46188 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbgKSQCj (ORCPT ); Thu, 19 Nov 2020 11:02:39 -0500 Received: by mail-wr1-f65.google.com with SMTP id d12so6912861wrr.13; Thu, 19 Nov 2020 08:02:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FqJuuO3oFn6sc/Mabmp5niVjk2ercB6QBinOywxH+ks=; b=l5+aqI5yDwJ/ehm5eiYYZkPLj3ODVOJmhoeibWh7pNCreBML5+Y3rsgFk5/bZrNKhJ azMWSKdONkVMGlRlyOK2LCRSabCz+c8/9d2XUkh6v3dFwsYzhikpw+0lfSzrFGmEI3Gn vTJU1dXIilipjz2OqnqRL0zAdKhyj2AfUcnRel1iKXESgrjmvWbUB+B5lvC3txl5uPqH haqt1KyDsYRrh9BFq5INl8KJEi97rY7r7O4XVrYQHN4lhUNkKEYaJ62VDDKuo1vA2Hag aCI5nkbGM+6r/QmaE9yiy5zzGebyQ8awo8BKL80fq4xhzP2EfGjwzKY8w0xP27QVC9Ip RhRA== X-Gm-Message-State: AOAM530TbJVlaRDtHjBZ154HDAyQV/9b3oCW0829qquy4XMBpT8sLoBu WJbkRMW+NG7tEEsLz/8vtgxeUF7/ZR8SKj827/w= X-Received: by 2002:a5d:518e:: with SMTP id k14mr10966143wrv.253.1605801757038; Thu, 19 Nov 2020 08:02:37 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id h17sm300396wrp.54.2020.11.19.08.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 08:02:36 -0800 (PST) Date: Thu, 19 Nov 2020 17:02:35 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Wang Hai Cc: Jisheng.Zhang@synaptics.com, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] PCI: dwc: fix error return code in dw_pcie_host_init() Message-ID: References: <20201117064142.32903-1-wanghai38@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201117064142.32903-1-wanghai38@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hai, Thank you for taking care about this. On 20-11-17 14:41:42, Wang Hai wrote: I would have to ask you to capitalise the first letter in the subject line as it has been done for other patches. Check Git history to see what it normally would look like. > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. The above commit message was taken from the first patch, and might not be accurate any more. As now you are passing an error code from the dma_mapping_error() function rather than just setting the ret variable. Also, the ret variable might have either undetermined value or some other value from previous assignment, not necessarily 0 there. Krzysztof