Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7389645pxb; Thu, 18 Feb 2021 08:50:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXnAUV1jLbUDGscyVqBxNiQ1ReuRMRNjDnpu94GIbs/13lefzUP0dggOTPfvbYwFsFO+hB X-Received: by 2002:a17:906:5846:: with SMTP id h6mr4722728ejs.521.1613667024123; Thu, 18 Feb 2021 08:50:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613667024; cv=none; d=google.com; s=arc-20160816; b=OPfxV6Ihy93852Sz5cBGvABfNS6X9XC/JM5MxGlfj0lLpP6/4RhbKqjPv7uD4yzAdr cbVdc9jpRr9ciFxc4JracltLy14Lcv6HrMY6DJPbXz7wzVdPVCmXmJDTJQaGio12un1n tUg00cVleYzwg1JlcfGMjrXyXoAtJM4WvCzpakdveEFPfaV2EZehj7PQ5FDe154km3xe Vp0VNUuVMzMFxCZzks3ynrPTTCQFJgkiDferj9DwT09OxIR/WOBxbn89ByTnuDb3OILb kfHgQHho2lSGbb0TsBP/1W8WnGSJqRACHFj0VKN6G8SuecbZa3qOMFiKAReHxZnl/VOF dA1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=EM/+lPR7ISzb5efrkW8kARF15+RScdFix+qp/DYH2zE=; b=cnX9evAeODOtyfgYPF0hRAF22GGLk4Z1iE6q2eoOTlXj7kHAsyhqJKYcnHbMWooHYo M/HErs+iBExZ7meAPhuYWd7Gl9m03RmgWXeC0UNk+a1Vxmf7pRc0ORZn7RZlApa0AvbN oD0ExrWxHhZbA5qYAWKcF22Wglh6BJJ15BUdfoKSaHN5Y7ihqHIQUlgYZrBcw+ehIr1L vTksm98Y0DJvElX1OPVK+Iyeuw5IpxwgaF8pEHN9HIaeSjwC4gZD5IelQoQX7liMAi7W maWq4o4/imuA+gXThg5zGcWLttMTrrdK7DcB6UENK/b6BdxFyLqblpdDrUGmZHn+NZXp 5OqA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si3978085ejj.483.2021.02.18.08.49.59; Thu, 18 Feb 2021 08:50:24 -0800 (PST) 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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231995AbhBRQqc (ORCPT + 99 others); Thu, 18 Feb 2021 11:46:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232915AbhBROCT (ORCPT ); Thu, 18 Feb 2021 09:02:19 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B64C061574; Thu, 18 Feb 2021 06:01:32 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id B9663419B4; Thu, 18 Feb 2021 14:01:23 +0000 (UTC) Subject: Re: [PATCH v2 20/25] tty: serial: samsung_tty: Use devm_ioremap_resource To: Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Rob Herring , Arnd Bergmann , Olof Johansson , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210215121713.57687-1-marcan@marcan.st> <20210215121713.57687-21-marcan@marcan.st> <20210215185135.onivzktfscv5myh2@kozik-lap> From: Hector Martin Message-ID: <20274436-7275-9734-5a07-d6da46b45c5f@marcan.st> Date: Thu, 18 Feb 2021 23:01:21 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210215185135.onivzktfscv5myh2@kozik-lap> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/02/2021 03.51, Krzysztof Kozlowski wrote: >> Also fix a bug checking the return value, which should use IS_ERR(). > > No, no, no. We never, never combine fixing bugs with some rework. > However devm_ioremap() returns NULL so where is the error? Sorry, this was a commit message mistake. The code is correct and so is the patch: just the NULL check is correct for the previous variant and IS_ERR is correct for devm_ioremap_resource. I confused myself while writing the commit message after the fact. > Did you test your patches on existing platforms? If not, please mark all > of them as RFT on next submission, so Greg does not pick them too fast. I unfortunately don't have any Exynos devices where I could test the code (I have a couple but no serial connections, and I have no idea if mailine would run on them). I'll mark v3 as RFT. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub