From owner-freebsd-arm@freebsd.org Wed Mar 31 07:06:51 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8E4415BD69F for ; Wed, 31 Mar 2021 07:06:51 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9HRv3gnNz4gtM for ; Wed, 31 Mar 2021 07:06:51 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7E34B5BCF6A; Wed, 31 Mar 2021 07:06:51 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7DF955BD784 for ; Wed, 31 Mar 2021 07:06:51 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9HRv1yLwz4gYy for ; Wed, 31 Mar 2021 07:06:50 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (Authenticated sender: andriy.gapon@uabsd.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 335B4200005; Wed, 31 Mar 2021 07:06:47 +0000 (UTC) Subject: Re: i2c/twsi/allwinner problems. To: Daniel Braniss , "freebsd-arm@freebsd.org" References: From: Andriy Gapon Message-ID: <4e386f9f-33aa-fa91-0fc3-fd44b34632ed@FreeBSD.org> Date: Wed, 31 Mar 2021 10:06:47 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4F9HRv1yLwz4gYy X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2021 07:06:51 -0000 On 30/03/2021 12:58, Daniel Braniss wrote: > |hi all, after some time, I decided to try FreeBSD 13 on my all winner (nano > neo) and got it working only with debugging on, so I started cherry picking till > I got it working, replacing printfs with DELAY and this is is now working, of > course not the correct solution, but if someone with better i2c knowledge can > propose a better solution I’m willing to test if with my program (it reads RFIDs > using a board with PN532),| I see quite a lot of those "cherry-picks" and they are a mix of explicit delays and printfs (via debug_). Also, the driver has completely separate code paths for polling mode and interrupt mode. I see that both are heavily modified. Do you actually use both modes? -- Andriy Gapon