Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3396046rwb; Fri, 30 Sep 2022 03:02:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49K1O8MZxM+JRTfPGyXoKba91Bm5JHoQ1jmExHCIIp7+9638UdvAyaAw6Sg9EQe46GpGHn X-Received: by 2002:a05:6402:5212:b0:451:6301:593e with SMTP id s18-20020a056402521200b004516301593emr7213197edd.119.1664532123608; Fri, 30 Sep 2022 03:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664532123; cv=none; d=google.com; s=arc-20160816; b=ICGp5Yd0PZRSJ2Vh5S4XTaQ6r35mxFiV1qy9hESGD/HvOtClM7zTN4x88UMbMnonAZ 8+QLLDRawIqDtpbdOirhO6XH+PmQnLrn3iXLvPALaJl64gDCzRh2EybrOCfs13BkQSS3 LJnye26J1pxEVWnJapjgOHhDqGm6CvIcnBbsHjWvdRu1HXmmZ0YABLSeuyaf9oCrYbGc iB9VdFCOmyDRESH83LDAZVMUnfFn/fRLoA2jPIX6+9r1u+L39hTW347rBhINnmIr7DKh EMCGY4eu8IwhCeWcH76JMbGt27E5imx8P2nRG0GTeeT4VsJAkyrrCWDJIyLqqi+wnMB8 gBaA== 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 :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=zzO/BABXosBW26dQzbnEVuKM6qmCAqUZCHFz/+F2wbU=; b=CBM/8KKahkyFSn4d7Kk0j8Wh5r4a5ARbIvGHs2I6nxa6CpdlEHGP0A5iEkI1iFzsrd D41el4EAAtaClUmKBCZnhfm8+5GH7EoHq7GdoqAW9dg2/QG6HZI9SS0sOvvd4rdZgld2 aPTLvQF/8EG/FIbI9sZBfnIFzjtoaYaBLa2ezimhwsl9E0XALyEt4W/gLD4uIdvEATQM Of02QWkd5X+MXbGX2H6xRHOqWGobduSNsAy62A2DenO1WR47tOCGEyKsQ810bJD538cH eMr1bV+mrLz4GhmIJ7Iuct4fTvHccMUQY1sSmc9KljEw3SUoeBVDnthg/rltajDmsaqH XG/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vog+SdyM; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt13-20020a1709072d8d00b007830f14a97esi1561086ejc.739.2022.09.30.03.01.36; Fri, 30 Sep 2022 03:02:03 -0700 (PDT) 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=@linaro.org header.s=google header.b=vog+SdyM; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbiI3Jmb (ORCPT + 99 others); Fri, 30 Sep 2022 05:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbiI3Jm3 (ORCPT ); Fri, 30 Sep 2022 05:42:29 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5043FC1131 for ; Fri, 30 Sep 2022 02:42:28 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id c7so4174854ljm.12 for ; Fri, 30 Sep 2022 02:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date; bh=zzO/BABXosBW26dQzbnEVuKM6qmCAqUZCHFz/+F2wbU=; b=vog+SdyMWmM8BsTAKPH5HaEUFfZVGn3pbQBKPMtytKUC9k+5IA0QqXJ1ZKm417DmSt lqxWMAxG5UeXGnLbqTxE80hkfsmLRB3gWxsl0witKG5XbkWB2BUv/uXpAMVVGZdjKT6y nDyv4uNEIe5H7/gPSzb0e+8wf45G0YEq+7uM/2qIKJ7vJns58a0AkCP7JJErgpdMgk4c GsNPCtg0Rpb+44u6/qi0L26NQhivFror84C5ohokPpTv7sIj44Hym2plPPIWsMGJPPTq TklMJMsc8CmTsDIbe+9eCQRkz8x8ukdkAzFfkquTi4+FcCAQ4p9aIg7oTWlGw4mYHu+7 jVFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=zzO/BABXosBW26dQzbnEVuKM6qmCAqUZCHFz/+F2wbU=; b=SHIW4HHlP1zbDIdYbNnO1zlww2/R2xOp4vivDPM1GDj2GbVWBgmpEpboUiRqxgr2UE Z5OVBV5YPLOYB2ggzu/RewTMG493jTqKfA2EjwQ76Fbj4nZUeqhVLtC4jhd4l5ulH6E+ DBxPWiIuPGNw85eXohtQAoqARaqAz4l8r4e+NCyNFh3qFneSbpxh2vuEE3usYRRdu5b2 anXaU/OVOxRwbCygVrgIxpROQw83CS2YdJkhKr69uEPyM5tQY42jGKWwLRvq8XyEoj63 Rt73xtSjbxrwXEAaDBfWfB245RuKnrrjDlE9FbS0lrI/7MfTocypSnAUD5DAp9c/E537 EJeQ== X-Gm-Message-State: ACrzQf374r5s0jEM0flxr+ZAQAEuQfSHWUF3WmEZwM6qCrnrKEKr+LL5 Sry6+ajtbWqGesETPtWNHhtrzg== X-Received: by 2002:a2e:3211:0:b0:261:c5c8:3403 with SMTP id y17-20020a2e3211000000b00261c5c83403mr2766450ljy.86.1664530946585; Fri, 30 Sep 2022 02:42:26 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id u15-20020a05651206cf00b0048af9d2d119sm240785lff.130.2022.09.30.02.42.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Sep 2022 02:42:26 -0700 (PDT) Message-ID: Date: Fri, 30 Sep 2022 11:42:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 1/2] slimbus: stream: handle unsupported bitrates for presence rate To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20220930092006.85982-1-krzysztof.kozlowski@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20220930092006.85982-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 30/09/2022 11:20, Krzysztof Kozlowski wrote: > Handle errors of getting presence rate for unsupported stream bitrate, > instead of sending -EINVAL in change content message. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/slimbus/stream.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/drivers/slimbus/stream.c b/drivers/slimbus/stream.c > index f8eade1e0132..28fbecb3907d 100644 > --- a/drivers/slimbus/stream.c > +++ b/drivers/slimbus/stream.c > @@ -204,7 +204,7 @@ int slim_stream_prepare(struct slim_stream_runtime *rt, > { > struct slim_controller *ctrl = rt->dev->ctrl; > struct slim_port *port; > - int num_ports, i, port_id; > + int num_ports, i, port_id, prrate; > > pr_err("%s:%d AAAA\n", __func__, __LINE__); The context is from development tree. I'll rebase and send a v2. Best regards, Krzysztof