Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3343511ybt; Sat, 4 Jul 2020 14:01:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAQxwFvOzFKun9BNVc7k+qDITOn48wBzA39S9JMBL8kmQP5aaW1K+RR43H0TlM6xWgVPYn X-Received: by 2002:a17:906:4acc:: with SMTP id u12mr13715256ejt.358.1593896490213; Sat, 04 Jul 2020 14:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593896490; cv=none; d=google.com; s=arc-20160816; b=ibK2ujgjJ56VxAZVklMHFgAcZNiwTKOz98Tl4I/GZhQ6IvV5AObyu+VtlrgXcjCxPn 0x/wM6SPR5x8iyLN1dkCRNz8wnCQYU/pWl9jhA5VUfQ+lSnQFggRUPrZWS+dQFMi44a5 eQVNOPGIjMmIMKTO9epqAUMLfDlGubiYBRUstZXIO1S4sqehPHhk/QEKzgAaOfQBVvS5 me1CF+D0BseTTANO84nW0AOkeczhx2tjN2yRkj9T/A+5cpt+wOQevvsb4w8KRMo43xlh 9RueZr2VYWPRCfIFsQk7XTrTGoYejId80RPISkaVuoPfFS2DBkuH/42K5kvkt2jy99Iw pW9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OXuLhe54Dr8nuC1l2iScGztwjySWPlEhH4bXmzrhTQg=; b=KAJ99+EdcMGligFBnp+fzE7wYIEZZwtSktqOJ/lvv31VdLvNWp4ZTp0vS1hIkTAKCD vTJ8r09S6cusAaiDkXtfQ200oae42QHwqZT6MoSE6YgrnkcIJBZOmB3IKiOlmmdRYKW2 +kNLX8NKUqfL0/i4TFMkAVWMcqsls7WoQsfGeKJVQXokgKRZzfRKS+9nTVaq4Ts6PyUd 2okYhD5tr8jZN2hymEJwUUfvJqltnFjV7XmUBSYoyA4rXgjvBMBg+qA2Qi3AFe1/4SfX gUS1/AnC0b3YVy6+wWwteNvKjkYfVEJEhVOetDMwvb+JF5pn/ddha79xW5kaPiMrMKQh ihiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ByrU0MPg; 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 i3si9502899ejk.97.2020.07.04.14.01.06; Sat, 04 Jul 2020 14:01:30 -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=@gmx.net header.s=badeba3b8450 header.b=ByrU0MPg; 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 S1727882AbgGDU7H (ORCPT + 99 others); Sat, 4 Jul 2020 16:59:07 -0400 Received: from mout.gmx.net ([212.227.15.19]:59715 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbgGDU7H (ORCPT ); Sat, 4 Jul 2020 16:59:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1593896291; bh=2oIii+dEa/rMktNI0QfrGboAftGZ7VgeERC+pMMVvCE=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=ByrU0MPgzX7+FsB601UMpEA8PlbebAisHyU5yAukxRrqU+PS2Kha9xu89nXXvmhDk FEsvGG9hanZlY4xWNVi0P+XqW8lqcWtp7/swGM//2UwkOwAdUx1jlgm1p+27rJdYw7 i3trPvNW+wUq2JZU/4r7A68uM6Gk2YndeQioCe1E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.195.26]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8hV5-1jwW4Q2HFx-004mOY; Sat, 04 Jul 2020 22:58:11 +0200 Date: Sat, 4 Jul 2020 22:58:08 +0200 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Andreas Kemnade Cc: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , linux-kernel@vger.kernel.org, Lee Jones , Rob Herring , Thierry Reding , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Alessandro Zummo , Alexandre Belloni , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sam Ravnborg , Linus Walleij , Heiko Stuebner , Stephan Gerhold , Lubomir Rintel , Mark Brown , allen , Mauro Carvalho Chehab , "David S. Miller" , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Heiko Stuebner , Josua Mayer Subject: Re: [RFC PATCH 00/10] Netronix embedded controller driver for Kobo and Tolino ebook readers Message-ID: <20200704205808.GD2578@latitude> References: <20200620223915.1311485-1-j.neuschaefer@gmx.net> <20200630084051.66feadea@aktux> <20200630071523.GA2983@latitude> <20200630221447.3e03ae28@aktux> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d01dLTUuW90fS44H" Content-Disposition: inline In-Reply-To: <20200630221447.3e03ae28@aktux> X-Provags-ID: V03:K1:55puWQ+2GGyp7xcFFLkgMg7nkitQvyCSK5CCeExXNQutjzBzOIO vOWLHCUn89dwzlDLbv07iW8fG/Rzs6Y6iEj6IFAtgcy/ImnrcMnMPhm5BVSsrqc8fOv5zgU JLB+V6JL3G03CFL+MN9xGbxb3NBHFJ9S8wudrcml8m642V0u7SCEaLsS0IKObqSwkePjNsy VYCWd9xclZmIdnQaLD0FQ==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M1Y6kcRnTpLgLbE9/FHMKBkL6en oLtdPfWDI6Xc6ofxpZoix6HK70UsmIe9mbLJeaTM5P3Ssy/+9hed5nBHkqGm4ajl65k8zZRoZ 2HMNo9iiloTmMj9GDRSoaMDfFxzyklcnwHaOVlk/6jL2h1p0ZMXreDrtDZlbqJzdkDaC5n5S4 wOxfH5GDXLTFbHvJOF8waKgRVEAjVfFwjI+hodgmQyWB5orZtQNIDL3jYNiWC6eGe3uX8qz2A 6YY4cm2NYj+kA23uL Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --d01dLTUuW90fS44H Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 30, 2020 at 10:14:47PM +0200, Andreas Kemnade wrote: > On Tue, 30 Jun 2020 09:15:23 +0200 > Jonathan Neusch=C3=A4fer wrote: >=20 > > On Tue, Jun 30, 2020 at 08:40:51AM +0200, Andreas Kemnade wrote: > > [...] > > > got a chance to test it on a Tolino Shine 2 HD. > > > It uses the RTC from the RC5T619 but backlight seems to go via MSP430 > > > EC. > > >=20 > > > I got this. > > >=20 > > > [ 1.453603] ntxec 0-0043: Netronix embedded controller version f11= 0 detected. > > > [ 10.723638] ntxec-rtc 21a0000.i2c:embedded-controller@43:rtc: regi= stered as rtc0 > > > [ 10.775276] ntxec-pwm: probe of 21a0000.i2c:embedded-controller@43= :pwm failed with error -5 =20 > >=20 > > Hmm, -EIO from the PWM driver. > >=20 > turing debugging on: (edited for compactness:) > [ 330.332971] i2c i2c-0: write slave address: addr=3D0x86 ACK received > [ 330.334420] i2c i2c-0: write byte: B0=3D0xA3 ACK received > [ 330.334790] i2c i2c-0: write byte: B1=3D0x0 No ACK > [ 330.352339] i2c i2c-0: write slave address: addr=3D0x86 ACK received > [ 330.362208] i2c i2c-0: write byte: B0=3D0xA1 ACK received > [ 330.362479] i2c i2c-0: write byte: B1=3D0xFF No ACK > [ 330.363112] i2c i2c-0: write slave address: addr=3D0x86 ACK received > [ 330.363362] i2c i2c-0: write byte: B0=3D0xA2 ACK received > [ 330.363608] i2c i2c-0: write byte: B1=3D0xFF No ACK Hmm, it doesn't ack the writes to 0xA3, 0xA1 and 0xA2, which should disable the PWM output and then disable the auto-off timer (according to the vendor kernel). And you said in your other mail that you can actually toggle the light with writes to 0xA3, so I suspect a bug in the EC firmware here (which may have gone unnoticed because the vendor kernel doesn't check if the i2c transfers succeed). :/ IMHO we should get this driver merged first, and perhaps add a quirk to deal with the missing ACKs later (unless a better solution is found). Jonathan --d01dLTUuW90fS44H Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAl8A7VcACgkQCDBEmo7z X9vtUBAApZaMG6edUQzNMvP9gVMXHNm96Rk1KQowxkW4xF6zOnil/x4PcUwgqfKV tA1xaZMavflayrHqj1wKuLPWnrJ1xdulK/PnULdnXalCJSVqGHjwyKf3/+onibzr o6rS+U9ToxbkTeTdV8DjcGz2qmNeJjpaExuZTlvXHQxH7a6SUwK23JVuiChwe2M3 ycD3RQp/jvAOEW4+e/y6iGat1skMV+dUglcitX6pYBoYu8u4FoSfZ3v/O6JTqqS3 IeLfBc0IMjGuYbEn+RRkHbnLTNidHt+ptsNl6Q+p7eaRGCeGXIaCeeFPbBp1LXMf C559niYKdWD+MQV6diLUHGMO5s4WrQiQ/qP4K+R9qQHKXyD84XYPXJX+QO+up2qb jDyutjtILNt5YFUKNbvimcWy/rlDa1sdVaFK8Dt9o0zdkT25FATE8SU0eRFwf396 vqwWeGF2b9mNRPzWzbpQYhEDvIR+OCuDfi085F0sYtBuPBY1vcy4mbVDjDGU0ulT T90dH/DU7C7DJwA7w6sxeb+8MZ5VGTHLsGZ+tB84pMaKJOlvTdRLD7J1+aUpqBmh BiSTJlIZeiiR04ip4vNYgsuHM79LlEapJuhJbYLMk3oBWtRAkrToyZEjWTDfp3Ik JzLHmXz38TYOeGG7A2vWQTIQb1eAw9Alh4Gu2OdzWW0fmR8NWCI= =5RFu -----END PGP SIGNATURE----- --d01dLTUuW90fS44H--