Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1201023iol; Sun, 12 Jun 2022 08:51:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf1BlYdxgujXwKX2syQAETmYxqWHe4zHr1vRtgf9x4Jsw63C9vtlVpJk2JB660iGJAc2+D X-Received: by 2002:a05:6402:22ad:b0:433:d474:1fb with SMTP id cx13-20020a05640222ad00b00433d47401fbmr8544510edb.129.1655049083706; Sun, 12 Jun 2022 08:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655049083; cv=none; d=google.com; s=arc-20160816; b=DciA6zlDyEQvYdgZxwKTvG2poT2yRftouEBAuqCNzPiHzWnSV+79EUz7h637d+yMOs 9yiBXYmgMIMdxwm4vK/cV4KYuLm8zZQNqjmTFpS3+Fa3pyAapO47BoX1wbS/AHNAzcj9 V3/XlAxuqnnBsvr/3FMZb6J5Hn/hFyufFwJM5dKp2Uzh8Kbi/pGBjqipEzU1Tjy1hAiV rT9MzAw77M0RvzifhvcIlsAYqcwlJTo8SjagEEHWVeb3DpJtUO9ixZJ2SjQFEEr1853n Wi3APZETf/rqIGemssE/38PstQ4yPVonb1U1A8Dk1o+VmrnfHpQ55uDSURN+xYSvbb7b cEYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9MG0Obo8I984HqqiM7RTB0w7JoBgr9p+hyXixiHM1vI=; b=wza5mYCp61SUUblrjb5cA+eahakpeG34Nu0iaWao8AtILFFvydHHkzn3MmxC5cGzPU gBcPuhoQzhBZjwOyCmfndpQlamAmfHx0Y9ghbvIKhws040eTCY6XSAqVj1lPJjmclhGf xUcwokEEBBKq9gQ+NbFwrKFJmJGGGCyUsKvFoRhHa+XwO0aI52jABIGzL8H7OS4EnArm aR58SL87Z4WJgw8fooCGwrGEVkP3rPOYVTNaC2yQXaxZ7n9gVD66tFWvn9Vj1DanHfpg K2VSId3LRHpUbYbt9OLYK64v6xfrWCg6tnFQ8XcP/0zxAlD6PDGSgKqzEiEOSCmDHbJh C0PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb41-20020a1709071ca900b00713c3f40728si5563549ejc.209.2022.06.12.08.50.58; Sun, 12 Jun 2022 08:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236746AbiFLMeg (ORCPT + 99 others); Sun, 12 Jun 2022 08:34:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbiFLMef (ORCPT ); Sun, 12 Jun 2022 08:34:35 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 09B714DF63; Sun, 12 Jun 2022 05:34:33 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 73F091E80D89; Sun, 12 Jun 2022 20:33:29 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uN4wFlFO_cOW; Sun, 12 Jun 2022 20:33:26 +0800 (CST) Received: from [172.30.21.244] (unknown [180.167.10.98]) (Authenticated sender: liqiong@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 3F7DD1E80C8B; Sun, 12 Jun 2022 20:33:26 +0800 (CST) Subject: Re: [PATCH] ata: handle failure of devm_ioremap() To: Sergey Shtylyov , Damien Le Moal Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, hukun@nfschina.com, qixu@nfschina.com, yuzhe@nfschina.com, renyu@nfschina.com References: <20220612073222.18974-1-liqiong@nfschina.com> From: liqiong Message-ID: <4f22ad6a-81a2-d7e9-6fe8-baf5b42f12a9@nfschina.com> Date: Sun, 12 Jun 2022 20:34:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2022年06月12日 17:06, Sergey Shtylyov 写道: > Hello! > > The subject should include the driver's name, like below: > > ata: pata_pxa: handle failure of devm_ioremap() > > On 6/12/22 10:32 AM, Li Qiong wrote: > >> As the possible failure of the devm_ioremap(), the return value >> could be NULL. Therefore it should be better to check it and >> print error message, return '-ENOMEM' error code. >> >> Signed-off-by: Li Qiong > > Reviewed-by: Sergey Shtylyov > > [...] > > MBR, Sergey Thanks, I will submit a v2 patch.