From patchwork Mon Sep 14 10:40:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 11773505 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 92E4659D for ; Mon, 14 Sep 2020 10:41:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F6BA2076C for ; Mon, 14 Sep 2020 10:41:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IW60Iz3w"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="r7kBF8tw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F6BA2076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=jsraRXh8WbHOBD3DpxVm0YSJxAeZyqMsNDxnqi//rWU=; b=IW60Iz3wTt/5cIUYWXYWQca5G8 6IOeZEJXYA7zKTJJ/vZkWqzZ2q79Cmu/8jzGJ6PlQkFibJPJdyd0Qd/K7U9CK+GuJGZlqGHWRcEVx sRrnIRzUZo8N/FlmXuoiMCf5uE26MNUtlZzqCzS46hgA1/18LwxVti+3nj7cNMgzfcbdj92/Dl95H PjRzVgu61+Hu3QeTG/z9DgAKmao1ntnwg6jph/ku9qAvG8EAWGV+OYTtLNfMA7kDfc3glLCZoteJX yN+zdYT1iESe2uNGhfZSL0zYKcYsghYK0Fcr5xiXL1UG1W9+5Xd3gaKk69hOJeORrTgcZlNhIZTtA Nn6nbQFQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHlv4-0008JF-Hf; Mon, 14 Sep 2020 10:41:10 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHlux-0008Hs-3m for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 10:41:07 +0000 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: , 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_064103_384084_9FA6397D X-CRM114-Status: GOOD ( 15.23 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [185.132.182.106 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: h.assmann@pengutronix.de, alexandre.torgue@st.com, linux-kernel@vger.kernel.org, krzk@kernel.org, alain.volmat@st.com, linux-i2c@vger.kernel.org, fabrice.gasnier@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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(-)