Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2036894rdb; Sun, 19 Nov 2023 23:04:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8AAtphm7lttZziMUmME6Ix6M2QhtyypM5Y9EqWYGLQ5wUP2mL7mnKuyNkCD9Z/NtAn8Cy X-Received: by 2002:a05:6a00:c87:b0:6cb:8c5e:6bec with SMTP id a7-20020a056a000c8700b006cb8c5e6becmr2158097pfv.9.1700463895126; Sun, 19 Nov 2023 23:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700463895; cv=none; d=google.com; s=arc-20160816; b=xnhyl6uiA9ZlamKQskZ0O46bdUjUW+eYANgeho2nkC1zZ46DO+yO72vQi+2GqJh7pT BCOTV8h6gxR1TNQbmViC0lYt9BZwZwbfnqV63bd6EUqpqtGjz8s0wzhRm34a3Uhh+Kqs bVc+GXOuhsUadyucwjoX0Tn2+k/HjFGS/p6uoAOEYfaIKYy7gsAxImKWAF4KNeYfy1oH fk4pG+zvrFLDajBlv8Az1+yR2YbiZTEMtzPbvZtvvrll+Cc25WsQyfTpmxAdaBooT0/r XFRkr8ZUMqKqx4IHhihQ4kStUadutiLFDhkBGFgahkYuaereyhZcWVTRwl3DFIjMexzy FdlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id; bh=IIphv9VW11zFXMl7jsmw1P7l0i8fED+G62bM1MMQeZk=; fh=AABRa0u2HwQYXqFqRibKrLSxEW+8nAyO8u1K9cTwRBE=; b=EX1+DM6XfuHTbmgD6JdyHhO6xxBqZJR2jiZ3NJ1p0jnb81Uh0SXNcUy42qFQDq3eht mAkhIqsb/MeCMbQgPtsBl9LAfnYAba8M7oDsCJYte80C+TgzYOCAVtcvuaYGLc4uu8Gq GPa4yfrWRLqOM0IY7iOLA5J/FkUeCoPsVaD/L7blqQxrcdLMYR8HWjGZ8MZ5bEFBxsir aMtaNfrq51BCIafJGdxSTSk+YOhiwFKN1Lf+3fBECaMfk3eI8OlAeQ2Sg8cQ0lvQYl9n EZa+lfN8KsmgkNpOCjSu3vVvC0lL1fKSWHv4/WR2pyF0ezmgW1J1p1vxTeZhEmOg8tct QMKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n14-20020a63e04e000000b00578a44df6c1si7683357pgj.640.2023.11.19.23.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 23:04:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B500A80A9AB8; Sun, 19 Nov 2023 23:04:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbjKTHEr (ORCPT + 99 others); Mon, 20 Nov 2023 02:04:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjKTHEp (ORCPT ); Mon, 20 Nov 2023 02:04:45 -0500 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876D8A0; Sun, 19 Nov 2023 23:04:41 -0800 (PST) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40838915cecso13406915e9.2; Sun, 19 Nov 2023 23:04:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700463880; x=1701068680; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IIphv9VW11zFXMl7jsmw1P7l0i8fED+G62bM1MMQeZk=; b=E9a9saTqF03IM+YSMNeYcTSBBVdRMgvKxJV4xJLAskYQEeue8b44jXErdDXs2z95Wc 7ZdkRYzQ0cyWqbAgqmoaWVx1v3+0pQkHgTeNSR9LGm7milL5POzxO7St1lHimwL/9Uef A8zFQmYgErEgbLx+46VYsaWhqY203ByaK7SwndwIoCwfFkAR8HgCtCkZipxni1gaFrTL l8Mp79Uju2EDFd7zGEmUGQUQ08Pc94foniGzDJVa+Q2Rmj2W07fkOoseEXoLiA7moK71 iXJwyykuvfelSLxr2SyVrAE+H6UODnerhJVPb9I3JNlKFw7WLt9GHTYxTdpTMbZXQCVm lpFg== X-Gm-Message-State: AOJu0YzFxQtzRMVda1k++D6q7Z43nfADzIKkOW5VnFKQJySfoefTxz/k ekw0LGSGwf85CUUPYlOC1ck= X-Received: by 2002:a05:600c:35d3:b0:40a:4609:9cbd with SMTP id r19-20020a05600c35d300b0040a46099cbdmr4592814wmq.13.1700463879323; Sun, 19 Nov 2023 23:04:39 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id c7-20020adffb47000000b00332c0aace23sm5316117wrs.105.2023.11.19.23.04.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Nov 2023 23:04:38 -0800 (PST) Message-ID: <5c2ec2ff-459e-4bb7-b287-8a06005c86f5@kernel.org> Date: Mon, 20 Nov 2023 08:04:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] serial: atmel: convert not to use dma_request_slave_channel() To: claudiu beznea , Christophe JAILLET , Richard Genoud , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: Content-Language: en-US From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwNelBCHEgS/OAa3EJoTfuYOK6wT6nadm YqYjwYbZE5V/SwzMbpWu7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IEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 23:04:51 -0800 (PST) On 20. 11. 23, 7:14, claudiu beznea wrote: > Hi, Christophe, > > On 19.11.2023 17:55, Christophe JAILLET wrote: >> dma_request_slave_channel() is deprecated. dma_request_chan() should >> be used directly instead. >> >> Switch to the preferred function and update the error handling accordingly. >> >> Signed-off-by: Christophe JAILLET >> --- >> v2: Also update atmel_prepare_rx_dma() >> --- >> drivers/tty/serial/atmel_serial.c | 16 ++++++++++++---- >> 1 file changed, 12 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c >> index 1946fafc3f3e..6aeb4648843b 100644 >> --- a/drivers/tty/serial/atmel_serial.c >> +++ b/drivers/tty/serial/atmel_serial.c >> @@ -1013,14 +1013,18 @@ static int atmel_prepare_tx_dma(struct uart_port *port) >> struct device *mfd_dev = port->dev->parent; >> dma_cap_mask_t mask; >> struct dma_slave_config config; >> + struct dma_chan *chan; > > There is no need for this. How'd you avoid crash in here then: if (atmel_port->chan_tx) atmel_release_tx_dma(port); ? thanks, -- js suse labs