From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756273AbaDWO2T (ORCPT ); Wed, 23 Apr 2014 10:28:19 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:55395 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753302AbaDWO2R (ORCPT ); Wed, 23 Apr 2014 10:28:17 -0400 Date: Wed, 23 Apr 2014 15:27:17 +0100 From: One Thousand Gnomes To: "Karicheri, Muralidharan" Cc: "devicetree@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" , "Balbi, Felipe" , Rob Herring , "Mark Rutland" , Ian Campbell , Kumar Gala , Randy Dunlap , "Greg Kroah-Hartman" , Jiri Slaby Subject: Re: [PATCH] serial: uart: add hw flow control support configuration Message-ID: <20140423152717.7100f604@alan.etchedpixels.co.uk> In-Reply-To: <3E54258959B69E4282D79E01AB1F32B70471B198@DFLE11.ent.ti.com> References: <1397243877-23234-1-git-send-email-m-karicheri2@ti.com> <3E54258959B69E4282D79E01AB1F32B70471B198@DFLE11.ent.ti.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >- if (up->capabilities & UART_CAP_AFE && port->fifosize >= 32) { > >+ if ((up->capabilities & UART_CAP_AFE && (port->fifosize >= 32)) || > >+ port->flags & UPF_HARD_FLOW) { > > [Alan] Surely you want brackets on the port->flags & UPF_HARD_FLOW ?? > > The C precedence table shows following order:= > -> & || > > So flags will be accessed first and then AND-ed with UPF_HARD_FLOW and > result will be OR-ed with left side expression value. So no need for bracket IMO. Yep... agreed. Alan