Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1147254pxu; Thu, 8 Oct 2020 04:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw/mNhE79CQdDPzdAtbdbKrzvpwMl5tIfJXP/CrL5IEcN/UdxBwiZOYE2WttVE8wK9M1mu X-Received: by 2002:a17:906:7113:: with SMTP id x19mr8348967ejj.59.1602157407611; Thu, 08 Oct 2020 04:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602157407; cv=none; d=google.com; s=arc-20160816; b=OaRPIpxJKRcsW6rW1Y/HuJimo0FZo/KJ32GOiISVACi8DFSN2gfvS9WVI3drOqNIjS 4qV/N+Vazt3v5y9YQC7co4/zA8bhdplE127dmx7JPiiZEAGMDL95Q7R2jkyHlpvKK8d6 3759SOkPrKAqzN3KUHFMn4zdS7/U5JARjMLNsrLS5QwD6JYpQ0JOf5I3MJglpAOt3RlZ uCVqvyXvltkms1jsUQYyw8p5vHGHr+l+9jDwzrDbM/AD/84ufuB53NVneXrAZrzVIzD1 6JJTWMdLyj2Da72pYJQG4MqtMa3f7n3H8v+nO03ZWuG5QTdZeqGsT4w27qA0O6/CmrXc PVkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=4NpRlPMJu+nTJ3BKK9VVYitJouPdmM13RaANueWkDgQ=; b=O502Vk8WgK3/YXKgweYY/K9lmm3PhncFOxYx3z49sVkzQ2pl5my+YA8HzRAKeYgHFn fDddiGHda/xf4nBO6Lm9Yv/tyxpuFryvCFb0jwfMimdKlt5edsc/4EqNI7vd5cGstEi9 OYSHHGbiyrDS2N3+BdIuBRwOQd1oWiXPAtQ1VBLI69ljBvIxBWlCvr24RbwsCWTMYNM4 7yzhx+spgkUTONlZ25NRFAAcV+v5g4lfmypBZnIBSjCIUlWSgl1vZCkjXOJM/f3KvsPd pLgn9YB8rspBif0uT8GWoZHVNhy+3rDBQ5Fii75BW5KtaZPg73dLKJismbuWnAC+/w1q l4Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b="M/b+CvGi"; 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=connolly.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si3457379edw.472.2020.10.08.04.43.04; Thu, 08 Oct 2020 04:43:27 -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=@connolly.tech header.s=protonmail header.b="M/b+CvGi"; 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=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729564AbgJHKqO (ORCPT + 99 others); Thu, 8 Oct 2020 06:46:14 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:61503 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbgJHKqL (ORCPT ); Thu, 8 Oct 2020 06:46:11 -0400 X-Greylist: delayed 5141 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Oct 2020 06:46:10 EDT Date: Thu, 08 Oct 2020 10:46:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1602153968; bh=4NpRlPMJu+nTJ3BKK9VVYitJouPdmM13RaANueWkDgQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=M/b+CvGihVDhlxXveZ6bFw8LtfVyCrMfp5EQWimoFjBHy9QeS0/AVh9n4yQYnqkQr kWaMjO9Xjlg3TnUtt+onWkCCp/wbn1PzQnRqMGSR+CZg0+8sezo6Z5tdRifOilEg4m KAPVi5jBX6OFFiQg4M7GHSLU51+Nmk5/L7UJiQeQ= To: Wolfram Sang From: Caleb Connolly Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Akash Asthana , Mukesh Savaliya , ~postmarketos/upstreaming@lists.sr.ht, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Caleb Connolly Subject: Re: Re: [PATCH 5/5] i2c: geni: sdm845: dont perform DMA for the oneplus6 Message-ID: <27ffa058-c800-4ce7-4db5-8896ad136abf@connolly.tech> In-Reply-To: <20201008100352.GF76290@ninjato> References: <20201007174736.292968-1-caleb@connolly.tech> <20201007174736.292968-6-caleb@connolly.tech> <20201008100352.GF76290@ninjato> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-08 11:03, 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 > 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? Sorry it wasn't mentioned in my first message, this patch depends on the=20 rest in the series found here:=20 https://lore.kernel.org/linux-arm-msm/20201007174736.292968-1-caleb@connoll= y.tech/#r >> --- >> 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, >> =09struct geni_se *se =3D &gi2c->se; >> =09size_t len =3D msg->len; >> =20 >> -=09if (!of_machine_is_compatible("lenovo,yoga-c630")) >> +=09if (!of_machine_is_compatible("lenovo,yoga-c630") && >> +=09 !of_machine_is_compatible("oneplus,oneplus6")) >> =09=09dma_buf =3D i2c_get_dma_safe_msg_buf(msg, 32); >> =20 >> =09if (dma_buf) >> @@ -400,7 +401,8 @@ static int geni_i2c_tx_one_msg(struct geni_i2c_dev *= gi2c, struct i2c_msg *msg, >> =09struct geni_se *se =3D &gi2c->se; >> =09size_t len =3D msg->len; >> =20 >> -=09if (!of_machine_is_compatible("lenovo,yoga-c630")) >> +=09if (!of_machine_is_compatible("lenovo,yoga-c630") && >> +=09 !of_machine_is_compatible("oneplus,oneplus6")) >> =09=09dma_buf =3D i2c_get_dma_safe_msg_buf(msg, 32); >> =20 >> =09if (dma_buf) >> --=20 >> 2.28.0 >> >>