From owner-freebsd-arm@freebsd.org Tue Oct 6 08:34:31 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 E712642C90C for ; Tue, 6 Oct 2020 08:34:31 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4C59kH53qBz49X2 for ; Tue, 6 Oct 2020 08:34:31 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id AD42742C372; Tue, 6 Oct 2020 08:34:31 +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 AD03042C993 for ; Tue, 6 Oct 2020 08:34:31 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C59kG3bzMz49Cf for ; Tue, 6 Oct 2020 08:34:30 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lj1-f178.google.com with SMTP id n25so10116532ljj.4 for ; Tue, 06 Oct 2020 01:34:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=aE/9AciGnl4x0XLTI7rege1gI9wVWXDIinq6BpgaiLg=; b=VFluAh3xa20Q1dchcz3y9jnj+RUzzMBx33DxmVvL2LWK1GKauP2T04qhwLu2Cdb13L DzJnUPsLjN+aIaSmEJiDxe/IsaKAeQI7CmPsWIK/fnLWVRXPXQhL5Y2CgSZrcejuYXwv 5ukR2fF9cXWczhKpMUdYkpbGIhZZVfsPCvhJu7V5IyGWleLCrGeYt5xUgFTLYC8uZh33 DcdLTUstZM3NFou3ldXewgc/ciPLo6BA3+E4ciYcBhT06/t2jhflqxzJ5OG7y6Jxb4N6 pYoq5z6nqvOKH7Y7sC3ItR7O5c3Gpa2wamsbyNVUBt5n0yX9yGyPVsTUApDumguA974P IDCw== X-Gm-Message-State: AOAM533CNhmAdUWjEkbrAEqRH1oGuPYyagUjDSnpHvdo74sT7GRiN/Aw jUYQUk94HivK9iu3fLONtqiULYfN+44Vtg== X-Google-Smtp-Source: ABdhPJydAST1mDxJ+0Q37ZGecL/GPgLdiPhhZX8XYa+o72mnpeYRqNyF55UJI7I//+S58y9tjZmFqQ== X-Received: by 2002:a2e:9e8b:: with SMTP id f11mr1239747ljk.297.1601973268208; Tue, 06 Oct 2020 01:34:28 -0700 (PDT) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id n6sm591931ljg.106.2020.10.06.01.34.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Oct 2020 01:34:27 -0700 (PDT) Subject: Re: nanopi/allwinner i2c not working. To: Daniel Braniss Cc: "freebsd-arm@freebsd.org" References: <234D06ED-C99F-477E-8D95-492979084E7A@cs.huji.ac.il> <7934CE38-DC3F-450A-A131-19A7F88DA9EC@cs.huji.ac.il> From: Andriy Gapon Openpgp: preference=signencrypt Autocrypt: addr=avg@FreeBSD.org; prefer-encrypt=mutual; keydata= mDMEX1iFDhYJKwYBBAHaRw8BAQdAiu8JG/oLFkVkOAJqJc7Dx5KI/Q6C3SBI20EQm+DXnAu0 HkFuZHJpeSBHYXBvbiA8YXZnQEZyZWVCU0Qub3JnPoiWBBMWCAA+FiEEyCHHZM09l0OE3Ir/ 1A1+Gq8+L1EFAl9YhQ4CGwMFCQeEzgAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ1A1+ Gq8+L1Fc0wD/ZjmhHfbCJywZU3aOxXIPjcz73FYEGMvqMCCLAWyLbSABALFL+1ZNrjV3BGjq 889cOYFuboA/Yn3eWezS+tfqYBsGuDgEX1iFDhIKKwYBBAGXVQEFAQEHQL6B20Xi600TrkpG P9fWjl7JtHNxqrHKhX6Kg7kgb4ILAwEIB4h+BBgWCAAmFiEEyCHHZM09l0OE3Ir/1A1+Gq8+ L1EFAl9YhQ4CGwwFCQeEzgAACgkQ1A1+Gq8+L1F3cgEAktp4h+IJUJxL1vn6zMOt//znni/J TanKfQuA8wGXcGkBAKpZJhqMkg+pKk7MGvJhgJ6nCpTZ+rMK6vZVZLUWc3QF Message-ID: Date: Tue, 6 Oct 2020 11:34:26 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Firefox/60.0 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <7934CE38-DC3F-450A-A131-19A7F88DA9EC@cs.huji.ac.il> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4C59kG3bzMz49Cf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of agapon@gmail.com designates 209.85.208.178 as permitted sender) smtp.mailfrom=agapon@gmail.com X-Spamd-Result: default: False [-2.59 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.54)[-0.540]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[avg@FreeBSD.org,agapon@gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[93.72.151.96:received]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[avg@FreeBSD.org,agapon@gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.012]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.04)[-1.042]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[arm@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.178:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.178:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[arm] 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:34:32 -0000 On 06/10/2020 10:32, Daniel Braniss wrote: > this is what happens with debug on, > > … > iichb0: twsi_intr: Got interrupt Current msg=0 > iichb0: TWSI_READ: read 8 from 10 > iichb0: twsi_intr: initial status=8 > 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 > > iichb0: twsi_intr: Got interrupt Current msg=0 > iichb0: TWSI_READ: read 8 from 10 > iichb0: twsi_intr: initial status=8 > 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 > > ... Sorry, if I missed it, is this with any of the patches I suggested earlier? Additionally, it looks like manu still hasn't merged r363021 ? That could be the root cause of the problem that you see. -- Andriy Gapon