Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1819037pxu; Thu, 8 Oct 2020 23:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8HZxDhZOr3tER6SiSTeBKQDY5ho8pl8aDvi79g6bw8xd8EkeIXY0k4xSM7fifIfHdJ2R7 X-Received: by 2002:a05:6402:17a6:: with SMTP id j6mr12665978edy.322.1602226581615; Thu, 08 Oct 2020 23:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602226581; cv=none; d=google.com; s=arc-20160816; b=XpAkv84Ruracn3uKzmsOnXla4TR8KVcMhuEfjM5e/9QFPNaNow+P+JyBrsXwMG1k+V R8BWzNGVrPR+zK7CKLa9E9ATzSKVAbArPV7Srh6ammtyBdXwESDCCNryxbXt4FSpkHau 4yhdq9cHvzw1BjjQI3z4+WySK4B8q3mBgw9m6u3/nuJpghDmOua2sYihVH70x3zgP8QS utaPm+oo6txckj6tjEyK3mf3AiETaPQU1eP8ApUwUkuSC3udtQzBc3oux8rjOk1lVJeL GtK8Q+4+E0HUDAQ/DenJNC/McXBasFJfutFnWmuwuPoknRV/mv2eQHy1I/2qf7tqR3lb au8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=YDkhWM48cAkdMOYBmNFvGoMUdH8DwI8lrMxm58+8ZjQ=; b=zYU6Tw2oQSnKLush0OtI6Z0FwdvlCKlCfMIHRezY8XfPrn4l4o5TWM13BR5MdiyBCI 5gFNZU9t7edy2UJxCh9Mi78jrqHd1zHiAonDGLsHYZqzNaQAuAk2S1gdiuGNsCgbVldZ zwb7OBLk9J4w8T5lqEA+ZLFCguAzwwtbznZSGnzKUWjcHtKXEDXF/cL3iZwkgmcR3MEn 2JxwHlL2X6o40gzr1eYJ0ml9sQ7dZzQykKYhQZEcFYFaL7HTlfYaIl3UZ4Xwj0K76D0M 1UCrMXy6RGLbKe2MVECEf56LYLjCNV2A2bsXc/AbiWrXrseAlByCt8DeEr/qnucFX/Qk BHZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=jVB485LR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si5667057ejz.214.2020.10.08.23.55.58; Thu, 08 Oct 2020 23:56:21 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b=jVB485LR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730173AbgJIGxz (ORCPT + 99 others); Fri, 9 Oct 2020 02:53:55 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:11166 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728996AbgJIGxy (ORCPT ); Fri, 9 Oct 2020 02:53:54 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602226434; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=YDkhWM48cAkdMOYBmNFvGoMUdH8DwI8lrMxm58+8ZjQ=; b=jVB485LRL2y90tS/Prun6yyeQ49Om0i2lodXiTLL1xBrw5jfYAJmL6rVRP+3hx+l98nfOabX OpwhGsuHrl+yoYkJDz6dwN825/5M3UdFPmUzcVfCmKDfCIKO66QN3KoSX7xbRrW8v8bIxiD7 Z1GZlS6jEAs8vqKjjWBreT8Om7M= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 5f80090157b88ccb567e4b61 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 09 Oct 2020 06:53:53 GMT Sender: msavaliy=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7F66EC433C9; Fri, 9 Oct 2020 06:53:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.43.8] (unknown [106.213.185.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: msavaliy) by smtp.codeaurora.org (Postfix) with ESMTPSA id B2D7BC433CB; Fri, 9 Oct 2020 06:53:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B2D7BC433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=msavaliy@codeaurora.org Subject: Re: [PATCH 5/5] i2c: geni: sdm845: dont perform DMA for the oneplus6 To: Wolfram Sang , Caleb Connolly Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Akash Asthana , ~postmarketos/upstreaming@lists.sr.ht, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201007174736.292968-1-caleb@connolly.tech> <20201007174736.292968-6-caleb@connolly.tech> <20201008100352.GF76290@ninjato> From: "Mukesh, Savaliya" Message-ID: <5243ff4c-f08a-d9ff-ab1d-cadfa84171b8@codeaurora.org> Date: Fri, 9 Oct 2020 12:23:41 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201008100352.GF76290@ninjato> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/8/2020 3:33 PM, Wolfram Sang wrote: > On Wed, Oct 07, 2020 at 05:49:35PM +0000, Caleb Connolly wrote: >> The OnePlus 6/T has the same issues as the c630 causing a crash when DMA >> is used for i2c, so disable it. >> >> https://patchwork.kernel.org/patch/11133827/ >> Signed-off-by: Caleb Connolly Reviewed-by: Mukesh Kumar Savaliya > May I ask for a quick review here, so we can get this into 5.9 if > qcom-geni maintainers agree this is good to go? > >> --- >> drivers/i2c/busses/i2c-qcom-geni.c | 6 ++++-- >> 1 file changed, 4 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c >> index dead5db3315a..50a0674a6553 100644 >> --- a/drivers/i2c/busses/i2c-qcom-geni.c >> +++ b/drivers/i2c/busses/i2c-qcom-geni.c >> @@ -358,7 +358,8 @@ static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, >> struct geni_se *se = &gi2c->se; >> size_t len = msg->len; >> >> - if (!of_machine_is_compatible("lenovo,yoga-c630")) >> + if (!of_machine_is_compatible("lenovo,yoga-c630") && >> + !of_machine_is_compatible("oneplus,oneplus6")) >> dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); >> >> if (dma_buf) >> @@ -400,7 +401,8 @@ static int geni_i2c_tx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, >> struct geni_se *se = &gi2c->se; >> size_t len = msg->len; >> >> - if (!of_machine_is_compatible("lenovo,yoga-c630")) >> + if (!of_machine_is_compatible("lenovo,yoga-c630") && >> + !of_machine_is_compatible("oneplus,oneplus6")) >> dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); >> >> if (dma_buf) >> -- >> 2.28.0 >> >>