Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp625686ybp; Wed, 9 Oct 2019 01:25:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqykpX3E/11BhOCMykij3GsOBN/lEZc8X+RdDpey9D1Ou7pyytd34vHZTO1YQa5hpChAL141 X-Received: by 2002:a50:f296:: with SMTP id f22mr1815723edm.69.1570609549995; Wed, 09 Oct 2019 01:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570609549; cv=none; d=google.com; s=arc-20160816; b=Q0298YwUenqIY0uWdRgEDp1rbCp/bXszLVbN/0fsXvlfw/DDBVJJVyJxti07jezPs4 gO9vgTygC75m6dcXDCHjtZTEuAkZCWC0CrMm0Bm0OciT1rGpJTmFPpzAqdxc7KpKNBFL 3uoqj7V1Txcg1p32fqJ6odqGLEIdq57UhpKVKidxqrMNXGz9Jz3hTpKCUzOo4tJRnxVH 3uyX4wHs1bNV240xWyGvwF/jDk/Kw+k71MFVwO62BOLqCKP2ccxEqPh+xKhj+0ctnJhj KG830/TBq0t2NMqbSQjLEe4h5l3HdglYSBIQMVLlYKoimJbA8+06b2q0QaLxKunCuJ4I WBcw== 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=9fj4lCcEO/ialpyoq7x9gIPvsyDVtNALYj40csaNqDA=; b=qjy+0OoYp47JuT3vGm+rmN8YrUbWQA/eSIC5qmN8xyfI6lfiTMCyVuOsX4SxVvuvlI kcDhjygLe7/+Q8Qqje1N4hu4LsFPNqt/JA5IB8rsPvM1ut65HyTXgMmQ3tZVGToiIE2N mchH0LnozB22ed0L1ytwyWVS/aXREzd9j1g2RUdC1f9jAxqRdP8ahWU0NJs270JK/6qY sy4KYYnoygC5n3wnI8mBkB8Q2PGSQzMHrUwIsng2/Cb7+bMTE3mZPjrrLYCXPWPux63z CnU+XpRwuzDEYRac49F85/+dkKlT12XxKE7NrGNwxOx31RS/M9qh/79poKrhbxtGCreR Sx+Q== 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 x51si850872eda.272.2019.10.09.01.25.26; Wed, 09 Oct 2019 01:25:49 -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 S1726734AbfJIIZE (ORCPT + 99 others); Wed, 9 Oct 2019 04:25:04 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:36891 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfJIIZD (ORCPT ); Wed, 9 Oct 2019 04:25:03 -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 1iI7HI-0002TE-DS; Wed, 09 Oct 2019 10:25:00 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iI7HD-0006LE-Q6; Wed, 09 Oct 2019 10:24:55 +0200 Date: Wed, 9 Oct 2019 10:24:55 +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: <20191009082455.5hqhotkbozsr7mgo@pengutronix.de> References: <1570410959-32563-1-git-send-email-Anson.Huang@nxp.com> <20191007080135.4e5ljhh6z2rbx5bw@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: 09:48:00 up 144 days, 14:06, 97 users, load average: 0.05, 0.17, 0.14 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 Hi Anson, 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%2Fpatc > > > > > 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? Regards, Marco > Anson