Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1216118iol; Sun, 12 Jun 2022 09:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXi7oHiUd65Dv1kC3MBISnUtJDDYYnlIZDV9T5UCslKhulSpz25uAFhHWQvWElmSHvJHK5 X-Received: by 2002:a17:907:7e90:b0:704:b67d:623e with SMTP id qb16-20020a1709077e9000b00704b67d623emr48855741ejc.634.1655050509832; Sun, 12 Jun 2022 09:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655050509; cv=none; d=google.com; s=arc-20160816; b=dp/zyCMr683cxs5H2tFSL7xHQolTowPfP9VTIr9vg/Hn0nryVArdIdj96JnLOjcuiT xUKo+v29hVNO6GnDB1F0+GS3xjnrHHvOkJ4sQ0O4xcvvMtAZ7cQQ1GgpWv7wpps5Wd/s 7QkLoiXrn+jvaYSj70TIhcEF+VeY3LoTZSe8HkvMCYmV5gFqX/NYTMEAwDeeCOhu0lR1 pZM6vMmxep6RvO48QT0xD7nnsHjLtgksSqnC/Hj1CPV5wXtAYqlzsJVlP2U0wWJJnMtP 6v2naz1iBtiEWs2yDk4d4PhXhNbOO7FGQBA5b2qRQ2Np2amoXChcaulaor+p1UWYbDAe xTxg== 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:organization :from:references:cc:to:subject; bh=ltWbV018+PWNAqLzOCC4Lhx7pW1lzHPZL0G+P8PdlDM=; b=QMBwoNFq6AS68hIgQo42EKObCNY+wl7dFau0d4YYbosf4hsvxZTFnYSnqNKCZ8/d3g NcRBYUOei86dP3SoP2vEdg/otoVZVL4g/zz5P7m8gJn5J5Dlds2opS4TglOdM/bgsYuI XsEuvbntU3FOsKT/Q2NkAUtlauoKMliBqTQhis8R97A+14UEussQGyU0TPAkugKMRKAD /oT+XOtCQdjgdQQLUTt5xQdbpAHlMPcbR5GtRvQWhwB5fRexab/WzOWidM395nDT5HG+ Akc/6mAXTFebRym+wEqwFuF1pyhuSE2FrcbquNgfhh41V5kxy+rX2IQreOZRjYZYvLLO 0IwA== 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 dn21-20020a17090794d500b00711f7d60f41si5793103ejc.856.2022.06.12.09.14.45; Sun, 12 Jun 2022 09:15:09 -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 S235565AbiFLJHG (ORCPT + 99 others); Sun, 12 Jun 2022 05:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiFLJHF (ORCPT ); Sun, 12 Jun 2022 05:07:05 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6070B517EC; Sun, 12 Jun 2022 02:07:02 -0700 (PDT) Received: from [192.168.1.103] (178.176.77.14) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Sun, 12 Jun 2022 12:06:53 +0300 Subject: Re: [PATCH] ata: handle failure of devm_ioremap() To: Li Qiong , Damien Le Moal CC: , , , , , References: <20220612073222.18974-1-liqiong@nfschina.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Sun, 12 Jun 2022 12:06:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220612073222.18974-1-liqiong@nfschina.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [178.176.77.14] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 06/12/2022 08:42:42 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 171069 [Jun 12 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 489 489 b67d2e276d358fa514f5991440453e6a402e3a26 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.77.14 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.77.14 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 06/12/2022 08:46:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 6/12/2022 6:19:00 AM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,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 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