Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp619445ybe; Wed, 4 Sep 2019 05:19:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqydbk2M/aet1T2Of+yaU5GfFW+mXPugkScsBThjP+ytEVVHvUN7HSKn0L/Juu1Lvn0vrSR2 X-Received: by 2002:a65:64cf:: with SMTP id t15mr34095670pgv.88.1567599588425; Wed, 04 Sep 2019 05:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567599588; cv=none; d=google.com; s=arc-20160816; b=NxBn8ZmACLOIHEHbUMZcWsorgOV2viTciGg0tfmXrSBAQk/b8yPZ/kF5BKAMfGQCD4 wkDI3YV0N+NNH1H9pC8bcuH4RGOudaB3LHkrHaPWrmuXjipPJtBcGizPIjezxkmo/0as IvLYwHFttcNQCzYLp52QnJntidqc0rGJez/wp2Y7eRINAf0DPYepWoWkEPazY5JoaRCt N499b8W9C6bhsobt6fzLHGF2e958f/2pY4ySQIIYATzXVB1Y5zsN5OYpjoPDwAlzzz3x a9mRfB7OmdtcrUwCSsGF0ZZa0GRqlhEQ0BNxef57Mk//SP5ZgUDytQJc5x0JcEVy5/nQ DOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZUNvCNl71LL7bsOV2q3vh455zcpyuXw4iwVhdFBYbko=; b=gqUp8TWhAgjqMmJPxsSgjpoIuWXB6sJGEQlIwd3YcQcZJKdA5RCy1qUZmObo+6z221 c7kl5l9ApGbUwBOgbtIen1eGxtmAWsPbT1RoRxOxCXkwAuuqAR1FAKFH6/sDchQtF1Ap GVc6Od+bZ5uyBRp/ONVsjtLr+sBv0HqBpe0YtAtkC2UP9gGB9sVqbc7rMz118fQkivY5 JvyvzgGPa4FAUbFSz89vdcuTS0TJEP9kLxUP1c3uhLhvmOTrG/wTRbn8ytJOnFU+p/Ja qU2OuwwrFDBZtULW2n0sVgWK+VcpYzTJ7QdpNy4A4+ADQSNw95JMNFJB1xOqq2BDNb8R nHXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qWT8T8t8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v186si16314353pgd.358.2019.09.04.05.19.32; Wed, 04 Sep 2019 05:19:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qWT8T8t8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729912AbfIDMSM (ORCPT + 99 others); Wed, 4 Sep 2019 08:18:12 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51513 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729398AbfIDMSM (ORCPT ); Wed, 4 Sep 2019 08:18:12 -0400 Received: by mail-wm1-f65.google.com with SMTP id k1so3076807wmi.1 for ; Wed, 04 Sep 2019 05:18:10 -0700 (PDT) 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:content-transfer-encoding:in-reply-to :user-agent; bh=ZUNvCNl71LL7bsOV2q3vh455zcpyuXw4iwVhdFBYbko=; b=qWT8T8t8cXk3gJqp5zZ0LNwl++o68vkXUweIMe4C+BVD3OYH5teo1CMvNy5D2/RyyY 1fek0ayL+6+lhLrZh5sPHjSmhWZRGC8xrEgsyrz3zMX/Jwmrf+nM01GoUmZiKg1wih+x 1RLARPW/5pG83iO/faxDUIegwvDNqu+nhMjJlH2XdnKoOjWJH8hd5WiPX7SacnpYZjbG lYMwjf/o9sXMgGDqoYGqvOkzMqVQJQz9eEe3CLsaeYPHol3m+ZlGCF14PG1MsYs6GyP2 qxMkDEB+evV/eJquxuYh8kjTXd+OcpKBmB9/LOlrNG9hXTtYUH8NGu9q5kW8B3Lki7sQ OL6Q== 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:content-transfer-encoding :in-reply-to:user-agent; bh=ZUNvCNl71LL7bsOV2q3vh455zcpyuXw4iwVhdFBYbko=; b=PZqKgR4aoF4QJDCLyuBOJGSQC04Bl6mmfKK9VA/s/ZOF9S/zPARkax4aWg8t7osEpN /PGCNtLN5MxcGjPVcMZ1Ze6Hb71yY3GReEStg7H5Bj+TRKxDgfCyVZDVI3y3I8JcvPiE 1LqOsZUps5GbIzy0VvN9bpWQg9d0DHZ7FGHS4xI76JY/2pYgdlFDl8V5fx32jhZ8zDoc 3pl0uVWVD0nEixpReNOqDD/0DLGd4JxZzC7uQ/eznEinE6zB8i/uIQl3H+UUO3euqmL6 JOdZwo3NtDa0wFAHJfE4tRJqJwKYiXvQO6wERrACoBSCcu3XNwYsfxDgRiB/zNnonT+d EdNg== X-Gm-Message-State: APjAAAVBKBWJotOV1xNeWSwlmJnHYdIy1QBrWSL+4VpazoMh1kDh1QQo vjYxuNX8RBBlF2uzEFEQmIU5rQ== X-Received: by 2002:a1c:f910:: with SMTP id x16mr3869419wmh.173.1567599489980; Wed, 04 Sep 2019 05:18:09 -0700 (PDT) Received: from dell ([95.147.198.36]) by smtp.gmail.com with ESMTPSA id d18sm29560180wra.91.2019.09.04.05.18.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 05:18:09 -0700 (PDT) Date: Wed, 4 Sep 2019 13:18:07 +0100 From: Lee Jones To: Vinod Koul Cc: alokc@codeaurora.org, agross@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, bjorn.andersson@linaro.org, linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] i2c: qcom-geni: Provide an option to select FIFO processing Message-ID: <20190904121807.GK26880@dell> References: <20190904113613.14997-1-lee.jones@linaro.org> <20190904115609.GW2672@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190904115609.GW2672@vkoul-mobl> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 04 Sep 2019, Vinod Koul wrote: > On 04-09-19, 12:36, Lee Jones wrote: > > Signed-off-by: Lee Jones > > --- > > drivers/i2c/busses/i2c-qcom-geni.c | 14 ++++++++++---- > > 1 file changed, 10 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c > > index a89bfce5388e..dfdbce067827 100644 > > --- a/drivers/i2c/busses/i2c-qcom-geni.c > > +++ b/drivers/i2c/busses/i2c-qcom-geni.c > > @@ -353,13 +353,16 @@ static void geni_i2c_tx_fsm_rst(struct geni_i2c_dev *gi2c) > > static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, > > u32 m_param) > > { > > + struct device_node *np = gi2c->se.dev->of_node; > > dma_addr_t rx_dma; > > unsigned long time_left; > > - void *dma_buf; > > + void *dma_buf = NULL; > > struct geni_se *se = &gi2c->se; > > size_t len = msg->len; > > > > - dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); > > + if (!of_property_read_bool(np, "qcom,geni-se-fifo")) > > Where is this property documented, I dont see anything in linux-next for > today In this set. :) -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog