Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2458368pxp; Mon, 7 Mar 2022 16:11:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTTtD1U48iZSClc9hEW+20k9e5q8PNF82pmdQoAMY/kiitd+iIt5YFAU7bQPswuyIgBwR8 X-Received: by 2002:a63:b06:0:b0:374:5e1a:150a with SMTP id 6-20020a630b06000000b003745e1a150amr11687480pgl.137.1646698319062; Mon, 07 Mar 2022 16:11:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646698319; cv=none; d=google.com; s=arc-20160816; b=hfUICo5xeC820/Qu+1DChqDBjExZ8IkfcO88aean3ONC3IPKoAwF75D2a4uWD8QnEZ iWMlyOG6ca58Z9oTncghvMSvWa00pYO2OLUpCjAysYVuD8Tb1lFiEJUzxQmj7aAhcl/8 R/Ql2RaY2YqqP2pInXh3Lia8+WuJriTEOWJBwacIBEGBbSgPZV4+oeDsuWMvpqIqRtIA EadKIvz9OtuvkgptJWc9qa78qoGeuTA7MMDoJnj7uK7V9scRoLqoFvKVwcKTaLYR0obO MxVGo+5NQo3qTSG7C8mZBUGN3VOgSaNZJWKshtL3Ztrol8W6tBOY09xx3Zsc9e79z0oe JScA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2jov2zqu37sUNuS53Tckb3jUdIylSj2EwkvLlYjGBbA=; b=iRiS3c86J0IasHqQZnctI7g9wXXObcFymIdA42A1gjvgNgJazz17vYX0zWlsauY69Y 2oK4CHwf76nxXr/ajPHpdR66HbQYbu1YllSb0QzUnX+SNNdmQV74uwOlsgz4JOsEBK4q nRkgO3EOsp7py7ylyXKJBIYNuUqV/UUPX649CFFi6MiRv+Q03/n6ZP5dqwnhy5dWo5MT 3DIiEXI20cAz/dM7soC3fCg27GNHE0s8Lir3txeVzoP/jOdYN03Kp50QSwpMGoXJKNZJ /CZyChf8Bg3xIa7o/u7zuy/l5//fIJm9hcY4Eo72EFVBXY1mIY9xoVa3Jh5zzWdoKiYy vB0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=htnSgzl3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a17090abf0c00b001bd14e03034si687871pjs.12.2022.03.07.16.11.41; Mon, 07 Mar 2022 16:11:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=htnSgzl3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243983AbiCGQAO (ORCPT + 99 others); Mon, 7 Mar 2022 11:00:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234875AbiCGQAM (ORCPT ); Mon, 7 Mar 2022 11:00:12 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 132C88118C for ; Mon, 7 Mar 2022 07:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646668758; x=1678204758; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=UIQ205em1WrlnAoEopCeQjugklgipYmQxrXTFmaWBqc=; b=htnSgzl3NtHF6CBXLT07Q6v4jrlWThhCt+E8KEs0aaKv1ww2Ao+/4b+4 S0EgnGj/JMHED1TzEWFmRzc2khtlUsMh4vYUbh2sKZis3twHQ4Ex2yjdB 1ZYCjsHyN73WLfLstHSev8lK/2c9SkGhKsSnwbXQgLyGbFG8oArbnp2rV VdfJz//8sknHsRid9M+Od1C914PslmQmMeg5qhFU5gNm1Zr1BEhXsAuLm AhVe6FVy2P82XIRVC3WWwpPcAqZf9HuToZWBT2VyCvabA18NUbjY1CWfs BwY7GC5T+7vW2o5+kvAdTqiQgNLtsx0SWaIIfnbE9CX31hqPDd/yJlksE Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="279128044" X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="279128044" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 07:59:17 -0800 X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="643292226" Received: from rhack-mobl1.amr.corp.intel.com (HELO [10.209.14.71]) ([10.209.14.71]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 07:59:17 -0800 Message-ID: Date: Mon, 7 Mar 2022 09:24:03 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 Subject: Re: [PATCH -next] soundwire: stream: Fix error return code in do_bank_switch() Content-Language: en-US To: Wang Wensheng , vkoul@kernel.org, yung-chuan.liao@linux.intel.com, sanyog.r.kale@intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: xuqiang36@huawei.com References: <20220307074039.117488-1-wangwensheng4@huawei.com> From: Pierre-Louis Bossart In-Reply-To: <20220307074039.117488-1-wangwensheng4@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/7/22 01:40, Wang Wensheng wrote: > Fix to return a negative error code from the error handling case instead > of 0, as done elsewhere in this function. > > Signed-off-by: Wang Wensheng Thanks for the patch, sounds good to me. Reviewed-by: Pierre-Louis Bossart > --- > drivers/soundwire/stream.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soundwire/stream.c b/drivers/soundwire/stream.c > index 980f26d49b66..553131597af6 100644 > --- a/drivers/soundwire/stream.c > +++ b/drivers/soundwire/stream.c > @@ -822,6 +822,7 @@ static int do_bank_switch(struct sdw_stream_runtime *stream) > } else if (multi_link) { > dev_err(bus->dev, > "Post bank switch ops not implemented\n"); > + ret = -EINVAL; > goto error; > } >