Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2345712pxb; Sat, 21 Nov 2020 19:30:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaQIjsyBh45leGbeijid43/m7l1/SGv6uU/wxeV3t5SToz48esxlpZR2Kag1SgLaLWHM3X X-Received: by 2002:a50:d490:: with SMTP id s16mr23479901edi.187.1606015839488; Sat, 21 Nov 2020 19:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606015839; cv=none; d=google.com; s=arc-20160816; b=Eh0q4vLQHsz58pxMc0oi9TXdiLDiXnlRp31h1VmtsNP5d479A6zFH1towBu4gI9qip h5crBMpZQXg37t/f3C5Mkzrd9RCYOUa2E4YPak7LMqDtZLSuuVb89U101iwYMrXmGZAM fBreRljV83JM09MX+BhQGZ/SBbxgodIS0EvHIeZ8CwekMIBSGym5qiiRSO48CTbKbSl+ hNPkQyjiNdkg2N9fKr127nJbHpRNsLpKQfhgxZ31Tq63kBZuXBGAsyIEb4rDAOFOOhLj WlFyqsw9HelH1dS8YbCjtfgRssEGrsdWX1Oh0PyBpDvkJmaf3mTGyMdQiwYbJa0FM4Q6 pvUA== 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=gcJ/gZYUXR9QLu14QvKD5lqjMbo7YC2xKOPSwdvWYkg=; b=JzCXyy89kbg9uLgRgYHhw48kpeWpTw2OwHoX9JLvIn95ajdNIGmI5iyY+p9RWOuf7S s160Inym95OzeiDpCIEtWakvVA4Xm5aunETac3C7c5Y53tf4z8i9YyqTnrxw9VWDb7W8 zqrQBzCPKO0zo+lwA4OQEn+LoZuxibZfIIYSgkNV1jTEm981hZfklmJRPx15p9ISN7WL xMpBSeOxLqdr8Qq6xYeTxx8T0eMpNRGZ+mSbSsxWz+sfs0XF/WCGhabzu3pMFUJO9YBv yLkeuzOOYF+FEPF/1XLmT0DsPf4S20NbSJ7i+r6MzUUI+PMg7sb+ioQOtdq+pR8xXDKm OTvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cMVPreri; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si4750252edq.479.2020.11.21.19.30.16; Sat, 21 Nov 2020 19:30:39 -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=@linaro.org header.s=google header.b=cMVPreri; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbgKVD1Q (ORCPT + 99 others); Sat, 21 Nov 2020 22:27:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726544AbgKVD1P (ORCPT ); Sat, 21 Nov 2020 22:27:15 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22143C0613CF for ; Sat, 21 Nov 2020 19:27:15 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id n12so9226318otk.0 for ; Sat, 21 Nov 2020 19:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gcJ/gZYUXR9QLu14QvKD5lqjMbo7YC2xKOPSwdvWYkg=; b=cMVPreriOsxiBapSTAIYACsTKMFBggUNDJTWPOlbu0MizKIp/57CkomARQi2wFDxOo 2TRVV6f9+x9LDc0a2qMMd1OG0BHwuco9fCKJD3Mrcad/HXwA+OePc8vrnmFqEtZXbFXN bcTOwwKNTLUIUQnOTQQ6wMJ+JjPJKy4s7iZbwDS8fEypkOJFOmNCy1rdiB3PQaBw75kZ 449TFvTvmFCyLIIYLWzQ1xnURgApnSTv1M2vJEo0Y/txY+zB1z+t7O6KM3C0H9ZWdrmv Xkzrjfc1HZgeqozI+kAL0Q/uwOiOqkcHM81dm0BNhk6fn6udbpa9/UR48XBxKrog0EN+ SutA== 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=gcJ/gZYUXR9QLu14QvKD5lqjMbo7YC2xKOPSwdvWYkg=; b=dcf+3h3VlEkHqA8vrD/1jKN7gyRQpkRbQOElpfk/ePT2Z4ZlyoYdvBLvL9yURg69K9 SkBMA8xrYc3+DpBwUd1BTQY0YjYhqeB5ZPHidVEPas5XbpcmjL0uPSsHWQw5wF2PernW UYaOM/vJVexp84ZVUVFk3u7e8r5BYtibgRVACYgfD4j/vsnzZ1LjX9orO+5A43rk/mU/ lQ+VXEDLj+dKVSC9L+xBOywaKLxf2R4K6H5+FdJLI8mS/cOL1HqW/zdH5LFQA1qkUPkq kgWnLjBcil0EZvCBotDEJPH5PDp727WE0gCiLbb3J9K8PMpXKxom1EwZfq2xhWrZmxli h1Jw== X-Gm-Message-State: AOAM530lSv/1GK9fGvGcoaImP9vpD19O+co0CfM8wUN3VHhg8g6YUktG 1bUGYHfZTspdVosyU3vWNHGH3g== X-Received: by 2002:a9d:68c3:: with SMTP id i3mr17893774oto.31.1606015634538; Sat, 21 Nov 2020 19:27:14 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id c136sm4584564oib.7.2020.11.21.19.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2020 19:27:13 -0800 (PST) Date: Sat, 21 Nov 2020 21:27:11 -0600 From: Bjorn Andersson To: Roja Rani Yarubandi Cc: wsa@kernel.org, swboyd@chromium.org, dianders@chromium.org, saiprakash.ranjan@codeaurora.org, gregkh@linuxfoundation.org, mka@chromium.org, akashast@codeaurora.org, msavaliy@qti.qualcomm.com, skakit@codeaurora.org, vkaur@codeaurora.org, pyarlaga@codeaurora.org, rnayak@codeaurora.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, sumit.semwal@linaro.org, linux-media@vger.kernel.org Subject: Re: [PATCH V6 1/3] soc: qcom: geni: Remove "iova" check Message-ID: <20201122032711.GO8532@builder.lan> References: <20201030145959.505-1-rojay@codeaurora.org> <20201030145959.505-2-rojay@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201030145959.505-2-rojay@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 30 Oct 09:59 CDT 2020, Roja Rani Yarubandi wrote: > Remove "iova" check from geni_se_tx_dma_unprep and geni_se_rx_dma_unprep > functions as checking with dma_mapping_error() is enough. > Applied this patch towards v5.11. Thank you, Bjorn > Signed-off-by: Roja Rani Yarubandi > --- > Changes in V5: > - This is newly added patch in V5. As per Stephen's comments separted > this patch from shutdown callback patch. > > Changes in V6: > - Fixed nit-picks in commit text. > > drivers/soc/qcom/qcom-geni-se.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c > index d0e4f520cff8..0216b38c1e9a 100644 > --- a/drivers/soc/qcom/qcom-geni-se.c > +++ b/drivers/soc/qcom/qcom-geni-se.c > @@ -705,7 +705,7 @@ void geni_se_tx_dma_unprep(struct geni_se *se, dma_addr_t iova, size_t len) > { > struct geni_wrapper *wrapper = se->wrapper; > > - if (iova && !dma_mapping_error(wrapper->dev, iova)) > + if (!dma_mapping_error(wrapper->dev, iova)) > dma_unmap_single(wrapper->dev, iova, len, DMA_TO_DEVICE); > } > EXPORT_SYMBOL(geni_se_tx_dma_unprep); > @@ -722,7 +722,7 @@ void geni_se_rx_dma_unprep(struct geni_se *se, dma_addr_t iova, size_t len) > { > struct geni_wrapper *wrapper = se->wrapper; > > - if (iova && !dma_mapping_error(wrapper->dev, iova)) > + if (!dma_mapping_error(wrapper->dev, iova)) > dma_unmap_single(wrapper->dev, iova, len, DMA_FROM_DEVICE); > } > EXPORT_SYMBOL(geni_se_rx_dma_unprep); > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >