Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp476916ybe; Tue, 10 Sep 2019 23:10:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiinSvKZWMweSOnKm5m1q9SvgLAR4XPJ36UqwYNjluw6QRbEdxVqMaQLbNEevQtApy3Ju3 X-Received: by 2002:a17:906:1d11:: with SMTP id n17mr28490675ejh.68.1568182234840; Tue, 10 Sep 2019 23:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568182234; cv=none; d=google.com; s=arc-20160816; b=sKEB4xEPtyM0sXbui3F+TC3GVWYk6p+jwGcANDMomuZ8VqWs3mpuUbxAW1pbckpxku v3F+lGzhWWUrVh2fACkjhZkDn51Xn1MJ2EGgIPJ/ukbMTRIpTA8wcFukn/V3KpJMx+uL LyVPmEmR1ZuiVm0no6Y4ac0BVrlNokbm+7wBUQgQKV9ClUxM3brd+v9NEkIW8xxEGQ08 n/S1XDYsaMKYx+c7ONSG40VSSD2pfjcV4ar7XLbE+b0oYtI0ofHtlgXz63sInp0Y+22N N7XJFTqOVFi88PhOYIjWkIq4sbkWbZdo3G3edFIE09mti9FzHJn0517ZgsKDjHGI+uDy YbJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=Mkrcv6wxsqsad+0vMbo9bVKf8G0ZqlTk5aUhiF0cpcI=; b=zK+7pDe5V1VWszOH0zegLhtK0KgKJ5VVfbvzM6QusQ83Mtd+93Mjb7tKJw0yDSsLAS 5iH1YVOGTM4H01MUr/D8mKqcv03oM193/JL1WkY6LUSBxk/+8kajgIUFXFy7z5R/cx50 LAhPzDH3VqpVxp6MoKyAdD/2Yt1m3TSyTZzv5PXVVz30uv7wO9Appb138U/P2InGIsmi qPvKC7X7TLk1oN/EQw7nUHRRo9EgdXxUa/re720f4q8fCSbqqMuvegaChrFo9yqZZSQ4 Ok+bJ+5tkV0ralx96RNUF7lxhi551yg2NrtmMt72QEd5yNINy9VtwRbIFVFFep87K7gg e1FQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o49si2380776edc.261.2019.09.10.23.10.10; Tue, 10 Sep 2019 23:10:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbfIKGIT (ORCPT + 99 others); Wed, 11 Sep 2019 02:08:19 -0400 Received: from mga12.intel.com ([192.55.52.136]:32425 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726724AbfIKGIT (ORCPT ); Wed, 11 Sep 2019 02:08:19 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 23:08:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="asc'?scan'208";a="187086206" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by orsmga003.jf.intel.com with ESMTP; 10 Sep 2019 23:08:16 -0700 From: Felipe Balbi To: Richard Cochran Cc: Christopher S Hall , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] PTP: introduce new versions of IOCTLs In-Reply-To: <20190910154452.GB4016@localhost> References: <20190909075940.12843-1-felipe.balbi@linux.intel.com> <20190910154452.GB4016@localhost> Date: Wed, 11 Sep 2019 09:08:12 +0300 Message-ID: <87h85jnz5f.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Richard Cochran writes: > On Mon, Sep 09, 2019 at 10:59:39AM +0300, Felipe Balbi wrote: > >> case PTP_PEROUT_REQUEST: >> + case PTP_PEROUT_REQUEST2: > > ... > >> + if (((req.perout.flags & ~PTP_PEROUT_VALID_FLAGS) || >> + req.perout.rsv[0] || req.perout.rsv[1] || >> + req.perout.rsv[2] || req.perout.rsv[3]) && >> + cmd =3D=3D PTP_PEROUT_REQUEST2) { >> + err =3D -EINVAL; >> + break; > > ... > >> +/* >> + * Bits of the ptp_perout_request.flags field: >> + */ >> +#define PTP_PEROUT_VALID_FLAGS (~0) > > I think you meant (0) here, or I am confused... Argh. What a brain fart! Sorry about that. I'll go fix that ASAP. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl14j0wACgkQzL64meEa mQaROxAAwYSzWNaWJpQhoKv07ei+YmJcT2fS0MB/KBwDiEpNoHGCVmOEb9feMWFh f+8ukRVkRIn8a8okSChN6+CXV8AVXg5p4o23o23WCEbm4an+BgZinKdNKBRHUpqY rXGu2RiWll55PmJERJ9gtb1vEmU3fMZFVovAJg++VPvgTr3vy/0q6/J89ldIXPKp XeHsTTEeqjs5gnz6Nu5436/JslFKNTJtt09loNqAhUY9GPNfThp3V/o0WTGvFaHz HauDeLvZ5677jukO6ZnslzL+Q+cwh2A1L4md7o6W4RQfjz2g4KInuf4woL8msuDc 3j4pXNUsiae8Fhuy+WFE9+yzjZp1Wo6gB5xJ4utO0JWUvtR9y3v9oy8fDY8kqeY9 CxmoR6abJ3f+w476kG49NUTtlfjmDhYs8cE+41LXwWuoATttICQMhdBrBXlYda6X bTPnp2kUSAWz53qtFUyRntvNSjr6exbhZ7esU8bvOrJxnD31BOIxlax2mnGW9PkO +7I1Ct2z8qEkV6sEyloZrhldCP6On9U79kPak6v+NxUAewnYBalElJ70x9EsDjjW 4Na/Bi+gKlCcujV1DaAhqNaGjbtRNCsyWV+93L/zEhbpX6Taw0UOhJznH36MlCFu Cg/bP9pqqp5Yp6SMyo1iLxk/EyGMc5Mm0aJNlokEApvnJvByo6k= =9ECB -----END PGP SIGNATURE----- --=-=-=--