Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp160800pxk; Wed, 16 Sep 2020 22:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycb7pP5Wtf145iHxO5rPpuEvwRfwWDhg/wpNiOmnvHUYTRlkjCtHbSzcWUegKkZl2ud0R8 X-Received: by 2002:a17:906:4b4a:: with SMTP id j10mr28872243ejv.498.1600320821533; Wed, 16 Sep 2020 22:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600320821; cv=none; d=google.com; s=arc-20160816; b=p2pxzJPl4YIRkyFAmZQqctldkau4RVKeN1mySNAJ0lI1cVOCBmcwFp5+nkEhZPNhOc cAQPHLtOzITM5bXjzOo/EpVZsUwwa2ZBKFHKy16uj0CMAMAquwAnQsZo6N0QngxF1sC8 yhLHtmctK/UD2GpIalkGkn8yg714gT3e9Lb48CHLwsBGNIKi0ESBFtqdabYJY4MMyQEc WfYXYp7BOd5/kIVgIUySHmtu8Lfg2XmiWaVWjNHF01m4JczlT8ZJTnN0HUiAVeEaL0yR M1ilxC4QP4FT6yMDRsHR3q7z5mr+XTIMbPdXqiFqWLQqyvki/5pr+ojfB5A6FCTFSpy7 hj6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=IO+1BQEBv8wnE/2DlzjrZQOhmSbLJguX/NDjyxuYZ6M=; b=wStiaooxv7YQsVFbkAxHbppD0WObRTgrHBv1it82onL6dYL2WaGZbbP8Z0U+U0ePzi LZ9+PA5nL4Vr5JwlEjRjanMsJDfg+JRURh3jNlzDieWyKNEnB1TIdKbGfcre5kSA1WvV 9tKljUCUmkigbWm4CyPvjP0m97SP+qk5knP7hdcILzezniheaA+Lrs+mUnsjVsPO/ghz vnOa9aHxv4P3TSsLyDwsjgKKSVNpe47lMRedlkcLXfcXyaLS287Ct5XcwGKUuvvmKWJl /XyIse5BhuQ080DrVo2y1jkMBF9gp+t+R5IkC4HJpqCqTMbU427jSzLjlZSjkGYWnZ8v GSlA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si13410553edr.545.2020.09.16.22.33.18; Wed, 16 Sep 2020 22:33:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726311AbgIQFbY (ORCPT + 99 others); Thu, 17 Sep 2020 01:31:24 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:35159 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbgIQFbT (ORCPT ); Thu, 17 Sep 2020 01:31:19 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R871e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0U9BclBt_1600320673; Received: from B-455UMD6M-2027.local(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0U9BclBt_1600320673) by smtp.aliyun-inc.com(127.0.0.1); Thu, 17 Sep 2020 13:31:14 +0800 Subject: Re: [PATCH v1] atomisp:pci/runtime/queue: modify the return error value To: Xiaoliang Pang , mchehab@kernel.org, sakari.ailus@linux.intel.com, gregkh@linuxfoundation.org Cc: alexander.deucher@amd.com, evan.quan@amd.com, christian.koenig@amd.com, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20200917034451.20897-1-dawning.pang@gmail.com> From: Tianjia Zhang Message-ID: <75262d3f-eeb6-5531-a93d-85376236774a@linux.alibaba.com> Date: Thu, 17 Sep 2020 13:31:13 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200917034451.20897-1-dawning.pang@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LGTM. Reviewed-by: Tianjia Zhang On 9/17/20 11:44 AM, Xiaoliang Pang wrote: > modify the return error value is -EDOM > > Fixes: 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 (v4)") > Cc: Evan Quan > Signed-off-by: Xiaoliang Pang > --- > .../staging/media/atomisp/pci/runtime/queue/src/queue_access.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c > index fdca743c4ab7..424e7a15a389 100644 > --- a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c > +++ b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c > @@ -44,7 +44,7 @@ int ia_css_queue_load( > the value as zero. This causes division by 0 > exception as the size is used in a modular > division operation. */ > - return EDOM; > + return -EDOM; > } > } > >