Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3212380imu; Sat, 24 Nov 2018 00:13:22 -0800 (PST) X-Google-Smtp-Source: AJdET5fXHugdE5jG07O2rTNd/z4V290j9c4tVGgjBhMJh0XGmjbVkOfgvkBWLwXULDNCBKLLLdwC X-Received: by 2002:aa7:8552:: with SMTP id y18mr19694395pfn.83.1543047202088; Sat, 24 Nov 2018 00:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047202; cv=none; d=google.com; s=arc-20160816; b=EsbqiuB8N4kJds17nptLiRzqGYp1t9IbdMt18PbHfnPLN7gpFD655LoLsRVGeoknEj dGOi85UvRjuEh/QRHrCg4b0oJtUDJFl7rp23z3V3HaMdaGVX5Y7kBIPz/dch2iN9FNyt JbXBs8GJyAg8uSN7XjuRhFw5QOwZ+RjVv4ta3AZKZspB17OeJ2x0z3djYA4R6Gg4lduA Bs/lXa5P6CxGDpNPVyv6pKpg/W3DG2piZyK54FFXwEAdSaHX4RrOJFA8+P/nA6IQWa2P 91E88hz3XJuq1J6LA1tJvsZ/GZQtyH6WTTRp0vM0Ng3pFTn5rL6puFQzpqxlWgbdKu71 jUrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bVYE1kM8/tkAdRB2hoygHwL7KcOLq6sWNUblLUL4fRo=; b=e1JaMtGzxvKqDNL/NZuOEBCKEXUq0y1S+8hjMqN5NgrnixNbCLS5uBUq2NS+JWlE47 Y79n6HITwGIl1N5hbgYip+uyitNSlshGpZhdRPrgHIdnyxAP2OCbhfn6TOQukrb0X9LX vWCbgIjgalbDKe0go5KIWQDW3ljStj7avAkxguL6WJ8CcHyoWWUSC+ZqyDNd0zt+Lp/J dHhJFDMvQ25BVdb1YxC3dxyuQ5CkdvO7/NiljTjv9+JdUUUQx4VBEqR0gY4fGkctk/Ou gAHFQpknSRJvzDAhyX+909KCWc4hjbK8GuCZX9KQhtFLi2xGGL6/f5FtcwpRzux4uBjk +Nww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JL5ApAiW; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si15479717pgd.68.2018.11.24.00.13.07; Sat, 24 Nov 2018 00:13:22 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JL5ApAiW; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502527AbeKWTmi (ORCPT + 99 others); Fri, 23 Nov 2018 14:42:38 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:34968 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387605AbeKWTmi (ORCPT ); Fri, 23 Nov 2018 14:42:38 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAN8xB8r039858; Fri, 23 Nov 2018 02:59:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542963551; bh=bVYE1kM8/tkAdRB2hoygHwL7KcOLq6sWNUblLUL4fRo=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=JL5ApAiWhBQf8E8M38+Mvjh6EmSGByw3JTxgxZWQ11Z23U8ZR7B42PEbdgRy1mSQX mgFO57Zs3pMiYH8i/xfj2LvHvZw7d6TTnIdqn01vcsyh06lPCswEa32F8yfcrH3cJ3 P3LCNG7Qeu2Oeu+jNtP8gcxYXqdwAfVRy0XuysJg= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAN8xBUM115615 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Nov 2018 02:59:11 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 23 Nov 2018 02:59:08 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 23 Nov 2018 02:59:08 -0600 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAN8x2bo017642; Fri, 23 Nov 2018 02:59:03 -0600 Subject: Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API To: Arnd Bergmann , Roger Quadros CC: Tony Lindgren , Rob Herring , Beno??t Cousson , Santosh Shilimkar , Ohad Ben-Cohen , Bjorn Andersson , Suman Anna , Sekhar Nori , , , Murali Karicheri , , linux-omap , , Linux Kernel Mailing List , DTML References: <1542886753-17625-1-git-send-email-rogerq@ti.com> <1542886753-17625-12-git-send-email-rogerq@ti.com> From: Tero Kristo Message-ID: <5863d95e-fec2-71f9-03c6-544d23369bef@ti.com> Date: Fri, 23 Nov 2018 10:58:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/11/2018 10:20, Arnd Bergmann wrote: > On Thu, Nov 22, 2018 at 12:41 PM Roger Quadros wrote: > >> + >> + if (IS_ERR_OR_NULL(rproc)) >> + return ERR_PTR(-EINVAL); > > > Any usage of IS_ERR_OR_NULL() tends to be an indication of a badly > designed API. Please change this to allow only one of the two to be passed > around. Should this be deprecated then? -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki