Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp212839ima; Fri, 15 Mar 2019 00:47:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfUDaIkb/6bSqU+3YgwTptbJ7oUoTvARW1SyOAbCWJgPvCq26aTGHLl4aL9Si+r/qjsCQC X-Received: by 2002:a63:ed0b:: with SMTP id d11mr2033286pgi.435.1552636045873; Fri, 15 Mar 2019 00:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552636045; cv=none; d=google.com; s=arc-20160816; b=y/5ItR4RVUrZyV7flHzGYkOHx+Eb+JzuiEsKaIFlh26K5Oi7Lt2MfWL6oZfgGpPDlk kwWfhCTNhWHp9XaIOA00eeqzWpgPy71P4YX4jWHTmtfqClAhzhvzBaj+oHRQ4DF4puVa aAPJmWQIZt1fZlVyyNhRTJ0ZMRHMBiEr0icGDheFQQP7CG4krbRpbRo5cZLNbcDyg/lJ w7SSNyerlxloKuP8JBYw9o93Q1dN4WdzYlJeqSQmW12kCVwaMb+mL05QXuTvu1xe5kxY eG6T57hPjfjWAkzfWR9/IQwOZRS+15SVzjwhU8LbBd5az5FEsIXgxBRAydXZdWf9pBZP 6G2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=cLOjVytGL9sW3khg3Jf36ki8owKy9IcK+TWdWQNcVvk=; b=xuOPcy/LCHwvbKS8sT63aRaoKtxm7x1APghMLykR5xM2RxbU3ey6f5BjeDux9+kqN+ PtxnboIy3guryoJmmhL/P7Nren54jvi3r6W/gxfVeQaF6zuh2oBA2uIj/qoHYBnBpbXc dVD2ObSoqVxogoDkYB3Km/AtBKL/sStKXO7OKpnuuyovM3IBmLxydEoaBQsFZTam5BZz 9a/PLdAzcAnzo2WNnr1ODeqAPjoKSM5e7JcDdcxwNnQDOW0WA7xJYO126ihk6h+C0MBX fvOF2g7BNlmtcEGDqQOD79wmfxCTZXyCj71Ko5mY0YuHT7JTfUzRWZiq/fineXNWGYCO ShmQ== 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 z3si1325240pgr.90.2019.03.15.00.47.11; Fri, 15 Mar 2019 00: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 S1728465AbfCOHqc (ORCPT + 99 others); Fri, 15 Mar 2019 03:46:32 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:44713 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbfCOHqc (ORCPT ); Fri, 15 Mar 2019 03:46:32 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h4hXm-0003dG-9L; Fri, 15 Mar 2019 08:46:18 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1h4hXg-0002pd-7H; Fri, 15 Mar 2019 08:46:12 +0100 Date: Fri, 15 Mar 2019 08:46:12 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, eric@anholt.net, stefan.wahren@i2se.com, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, andriy.shevchenko@linux.intel.com, vz@mleia.com, matthias.bgg@gmail.com, yamada.masahiro@socionext.com, tklauser@distanz.ch, richard.genoud@gmail.com, macro@linux-mips.org, kernel@pengutronix.de, slemieux.tyco@gmail.com, andy.gross@linaro.org, david.brown@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, baohua@kernel.org, jacmet@sunsite.dk, linux-serial@vger.kernel.org, linux-arm-msm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 39/45] drivers: tty: serial: efm32-uart: use devm_* functions Message-ID: <20190315074612.i6hxyrxs4lhbn6d5@pengutronix.de> References: <1552602855-26086-1-git-send-email-info@metux.net> <1552602855-26086-40-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1552602855-26086-40-git-send-email-info@metux.net> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Enrico, On Thu, Mar 14, 2019 at 11:34:09PM +0100, Enrico Weigelt, metux IT consult wrote: > Use the safer devm versions of memory mapping functions. In which aspect is devm_ioremap safer than ioremap? The only upside I'm aware of is that the memory is automatically unmapped on device unbind. But we don't benefit from this because an UART port is "released" before the device is unbound and we call devm_iounmap() then anyhow. So this patch just adds a memory allocation (side note: on a platform that is quite tight on RAM) with no added benefit. I didn't look at the other patches in this series, but assuming that they are similar in spirit, the same question applies for them. Do I miss anything? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |