Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp448748ybm; Mon, 20 May 2019 20:08:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRVTWFmkE4ZKzfQhmC7Xs8izj0QnTnWPj0LgdPhL7b6jtkR7U+xCkiQu0YQ0WsNlgmz59C X-Received: by 2002:a63:700b:: with SMTP id l11mr23496965pgc.449.1558408089315; Mon, 20 May 2019 20:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558408089; cv=none; d=google.com; s=arc-20160816; b=YV2AJIGGYM3MZJHJEzkiYAdo4lTqkyI9+tTcJyX6IXraaSn42aWfjs/I7QFiBAt+3x OTamKGjejdf+fk9nR0yd7rHY6D3wHsMYl57ou7ZdSh+lqa/V3tQCX8d5aRZCOS3mSvLc vA0Ut7IGOcMkxI1eKrxESsl9856WNxVNFeEi3q2sd1HljOYgEf2liq+TwDDhsVk+N936 GRLIVlFwHwpFj6z7wKIY7NnQX84LxBfSguvhFNAUPvrS+rPyBRJVJSsfBFxCIDHavxoc tR6xKnFSN+GnhOAQYi/kSDxV0zyo/AD1FIViKLSo51VUnwHQwfcsXq14LO6r9I4lv87G +kbg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L6rmQq+gPSXmZQ1NvJ0gt7vzdglgYRZhWO69QkEpq4s=; b=Q5kHwmEAZ+gFfMP9vKTOOySflmUcoPS+yeYgVnG/kKLX1PU4y+ywsf0x2mfMSaMckv GCpG7NBi2fyn+jF+g5vOh5eNRD0kPQ45wmeHqlQpBh9o/GlpW1XxK7AorWXFFkydZxxg Ml4YyvIpDxtQCIPIdgJvD0+ZwZgouGyW0kKX5EpymR/DlTf7STR987vbLLE5R68HeSMq 6EyTToz+feODdeuMgbeiDJEFLas3Ivs8H9OgPqc0ZPaVW5NJASzZIEOwtTiefpLHfwkm X/xpLGMT9mgEqJQ8FeSDFkRwgIlK4Xvp78CDDIDC6MkQgsaMTqfsT5SKu5H7+DdgS9gr jaxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W6bBtDCk; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si20234742pgx.421.2019.05.20.20.07.54; Mon, 20 May 2019 20:08:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=W6bBtDCk; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727427AbfEUDGs (ORCPT + 99 others); Mon, 20 May 2019 23:06:48 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37555 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbfEUDGs (ORCPT ); Mon, 20 May 2019 23:06:48 -0400 Received: by mail-pl1-f196.google.com with SMTP id p15so7677888pll.4 for ; Mon, 20 May 2019 20:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=L6rmQq+gPSXmZQ1NvJ0gt7vzdglgYRZhWO69QkEpq4s=; b=W6bBtDCkqYW+zUT8OZDmpyZxkn80Lc5l/c/oKtPUNJ/Kf6PgRimqdFjIQbncOk7fh5 uYnAKbkqSZ7tVUNbuLEqncLfTRPi5Is43mR2JEYtRcG1t1SZAzePFKWgH6xnawODxmK0 QroNahzP9a6jAF1W4Pth5Tgj0PIxaMcpp8hYfBklE3RaX+aCIIOzTzaucF7eM3GwBNUo hT+Y/7FmqMZN7gat7B6SKwWAJnZDkuUcICEJqPGe/fpH4xzE7pdWFqyxmIHoTCsYU5dP UNYBefeKrmr0bR+UA0lNvzOU1WLfngLD8+kBThTdGUeCMUGJ4Iubv69I497uOuZFGmYJ lrRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=L6rmQq+gPSXmZQ1NvJ0gt7vzdglgYRZhWO69QkEpq4s=; b=VjzBeZEnsjL++qkr3yj2Akcb44K5jJSMPeGMbQBdjaeSZT0osjjt7z8JPyw17XtcfW 639OwNvid6k/6BufdF2y/xu6Zji7xcNtJtnmhUqUOmUHEkafgGaGFadiP3CkK8UtFmon 43vaxxaD6LQYuXC87vedZ2bBpXelVKZ4DtlT/Yj6pxU2uV+3bEN3HwkUUYkHopDKfgLv j9G4Rhm/0KKkL6tUX5Kw1DoQTrzXiGXu/kk119jy5jiTZTa7nAa1wg16j7BxPPxaLfQe jjxq7U58N9onn74hMQGej00dok5fRJxlmlpaYBI+Y1QK0bxc2vN0hjX8fosv1Skv5Ao2 Fa+w== X-Gm-Message-State: APjAAAVA1GecIZu7NVhRVsexfVT0P3JtvAFClwZxMjdP0vYngQXHsuwO 6U9GKdaFLM5hd8yX5mFoMKKBcQ== X-Received: by 2002:a17:902:b191:: with SMTP id s17mr57530171plr.262.1558408007225; Mon, 20 May 2019 20:06:47 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id n1sm18491693pgv.15.2019.05.20.20.06.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 May 2019 20:06:46 -0700 (PDT) Date: Mon, 20 May 2019 20:07:12 -0700 From: Bjorn Andersson To: Alex Elder Cc: Subash Abhinov Kasiviswanathan , arnd@arndb.de, david.brown@linaro.org, agross@kernel.org, davem@davemloft.net, ilias.apalodimas@linaro.org, cpratapa@codeaurora.org, syadagir@codeaurora.org, evgreen@chromium.org, benchan@google.com, ejcaruso@google.com, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] net: qualcomm: rmnet: fix struct rmnet_map_header Message-ID: <20190521030712.GY2085@tuxbook-pro> References: <20190520135354.18628-1-elder@linaro.org> <20190520135354.18628-2-elder@linaro.org> <81fd1e01-b8e3-f86a-fcc9-2bcbc51bd679@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 20 May 19:30 PDT 2019, Alex Elder wrote: > On 5/20/19 8:32 PM, Subash Abhinov Kasiviswanathan wrote: > >> > >> If?you?are?telling?me?that?the?command/data?flag?resides?at?bit > >> 7?of?the?first?byte,?I?will?update?the?field?masks?in?a?later > >> patch?in?this?series?to?reflect?that. > >> > > > > Higher?order?bit?is?Command?/?Data. > > So what this means is that to get the command/data bit we use: > > first_byte & 0x80 > > If that is correct I will remove this patch from the series and > will update the subsequent patches so bit 7 is the command bit, > bit 6 is reserved, and bits 0-5 are the pad length. > > I will post a v2 of the series with these changes, and will > incorporate Bjorn's "Reviewed-by". > But didn't you say that your testing show that the current bit order is wrong? I still like the cleanup, if nothing else just to clarify and clearly document the actual content of this header. Regards, Bjorn