Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1581996pxb; Mon, 8 Mar 2021 00:47:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8y5PhWL/8FIHuyoCkSWd9+VLF+z66HEQqt3SHQ2C52CmULzbxVk7Rmrwf1lLo4dl7PHtx X-Received: by 2002:a05:6402:5244:: with SMTP id t4mr19988279edd.87.1615193249809; Mon, 08 Mar 2021 00:47:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615193249; cv=none; d=google.com; s=arc-20160816; b=CBH6mgfiq+gFTyhGMvv67XW0I0JPt/h/1n6EhSTrV0k82zdrfxfouYgjFlrkIc8REJ JnDCN3Rv5z+Ch+9sY7Y48s3As2eknQX/u0GyYI/c0CGWdxC0cuON8eGVf+FEtYuBApee sNN39rhJGpaaoQLikJF81YdD72lG8DOqJAuSKFsDU0ZeddXghTUqdDXN+RrJI9ebgGt8 WcJoO8Y7pOzyfkiz4vyLLuH8QACOQhXA7hV3odnMntPitt/ApMSKsUI04lM3SfzD4k1Q LL2mPM1MHTEIbPkHZe8LjcDU4paAf5ue4IgXno4E4eEiU/I6PxUy2S7bTe2kLfV5XXNJ tWuw== 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:dkim-signature; bh=pc6lspx6BzV+7E4gbvDYlLDbNdaxP0EzzFS8tfSMENQ=; b=T8TBIec//lRyzCfMwO/yjWMeZAZkTm+uH9+dEKpypMLz29XAaSUbU35TzUUXMY2nFM I1cyzolqAACoi9/bHCJiDYiMj5PpAHsYzfvSS4atQPvOcB1A9kurQQj+czk973i2DBcC lzoK8GZcA/JzMa0A346gaczCSkmpzzusNgopoku04vbK/QIgsheJ5jCBEpRxfXCrW3U2 D3HenoJjHVcndvp0jri3zVt3/ETHv/xthHZhztSyMguO0NAG/zYoAmGnlb9Q5ia17GtN 8mE4e2Nm6KmF5gTfUjj686Sh5rS/U/CyQfNNCX0tj5VrExXFFEEs5TT/9oN1f1SW3Bd+ SvxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fm4SY6fZ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si5538012edc.70.2021.03.08.00.47.07; Mon, 08 Mar 2021 00:47:29 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fm4SY6fZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235242AbhCHHhZ (ORCPT + 99 others); Mon, 8 Mar 2021 02:37:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:46380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbhCHHgx (ORCPT ); Mon, 8 Mar 2021 02:36:53 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 99D78651E8; Mon, 8 Mar 2021 07:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615189013; bh=D/4KudnhtSMN1x/gY5a3/M8JulIafkR5bugmrWfxE4E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fm4SY6fZQ0F4WZSaiNP9z9a2TnqgpU1HCfWfOltNL92Wm1C3X5gKKA2CAxxGIPIVw 2F/3QX/Vmq/xqxR2eJS3aKv4gWpLcwVFMv4w+68fv61V2cbhZld88WPeabaZlu0VjQ Sq8e3S3RZTXKSz+0+lzgx9N3TxV3Rw+QnjgwXqQo= Date: Mon, 8 Mar 2021 08:36:50 +0100 From: Greg KH To: Pawel Laszczak Cc: peter.chen@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kurahul@cadence.com, sparmar@cadence.com Subject: Re: [PATCH v2] usb: cdnsp: Fixes incorrect value in ISOC TRB Message-ID: References: <20210308073103.33763-1-pawell@gli-login.cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210308073103.33763-1-pawell@gli-login.cadence.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 08:31:03AM +0100, Pawel Laszczak wrote: > From: Pawel Laszczak > > Fixes issue with priority of operator. Operator "|" priority is > higher then "? :". > To improve the readability the operator "? :" has been replaced with > "if ()" statement. > > Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver") > Signed-off-by: Pawel Laszczak > > --- > Changelog: > v2: > - changed the commit log > - added separate "if" statement to improve readability > > drivers/usb/cdns3/cdnsp-ring.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/cdns3/cdnsp-ring.c b/drivers/usb/cdns3/cdnsp-ring.c > index e15e13ba27dc..b23f09a68427 100644 > --- a/drivers/usb/cdns3/cdnsp-ring.c > +++ b/drivers/usb/cdns3/cdnsp-ring.c > @@ -2198,7 +2198,10 @@ static int cdnsp_queue_isoc_tx(struct cdnsp_device *pdev, > * inverted in the first TDs isoc TRB. > */ > field = TRB_TYPE(TRB_ISOC) | TRB_TLBPC(last_burst_pkt) | > - start_cycle ? 0 : 1 | TRB_SIA | TRB_TBC(burst_count); > + TRB_SIA | TRB_TBC(burst_count); > + > + if (!start_cycle) > + field |= TRB_CYCLE; Thank you for the change: Reviewed-by: Greg Kroah-Hartman