Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2217786ybb; Mon, 30 Mar 2020 01:42:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsK29OWTMOS48G7YIlOvUGURVyKas0bX7xy5t/1aqABS0ubVCx0c2ddyT8Lc9ZNb3tTqR8I X-Received: by 2002:a4a:d1a5:: with SMTP id z5mr8807052oor.63.1585557734224; Mon, 30 Mar 2020 01:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585557734; cv=none; d=google.com; s=arc-20160816; b=kaz3AuJvHJ+DprpXkO2iGTK4kQ3Qfc0wGjxAQHorgmj8wwTNze80038FQCjMqb5Api ncl7rjzqo0Xe2vIORIJGzrOHIpZBdFlLUoCYC73pm+AOidNLwz0S8BbWS+ZqmW9Fwxrr FTNg+wylMXKFEF22fjsehIjAVQYOh4W2V6NAcQ2W+ghDpSSV1PHPmk9c9qaGM5G1SOgD UnbCLT2yBDFKHbF29+Uxp509ZeTf4zZscra3jI3uazGFm0J71Wtwc6581YQwrhS+WKMR lxWDOMc8VoIw8Tl4B6Utz8YM7VIsncW3l2pG5crhEUEZd6t8MQYpI5aeuOAjIi5QHWXs MJaA== 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:dkim-signature; bh=TK4u1WfehPW/zTgGPri0+DBcitevXxC+wyU2msRkqLE=; b=N2l91sYZvEB/5AWALXixvLm5RjA+xZQCAri/XwQwMDBFLcvXxUlAmz5BnfrlhCWevQ rf5578T7f/u26qGjT69sjCE+WyVjTo/Vb4v6MmIdBlze6OCx3satI8zOqeMEAsJAHkPM EKn+A+SUJhWY6TB3EM32gTdjJvxONpL+Krb1AoaX9y/+QUm7efngsQp1Aj5i9l2yFfaf Ip2/Jzk7byH0u397sH+0+YTpLnfrsSTIaHME6IOkULse3WAz6+ATEPiSioFZ5xzjBHQe KQztdPW7lnGLGGR0ji+vNOYt3yxPr8JhAB4LccBIlVBvgrjMo8J6MsxAwv+b4LCa/01V svaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=haARCOzI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k137si5694656oih.226.2020.03.30.01.42.02; Mon, 30 Mar 2020 01:42:14 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=haARCOzI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729693AbgC3Iln (ORCPT + 99 others); Mon, 30 Mar 2020 04:41:43 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:58018 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729398AbgC3Ilm (ORCPT ); Mon, 30 Mar 2020 04:41:42 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02U8cY2H004211; Mon, 30 Mar 2020 10:41:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=TK4u1WfehPW/zTgGPri0+DBcitevXxC+wyU2msRkqLE=; b=haARCOzIV6JQ+tAcVZlz8BpMryuDuyD+MIM5yzWhK2sLg+LcWgwX7//pi06HrOv8dlSm ahtx50aKnPSU6kt8bwLwo2hDIxlOdB7UUqlhW2sV77fT+630hZqWJn1gQzR7NZOb5sqW qAQkhg1KPCp98qTBvAvXFbrH/oQcv5yPCyg0EY5fWTFs9+zRgTST2L00uBGoNqbzY+EF xJQNmMHfEozvdYGbbjBn6VJQv/qurMx7VzBHtLmnTLUgnHNKT8XDVXDWNW5z4PTOStCe AsfiydvTXfTPAwbRuandEuapAd9oA3o+4qL6/aeELUk30KA+60dq7YrOFmcrLH73aZca AQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 301xbm8cu2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Mar 2020 10:41:36 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 807C4100039; Mon, 30 Mar 2020 10:41:31 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 734772A4D71; Mon, 30 Mar 2020 10:41:31 +0200 (CEST) Received: from [10.131.224.211] (10.75.127.47) by SFHDAG5NODE2.st.com (10.75.127.14) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 30 Mar 2020 10:41:29 +0200 Subject: Re: [PATCH] i2c: i2c-stm32f7: improve nack debug message To: Alain Volmat , CC: , , , , , References: <1584642115-15378-1-git-send-email-alain.volmat@st.com> From: Pierre Yves MORDRET Message-ID: Date: Mon, 30 Mar 2020 10:41:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1584642115-15378-1-git-send-email-alain.volmat@st.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-30_01:2020-03-27,2020-03-30 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello guys ! Reviewed-by: Pierre-Yves MORDRET Thanks On 3/19/20 7:21 PM, Alain Volmat wrote: > From: Fabrice Gasnier > > Add information on slave addr in the nack debug message. > > Signed-off-by: Fabrice Gasnier > Signed-off-by: Alain Volmat > --- > drivers/i2c/busses/i2c-stm32f7.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c > index 378956ac6d1d..78d40a4cc282 100644 > --- a/drivers/i2c/busses/i2c-stm32f7.c > +++ b/drivers/i2c/busses/i2c-stm32f7.c > @@ -1431,7 +1431,8 @@ static irqreturn_t stm32f7_i2c_isr_event(int irq, void *data) > > /* NACK received */ > if (status & STM32F7_I2C_ISR_NACKF) { > - dev_dbg(i2c_dev->dev, "<%s>: Receive NACK\n", __func__); > + dev_dbg(i2c_dev->dev, "<%s>: Receive NACK (addr %x)\n", > + __func__, f7_msg->addr); > writel_relaxed(STM32F7_I2C_ICR_NACKCF, base + STM32F7_I2C_ICR); > f7_msg->result = -ENXIO; > } >