Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp651805ybp; Wed, 9 Oct 2019 01:59:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDhPhdukCwSW8hcmVfGNb73ksQ0AL47IwdiOqxPjCDUFxaIVlErHdLxmxgUVa6sbC8MDTZ X-Received: by 2002:a17:906:3913:: with SMTP id f19mr1736889eje.161.1570611576528; Wed, 09 Oct 2019 01:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570611576; cv=none; d=google.com; s=arc-20160816; b=X+QLilcuxdgKHSceBXtC2S+50d5EUYO07eEP7q9MotG4ebDZwSysTfeEVRhBXhA93o R4sANl43wQium/WYC1h8VI2n49e5rrBb0UT9q2Q/MfiESHWae+MUg6eb7qIKprzNQurm NCD+xZT4ZHbDXENlxCvQyd0ABq3YtHqHjnbBaVABq2G8UvcjyHMdTubQu7gffPSfq+u5 TWWUn77hv1T/wBgdXb5J2Drkc8dJRLykGMTyOws9Dd/T1g1drWQXjgABaoAEz4hPuKJ3 bgAjEdL4sL/YGsDKaFIhdof3uOedFTSz5QlfzkE38E7f1Wy1pWaV3f0XaNe5WCcRCsn5 EUEA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m/Rdp0EPonRM4v3q5ilcW0SP2HhdCDdP69VYXvV0zLk=; b=VuPCz0pZhDFouTdyqPCVJjd7GdM7sdM0CniSBcN3JXKTQUN+98l247X4B5oLvNROB9 NdzN/WTyUyHrl4klz4fY81wZq5Y9N9lkOL2n/4UQuDdqKTr0Fsys169ELOwtqp53ofuq A1p/F0F5Ya8hvBLwHxr8eIZX7Ix4sXpRQs+2w1usLDbdloHVUFM02aoRzgtdjCPE2y8s f5gBgCBXc8gSP2jtaU71M1fCOvj/lyu3XE64gixQTyNGDOa/9GHWT+d2Gd0qrYuFYGQI jV4ccqsDq0IeiwEPB2Npa5+c/b+4XQKpEjiBuxTpqT264LLhz87fr6A2eLb/wmdUSFb7 hHUQ== 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 e49si998975edb.87.2019.10.09.01.59.13; Wed, 09 Oct 2019 01:59:36 -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 S1730166AbfJII56 (ORCPT + 99 others); Wed, 9 Oct 2019 04:57:58 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:43833 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfJII56 (ORCPT ); Wed, 9 Oct 2019 04:57:58 -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.92) (envelope-from ) id 1iI7n8-0007JL-1z; Wed, 09 Oct 2019 10:57:54 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iI7n5-0007Mi-MT; Wed, 09 Oct 2019 10:57:51 +0200 Date: Wed, 9 Oct 2019 10:57:51 +0200 From: Marco Felsch To: Anson Huang Cc: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Aisheng Dong , Leonard Crestez , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH V2] firmware: imx: Skip return value check for some special SCU firmware APIs Message-ID: <20191009085751.h3voimqz25kj6lh2@pengutronix.de> References: <1570410959-32563-1-git-send-email-Anson.Huang@nxp.com> <20191007080135.4e5ljhh6z2rbx5bw@pengutronix.de> <20191009082455.5hqhotkbozsr7mgo@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:56:52 up 144 days, 15:15, 97 users, load average: 0.27, 0.09, 0.08 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@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 On 19-10-09 08:28, Anson Huang wrote: > Hi, Marco > > > On 19-10-08 00:48, Anson Huang wrote: > > > Hi, Marco > > > > > > > On 19-10-07 09:15, Anson Huang wrote: > > > > > The SCU firmware does NOT always have return value stored in > > > > > message header's function element even the API has response data, > > > > > those special APIs are defined as void function in SCU firmware, > > > > > so they should be treated as return success always. > > > > > > > > > > Signed-off-by: Anson Huang > > > > > --- > > > > > Changes since V1: > > > > > - Use direct API check instead of calling another function to check. > > > > > - This patch is based on > > > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F > > > > > patc > > > > > > > > > > > hwork.kernel.org%2Fpatch%2F11129553%2F&data=02%7C01%7Canson. > > > > huang% > > > > > > > > > > > 40nxp.com%7C2de0a6be69b74cc249ad08d74afc9730%7C686ea1d3bc2b4c6f > > > > a92cd99 > > > > > > > > > > > c5c301635%7C0%7C0%7C637060321046247040&sdata=RMFAdLKGKb6 > > > > mEdhycrzHX > > > > > R03E6Qr5pWyRc8Zk6ErlBc%3D&reserved=0 > > > > > > > > Thanks for this v2. It would be good to change the callers within this > > series. > > > > > > NOT quite understand your point, the callers does NOT need to be > > > changed, those > > > 2 special APIs callers are already following the right way of calling the APIs. > > > > Ah okay. I searched the 5.4-rc2 tag and found the soc_uid_show() as only > > user but this user sets the have_resp field to false. Is this intended? > > I already fixed it and patch applied by Shawn, see below: > > https://patchwork.kernel.org/patch/11129497/ I see :) So one last question, please check the other thread. Regards, Marco > > Anson > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |