Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4556608ybc; Fri, 15 Nov 2019 06:35:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwKh+Jme0VQ1w5b5yKKQTvQeT39VrTcL52FJgJNtM171Z12mbX9kZSMyeLYCD0ekBLtsl1Z X-Received: by 2002:a17:906:c7d0:: with SMTP id dc16mr1343628ejb.73.1573828530765; Fri, 15 Nov 2019 06:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573828530; cv=none; d=google.com; s=arc-20160816; b=oqB780q6Jod59o2ZHw5sfFAR/JHm1nEoaI0XOloyn622nRA5viXJLjGf6bIddI+EfF ZDHaJqi1UM5d8bfpo3r0/aeDkj2LpeyxiIoOZ/o5BKhwrAdGHtVZflvXg05rjiZtchkG OpUBdlk+8sZWa2PG11rY2RSm36QuvQdJWnJlb6vsrbwmnfVNTSKJ6ZQfkQP5A5KdyMNg BPK4n3aPprheV8rusBmg7ILe8/CzHD63bAFDZGS42byRDbRju7TKat78ASvhvYvdglJi Nx+N1gnT5EiJI94UKk1dVwQHsCz3Gy+T0+olE06FjC+IZs0tQSjoMLccONP1AYkCSxUj fTPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=mF87Nl6gED2r2qJHxN4WWU1Jb6PLM4yh2d+dwZW5Hk8=; b=rYHWWKeKodStpK0hrX6fGpP+MLJJ5MAwKWxub+K5Y3FoCpo7iftycAlImuUpYrrJMX I3fCMPVltzuqs3iojPWVmlf7zK750vgtcL6i+9qxpcBuBET+4jNuTxiKXoIs0VhqMZlG vvg2lOTa6zOvOvECL0PMO8LG49AhreOTS30G0IkwFRZpaAKhEZCP07OJcpmtYQs26IKd cswuOlyGNv8qjCVXxod82Fg3IXEK4zxaqBKTB6T6cWwqs+SB9nTGG6JoRDlZOi0gBbd6 m428BZvS6/OhzrhDK+399OetWKEmHStukowi/f+2bnRdAMJKfXDYPwZLNrAEkgn8kSd8 6+jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vvc8P1N2; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd10si5761973ejb.424.2019.11.15.06.35.04; Fri, 15 Nov 2019 06:35:30 -0800 (PST) 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=@kernel.org header.s=default header.b=Vvc8P1N2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727697AbfKOOd4 (ORCPT + 99 others); Fri, 15 Nov 2019 09:33:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:50026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727526AbfKOOd4 (ORCPT ); Fri, 15 Nov 2019 09:33:56 -0500 Received: from [192.168.1.20] (cpe-24-28-70-126.austin.res.rr.com [24.28.70.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E6E620733; Fri, 15 Nov 2019 14:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573828435; bh=mF87Nl6gED2r2qJHxN4WWU1Jb6PLM4yh2d+dwZW5Hk8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Vvc8P1N2l/zeirxvFEhap3H1A3jDhl2uKzyj33rEKW2rwdgj5T8pzOsDy4fw1UWub XOWWlOSXPH1wP5r87NRbpax/A2wzVHEpPawa5nMHZ+KwvkJODp0QrvuDT4Y1ONRqcu eG/BLYr6FtmyUe4Co3Y8nzyrcQUTocfk9sbUsS/M= Subject: Re: [PATCH v4 45/47] net/wan/fsl_ucc_hdlc: reject muram offsets above 64K To: Rasmus Villemoes Cc: Qiang Zhao , Li Yang , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel , lkml , Scott Wood , netdev References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> <20191108130123.6839-46-linux@rasmusvillemoes.dk> <79101f00-e3ff-9dd0-7a05-760f8be1ff69@rasmusvillemoes.dk> From: Timur Tabi Message-ID: <3db19b28-90a4-f204-07b3-517cfd44010b@kernel.org> Date: Fri, 15 Nov 2019 08:33:52 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <79101f00-e3ff-9dd0-7a05-760f8be1ff69@rasmusvillemoes.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/19 1:44 AM, Rasmus Villemoes wrote: > I can change it, sure, but it's a matter of taste. To me the above asks > "does the value change when it is truncated to a u16" which makes > perfect sense when the value is next used with iowrite16be(). Using a > comparison to U16_MAX takes more brain cycles for me, because I have to > think whether it should be > or >=, and are there some > signedness/integer promotion business interfering with that test. Ok.