From owner-freebsd-arm@freebsd.org Tue Oct 6 08:41:30 2020 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 4121542CA46 for ; Tue, 6 Oct 2020 08:41:30 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4C59tK4zTtz49bB for ; Tue, 6 Oct 2020 08:41:29 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.nyi.freebsd.org (Postfix) id AAD5542CA45; Tue, 6 Oct 2020 08:41:29 +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 AAA1042CA44 for ; Tue, 6 Oct 2020 08:41:29 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C59tJ6tjrz49h3; Tue, 6 Oct 2020 08:41:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1601973680; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ULz2rJfPfu97YV3wVC9RDoikgNQxCqclqGeKk1bdd84=; b=FBoPJVuwFxbjjg1VeFc91jDd+hGCb6+A+UpJbC5SN1IMMztGc13Tpj986cUVZuXaFmiYAd yB7lGfAc2XK0u6s0c7xQxeY2VBUBihITt3nSGntQuZFoCUFRFxkeTSp7heAUi6AGb7A/50 6BtUAKZUtISNthuvh9QQRG22k1Fv+FM= Received: from skull.home.blih.net (lfbn-idf2-1-288-247.w82-123.abo.wanadoo.fr [82.123.126.247]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d59e4a2d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 6 Oct 2020 08:41:20 +0000 (UTC) Date: Tue, 6 Oct 2020 10:41:19 +0200 From: Emmanuel Vadot To: Andriy Gapon Cc: Daniel Braniss , "freebsd-arm@freebsd.org" Subject: Re: nanopi/allwinner i2c not working. Message-Id: <20201006104119.28f2262d47107d41025d193f@bidouilliste.com> In-Reply-To: References: <234D06ED-C99F-477E-8D95-492979084E7A@cs.huji.ac.il> <7934CE38-DC3F-450A-A131-19A7F88DA9EC@cs.huji.ac.il> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4C59tJ6tjrz49h3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2020 08:41:30 -0000 On Tue, 6 Oct 2020 11:34:26 +0300 Andriy Gapon wrote: > On 06/10/2020 10:32, Daniel Braniss wrote: > > this is what happens with debug on, > >=20 > > ? > > iichb0: twsi_intr: Got interrupt Current msg=3D0 > > iichb0: TWSI_READ: read 8 from 10 > > iichb0: twsi_intr: initial status=3D8 > > iichb0: twsi_intr: Send the address > > iichb0: TWSI_WRITE: Writing 48 to 8 > > iichb0: TWSI_WRITE: Writing c4 to c > > iichb0: twsi_intr: Done with interrupts > >=20 > > iichb0: twsi_intr: Got interrupt Current msg=3D0 > > iichb0: TWSI_READ: read 8 from 10 > > iichb0: twsi_intr: initial status=3D8 > > iichb0: twsi_intr: Send the address > > iichb0: TWSI_WRITE: Writing 48 to 8 > > iichb0: TWSI_WRITE: Writing c4 to c > > iichb0: twsi_intr: Done with interrupts > >=20 > > ... >=20 >=20 > Sorry, if I missed it, is this with any of the patches I suggested earlie= r? > Additionally, it looks like manu still hasn't merged r363021 ? > That could be the root cause of the problem that you see. >=20 > --=20 > Andriy Gapon Mhm yes it seems that I've might miss a few commits to mfc. I'll try to have a look today. Daniel, could you test 13-CURRENT just to confirm that it's fixed in head ? Thanks, --=20 Emmanuel Vadot