Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2529107rwb; Sun, 6 Aug 2023 21:35:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+AMNi997J4hofhZ3gjTzHcL27TgZ2klFGMRebYHq9+sNMEOuOu5mjaTRBl1Wo6WcZ6wvG X-Received: by 2002:a05:620a:371a:b0:76c:cb21:179f with SMTP id de26-20020a05620a371a00b0076ccb21179fmr9810592qkb.29.1691382950159; Sun, 06 Aug 2023 21:35:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691382950; cv=pass; d=google.com; s=arc-20160816; b=kEq9EmKHJg9UqqB0ZbKvh13dsWaFDlbhGDeLbX6z2jQrCi1IyhD5vsK40+m/MvlBKP z6L1b9/0d54AvEmaHacO1aABEJuzSBZKxk61dzXuDwdA1dRO1dErkrjS+UyJFtb7SSiq pfHI8OZIUn4wnmHXWOqGxc7nx3pY4KYuf+glQn4VR6URb0ME26wbtbfLK7XhCgVKuwR0 1F5inxUxhZhAzUJKMHfeiJZ5iatZp2enjaYO3taYzFmMWmB4KKZbpgSyqSPRRFsloYjW 6ucfxkOAYLYHrixzZBlqAskZ64bh1e6x8E5kGcYE1LBghhCfGSAyd5CnaraN973XeiVI C+XQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=pSnhIXHZqLzaZemwCYnQ6kgfCieZkYl3WQVdgcsW0kc=; fh=D2q+WZgKIBUdrBFGIyCZMAX9Ela/PSXO/fZkvJRI4Ws=; b=c8AX5YAGvZDlDKUwVOklH8MYtRbczh60F01SI+0u6aZrhubUdTVfrYECtlOiVDxEdO e2G25qJT8jHEXRwOXXbnKc/4XdA1M8hje/v+iIv36woi5nwjUCJwvDl+xhNMidqFhrG5 Vd4E6opzHGF93aBO4mEEY3cn80678suSOaTHdTBGHpRbVEsXwAsUimWUJ2LhTk4NG+4P 4mYiI/ScD+ehXOLqBnWarhRvFayeEiLZDUo48fx21YFTr2blGCKIPK+kaJ525n0xh2/M oqEE1tEtGUKHdFm5SjzonWaM/JqwDxWh5FwFSOMznmPwEc9n/uK4f9FgtkagO/RtpZ3Z KZww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="l4r/Q3l5"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v64-20020a638943000000b00563e860de08si5055055pgd.751.2023.08.06.21.35.38; Sun, 06 Aug 2023 21:35:50 -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; dkim=pass header.i=@nxp.com header.s=selector2 header.b="l4r/Q3l5"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229551AbjHGC6k (ORCPT + 99 others); Sun, 6 Aug 2023 22:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjHGC6j (ORCPT ); Sun, 6 Aug 2023 22:58:39 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2062e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe16::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4874D1BD4 for ; Sun, 6 Aug 2023 19:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LPgspxCYUnPMxnOVLNlzWU7aawQ7TkgHn4Hj0nd7VEdKPMlICNgFYnoP31HqnkULxc6AHCfqC7BBsxldJ/f30MTFmNXR+usPspMklyjdoLKJIc6l7TY4Jqi6Jgy4wNSJblCTVCluP3+I9cNIaqT/cTxB1YQB7+Ci0PR2CsZ5O14smH5dDiNxC242dJ8Fs69qObBfOW93I4aPkcEee3ZYmhJwDnokKjKthgOSUHcwUV2Q9rahECb5NJhgt3XzGJiVLqdDXvN6psTIYoLSTamNBEqTFdqNz9lbaPT7dn46ZY8nkDwMmogryiqTehCcYzBu+S7QpNrx9yHHhWy7Zlgexw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pSnhIXHZqLzaZemwCYnQ6kgfCieZkYl3WQVdgcsW0kc=; b=ALMUzm5bzz4lc93o3Qswc9tUXGycV27cRRwCM7MVxaMx6Op/oA4SUU1VK+dfB9A/oRy8QcEto8Kg0ZSg1mHLvJt8SqQVRQh/o2ZkworK4LsTToL6ImOuVCOG0y68AKI9vRae1XfZ61hOGFgGE3KzuNshqss0NgO9mg6YGOm8kK4vOi4GGkoE1esr7RQYcDHFhtkkyBaNR3xo0JRjjtpIuKMVUZ16/NgMHTQV3zG1W+s3gMux+7nH8jfBHn+AyxWCHZGmB6vEWHe6XdZX93rTalUxU20/K6+ORlubaoBydIsH5BOp7H6zUlpPaUk904OywsMzhpQpbFvuGfmy0UKJrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pSnhIXHZqLzaZemwCYnQ6kgfCieZkYl3WQVdgcsW0kc=; b=l4r/Q3l5VaaARD/6HZ7ILqRYWhhKh8tXFxg1DD5LhE/5x4TOeGaDmTiAaz5d9qFNKyZhKLQ2Oe5fpAqQehOuBr+M1u9GPAbpNmOwNFxM0LU7mTNQw3IjaltbMUFJgwGV1fmcVpILEKsJB23vv3bkyUqEheKL0KeWRAWP3xvvJhk= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS4PR04MB9508.eurprd04.prod.outlook.com (2603:10a6:20b:4cb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.25; Mon, 7 Aug 2023 02:57:18 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5d6a:ec53:f2a8:5b97%6]) with mapi id 15.20.6652.025; Mon, 7 Aug 2023 02:57:17 +0000 From: Peng Fan To: Shawn Guo , "Peng Fan (OSS)" CC: "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , Aisheng Dong , "alexander.stein@ew.tq-group.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH V5 5/9] firmware: imx: scu: use EOPNOTSUPP Thread-Topic: [PATCH V5 5/9] firmware: imx: scu: use EOPNOTSUPP Thread-Index: AQHZw41v9JxAHPEEOku28K+vqFT2QK/eLcgAgAAAl5A= Date: Mon, 7 Aug 2023 02:57:17 +0000 Message-ID: References: <20230731090449.2845997-1-peng.fan@oss.nxp.com> <20230731090449.2845997-6-peng.fan@oss.nxp.com> <20230807025412.GN151430@dragon> In-Reply-To: <20230807025412.GN151430@dragon> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR04MB9417:EE_|AS4PR04MB9508:EE_ x-ms-office365-filtering-correlation-id: 4d8fdac7-cc3a-4ae2-e0b3-08db96f202d0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oNIrruT1XnZIQFSAWQ2WpfhJhRq5KeAxkUYTHMQSC4YQVCSKHaP1lCaeY2p3x8hh2xJTy6PxEhCwJyMd8SuRMAvRNgBQDLQhlfUHzWCPYgMr4PDo5j6uqX2wJ/JVaeCUheXw7zbrnXSTWm/qewuHrg0XSBWqc2XDBZwuIzIdBehR3J+S9BG6Uok8Lkw6Sm/rifkV3V5Vb1elYlLDRSozUp0cWcOrvfbMVf8NmxZVi8BHFu2n8HTLVqVggsEbLvw4pW2Dwtw6I2qT5w1IWtc04/5l2zuOJ1EI6uiaM7QVN2SUKdjaMuIRc5MoCB5cdMP//YLmlPuPGAiJkSj0xoEvV4/87+/OwyBBGZ+AKQfCpkL9P11fhP/ntnBrPqK1OUQpFDaq6wCpOhqkBzcncbkoXF4q7Sbs2dAuLUnRTzxLtkOSVhX3M4yPLeJNlWggGHkckHrHK9BaU3GgWatag7VJ70kUQEDL5BZbSYs2WUA92IsC7feMVohSnTsgCw7sZsTg15bht9vu6gGiaehZJGMPMDjx0YgahFBGRtOwY8voT1nrOEuerMozTEEVEnncc2s/jaSsLO8FMxHcCqtRgGQYv7C4aHF+3s7V957SVbO5IxTN0stvxgeq5hYleBbws3sL x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(376002)(346002)(396003)(136003)(39860400002)(1800799003)(186006)(451199021)(52536014)(38070700005)(41300700001)(26005)(2906002)(5660300002)(44832011)(83380400001)(8676002)(8936002)(55016003)(122000001)(478600001)(86362001)(316002)(33656002)(6506007)(7696005)(76116006)(54906003)(110136005)(38100700002)(66476007)(66556008)(64756008)(66446008)(71200400001)(66946007)(9686003)(4326008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?56vTm901tDRdALp8zcln4ZO3gF6W6BdolF5aPBnzyZ/nV+ptLFoWfb61h9fJ?= =?us-ascii?Q?er8RZzWaAC7dBpkQQCvx5+T466RfX/9TvSgsJfSjisVTUAXFWCClSlmhg0Tm?= =?us-ascii?Q?QXtfjBZs7ZpowE/S8AyVQAydO0w8CyjF/JicN3fK1ke1bHVQ3btwXZDAYxCy?= =?us-ascii?Q?iBmyDykrfTL2A7/Xnry28/6RSz0c65HGS06ilZEI0WtZ8HJspzLRiAjew2OV?= =?us-ascii?Q?5CuM4y1l1hrOE+teh4QJNywkl0f5sA7Y9//OA5rImWH309YdGbZFjFGfe0kX?= =?us-ascii?Q?5YcLuVpqvTeQos136ifLQF2d72Uylo4MD11NPHl6wbnbwzL0AdV75d6Xp9Te?= =?us-ascii?Q?ez8dC87bXPy6EYLWmEaRGZkVakphZuZ2xz6KP+8QeVRB1/Mesjl28fyMw46x?= =?us-ascii?Q?HLlUuST1DLq3zmFjgEPJbUagdf7A+DDV7njcljfXLTYV2JbJ8glPMUAiWFRu?= =?us-ascii?Q?LoZFybeQpsONAXeyZBA+jGFDiDL/jIJNaBaDCoAge7uUlbmUWVVe7QP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10KDKg2/qkz3L820x+41qNzpfCvCUnQzWsqVYFKec?= =?us-ascii?Q?VS2kpGbSDsLr/U0izfhObriVwKLrLIVNHkhbvpr0twUzjE/ZL2PpDXFhtD/5?= =?us-ascii?Q?5fT38ACxfMfEA8LKEpJk4bJJvpsQCRP3+Rp9uAvtEBLcWM46gg105SZpEK+s?= =?us-ascii?Q?gSOTgP+2ywnfBtiMnoY=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d8fdac7-cc3a-4ae2-e0b3-08db96f202d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2023 02:57:17.6195 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pFn7I5BY6LscgLXIshOwTRLnP2jSTYBOYASzcFztJy5/cl5FjzutTJ/TRrUusek9S2tGJlszTbfgvEh7bRnyFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9508 X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no 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 Hi Shawn, > Subject: Re: [PATCH V5 5/9] firmware: imx: scu: use EOPNOTSUPP >=20 > On Mon, Jul 31, 2023 at 05:04:45PM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > EOPNOTSUPP is preferred than ENOTSUPP. >=20 > Could you elaborate why? From checkpatch.pl: "ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP" I could add this in commit message if you prefer. Thanks, Peng. >=20 > Shawn >=20 > > > > Signed-off-by: Peng Fan > > --- > > include/linux/firmware/imx/sci.h | 10 +++++----- > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > diff --git a/include/linux/firmware/imx/sci.h > > b/include/linux/firmware/imx/sci.h > > index 5cc63fe7e84d..7fa0f3b329b5 100644 > > --- a/include/linux/firmware/imx/sci.h > > +++ b/include/linux/firmware/imx/sci.h > > @@ -25,27 +25,27 @@ int imx_scu_soc_init(struct device *dev); #else > > static inline int imx_scu_soc_init(struct device *dev) { > > - return -ENOTSUPP; > > + return -EOPNOTSUPP; > > } > > > > static inline int imx_scu_enable_general_irq_channel(struct device > > *dev) { > > - return -ENOTSUPP; > > + return -EOPNOTSUPP; > > } > > > > static inline int imx_scu_irq_register_notifier(struct notifier_block > > *nb) { > > - return -ENOTSUPP; > > + return -EOPNOTSUPP; > > } > > > > static inline int imx_scu_irq_unregister_notifier(struct > > notifier_block *nb) { > > - return -ENOTSUPP; > > + return -EOPNOTSUPP; > > } > > > > static inline int imx_scu_irq_group_enable(u8 group, u32 mask, u8 > > enable) { > > - return -ENOTSUPP; > > + return -EOPNOTSUPP; > > } > > #endif > > #endif /* _SC_SCI_H */ > > -- > > 2.37.1 > >