Received: by 10.213.65.68 with SMTP id h4csp258243imn; Tue, 20 Mar 2018 02:47:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELsuSiucOZAXwGX2w7TE3EyVi19PtaTWIebyO4NJ7DN0xBg4LgGl/OkGEwtDffzyKJ497S0a X-Received: by 10.98.165.4 with SMTP id v4mr13148632pfm.51.1521539245580; Tue, 20 Mar 2018 02:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521539245; cv=none; d=google.com; s=arc-20160816; b=YL/1bPtL/PfMLwnQnCA3VHG/33XpikzWrwb8b59AV3/MAFtsx24RkEFPqYCjPUmp7i i8faysd8C5PGACvVZjI1WJ7ZYbEd0tU/Iu/x56YX+5/sXxEZaB9Txz/uYYPQGeJQKkrv rGTNS4jm0YlL/gWGeoTf26VBSsrzS/H39/+kUMh+zbxNIzgpWLjihHIjdjrw2vZcWVVy 3je2OhqohSvrot7m4knNLqGEFJTDIYtEFt+8hpRocvHRNueXC/sdKgqxnu7x46zv6aMG NxPPNYb80klL7Dhee+qJ+jZAHeg2RnBGlpGTxi9avJ1jlhQgaawdXwyLjdKkq6eNyhrA xztw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=r8AS6UlhdDVM1XVuigmWjPThWMPjBxnScm9MBEicE7k=; b=ow+iM31OoyI4866p7ioaxppko5ecED/UJtqgThXY9Fsbd1LugmWVZm+6qVtCxU6etU U3F8967DxtKTlu8WJNEk/Sp/YPSlbwYHXq+BUzeGLPceI8UU7Xj2pcovRrsdSVRZIpRA hhaMftH/3qy2ZkiydUis9cq4uehaNtzSe0sdav6P7bSrjH1cQxbc1oFyqPy98hkfyTwg BR+4+6Do0M2nwONc03lyi2uqF47y+DCB/Eg7+JhGhwaRW8tjrMUh35ycj2InKoSg0IPL 7APGXhFfdEDYWqec3cz5/L07l/rG4f6HTzOJdDlKVkwVHT7VX0T9YogDDpCKA5vbQyPa KBFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si952910pgp.145.2018.03.20.02.47.08; Tue, 20 Mar 2018 02:47:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752664AbeCTJpd (ORCPT + 99 others); Tue, 20 Mar 2018 05:45:33 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:43208 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752555AbeCTJp1 (ORCPT ); Tue, 20 Mar 2018 05:45:27 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w2K9hx9m017403; Tue, 20 Mar 2018 10:45:11 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2grtsg6v75-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 20 Mar 2018 10:45:11 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EF4CC31; Tue, 20 Mar 2018 09:45:10 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D34B22495; Tue, 20 Mar 2018 09:45:10 +0000 (GMT) Received: from [10.201.23.236] (10.75.127.50) by SFHDAG5NODE2.st.com (10.75.127.14) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 20 Mar 2018 10:45:10 +0100 Subject: Re: [RESEND PATCH v1 6/6] i2c: i2c-stm32f7: Implement I2C recovery mechanism To: Wolfram Sang CC: Maxime Coquelin , Alexandre Torgue , , , References: <1520852023-27083-1-git-send-email-pierre-yves.mordret@st.com> <1520852023-27083-7-git-send-email-pierre-yves.mordret@st.com> <20180317204720.mclh4jw5owobbtww@ninjato> <2672947b-46b2-7bd7-ac13-501db8bde72b@st.com> <20180320094216.ugietqyerdowq4c4@katana> From: Pierre Yves MORDRET Message-ID: <4a1aa386-21dc-12a2-b2b5-6e25586ffc79@st.com> Date: Tue, 20 Mar 2018 10:45:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180320094216.ugietqyerdowq4c4@katana> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG7NODE2.st.com (10.75.127.20) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-20_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for your quick answer On 03/20/2018 10:42 AM, Wolfram Sang wrote: > Hi, > >> Looking at the recovery API, this recovery is for slave and nothing else with my >> case. Therefore I think I have to get move this reset out of recovery API. > > Yes, you are correct. You need a custom function, this is totally driver > specific. OK ! > >> Slave Recovery mechanism is another story to implement in our platform since we >> have to deal with GPIOs. > > For that, the recovery infrastructure in the core has lots of helpers > for you. > Yeah. This is what I saw nonetheless the main trouble is to setup SCL/SDA into GPIO. Not that easy. but feasible of course. BTW I will rework my driver. Thanks. > Regards, > > Wolfram >