Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2056855pxk; Mon, 14 Sep 2020 03:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFwInbvclAFxzJMLX+8/b0U2iphflyglTZbkp9gOJ3xSuWakpf6xnju9j8vErHQUTDUAGr X-Received: by 2002:a17:906:60d3:: with SMTP id f19mr14388624ejk.141.1600080289769; Mon, 14 Sep 2020 03:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600080289; cv=none; d=google.com; s=arc-20160816; b=mEUHTkslbglEulJppUTU6oltL26dmlfUIOM3a6s94eRIERoV/tLGaObP1GdBy5HqF0 oIrXbCTHzHmYHCTX+GPwU+AVoXt8M4qMFKCVjbsUQzJOLdRRPoIwxbae2Tb0N0QYxctq b6i+sTuFMQnFGze1ba7fY/JtOYi2K/Nxx+gG6OPwiPm355Eef3H96lgcht9p6gTP28a3 EP4DKYDSI4SZ31WnlcngHSr0fQ5EHGC2DoiUwfSAtu458hNSnduF+PuTv81Vk570kmvD JwhvTutdRjj10siNsvaPlD46hG25PsMmMZAsC97ip8Q4pCeOkinNIjE2qVWgSnXPJRKS 9Blw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=RNnrii00xxDfy5WSC9QOrCt+UuQkxyoFKEqKcUhEXMo=; b=lxnQosGnSKO1M0389KMf59AE3LE10MpfxPx0WQIJh13kKQVb2147PwczmzUP6mkab5 7fJXXY8cOa3vugT+uZwz21DScSLSqDZpfAKWvazfg8gPN6nW+y19qcWO1tKCL3BAnnhp 6crT48TyI6mma4x4UVBC1brXMrCHLT0TpF0z213AtUd2+YtHbUJpsWFChjte6tGaYCaY 9kYHsx3TJjGkJAUSLXp3SHOR45pk4fx7Le0hKvD36j6nPXytkMGJcUOMbFTVdNNTx+Mt RmFOVxMPO0BKHvof+A+xK6e4G3rwriDS4xldGh/gdbMl2nvsi27Zr3m+1NVWPaGvszne WBHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=r7kBF8tw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh1si6591947ejb.604.2020.09.14.03.44.27; Mon, 14 Sep 2020 03:44:49 -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=@st.com header.s=STMicroelectronics header.b=r7kBF8tw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726500AbgINKmv (ORCPT + 99 others); Mon, 14 Sep 2020 06:42:51 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:58465 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbgINKlZ (ORCPT ); Mon, 14 Sep 2020 06:41:25 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08EAbPc3022532; Mon, 14 Sep 2020 12:40:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=RNnrii00xxDfy5WSC9QOrCt+UuQkxyoFKEqKcUhEXMo=; b=r7kBF8twwK8B4KodrM+9KMrXviMEyE9WvUl1bXEuXdMBe0Raslk5oZf7Swm0BNWm/xIN okknJS6Fm7BUfTSnCKo81w/DxB0F1E1Z6n+7yBGKRODuS8l7Fk47oYRN+OIQ58BDurtJ 97wc6iMQ3kW3klJl+fjaa3TGZcMmzd8PZXUBAvgU6Fi5WFisqUCvWBpc6ht2NHbK6u9X 05b/dB0KKDJbIlLgLSm2EfsPozpI7sAt5jpURWFpPIMY/fI7F2OERx67bFRQF/eKk9Eh z5Is652Ud1cs8LaJEa3frs5aRqexI8sazuLckE3Zlfzc44K7NFwF4bcin6EeE1Os70iL 1A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 33gkt09ppe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Sep 2020 12:40:56 +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 A925B10002A; Mon, 14 Sep 2020 12:40:54 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 928E82ADA02; Mon, 14 Sep 2020 12:40:54 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 14 Sep 2020 12:40:54 +0200 From: Alain Volmat To: , CC: , , , , , , , , Subject: [PATCH 0/2] Avoid meaningless DMA error print & use dev_err_probe Date: Mon, 14 Sep 2020 12:40:32 +0200 Message-ID: <1600080034-2050-1-git-send-email-alain.volmat@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-14_02:2020-09-10,2020-09-14 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serie replaces the patch from Holger Assmann [i2c: stm32: remove unnecessary DMA kernel error log] (1) and the first version of [i2c: stm32: do not display error when DMA is not requested] from myself (2). A first patch is fixing useless error print when not being able to get DMA channel (DMA is only optional) and also avoid printing twice an error when a real DMA error is happening. On top of that, dev_err_probe from Krzysztof has been rebased. [1] https://marc.info/?l=linux-i2c&m=159741480608578&w=2 [2] https://marc.info/?l=linux-i2c&m=159973040314193&w=2 Alain Volmat (1): i2c: stm32: fix error message on upon dma_request_chan & defer handling Krzysztof Kozlowski (1): i2c: stm32: Simplify with dev_err_probe() drivers/i2c/busses/i2c-stm32.c | 12 ++++++------ drivers/i2c/busses/i2c-stm32f4.c | 6 ++---- drivers/i2c/busses/i2c-stm32f7.c | 27 +++++++++++---------------- 3 files changed, 19 insertions(+), 26 deletions(-) -- 2.7.4