Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp202468imj; Fri, 15 Feb 2019 21:43:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IaHIdTy6gkoWnrrijnOws7W0TwNnoMebC7ptJv+vGcndvDFsL3bkIgL8rqSDyGvA+WA8Fps X-Received: by 2002:a17:902:c5:: with SMTP id a63mr14163397pla.267.1550295800812; Fri, 15 Feb 2019 21:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550295800; cv=none; d=google.com; s=arc-20160816; b=wgRUYspbL8hhILOYyLCB50WBo06Qu38FMCWW1BQtLDOfuh8HZgiML4LXxqBGpG390r oaZVDKaH/9+DEPeevF5t0QNnboBImY2NmFRA+LdDwnRUaod237T/m/5yyc+XSJmMFXaa o9SUVfBMAtcrqhRQ2cXEbpYYJ1ELEVbeIQajuHUftbNAUV5hwp5Vw7uR4SCkcbyyxeEl bo1rUOzUEY+GPeuvSRpRFrKnneiHB2pRqsqyBAw2x3rwuOOclWPFfADh+A0znbN1rpK8 8Aw8uWCsK7a5/he92KoqYU/pEGN7m74EeTxEkN2NJ0dBkl3SwY8D90Up+NHLVU1oocwb Ffyg== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=DYW3F6/y71l1KzgP+vMGSVj18ot+oNFaDrtinzDFAV4=; b=IwWA9xKq/ncbdxO6GakkARcGWA6eNuBz+JkazpzsFivIOuC018PPDv4HAV4bVGVzg8 uKSVzSXn7PPuhoa7SQdEkgdfRjkYKiQPUB1NSi+YL+S9TfC4S4u3vnrEo5lg77K//4+1 2xkLwBSs/R+bFY3lVONo35iy/NVW+hldL1ZAHCxlabUpjDpe7bVyNSpmR82p62MtQD0/ pfQznUVvCUFY/+vesoR9RDoDjzR6RLMliI2inTjzRHEOzwP35XyJybiup3LmK6GRIVOT 9zzuZ+ElE8/ckxu2lenrDFicw/bQf1pRyZm0tDjYby3yb+YYSPlHlIIxZoJm1s90gmsJ kZBg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si7592311pfm.85.2019.02.15.21.43.05; Fri, 15 Feb 2019 21:43:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389985AbfBOSef (ORCPT + 99 others); Fri, 15 Feb 2019 13:34:35 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:43892 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389689AbfBOSef (ORCPT ); Fri, 15 Feb 2019 13:34:35 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5814514F06A70; Fri, 15 Feb 2019 10:34:34 -0800 (PST) Date: Fri, 15 Feb 2019 10:34:31 -0800 (PST) Message-Id: <20190215.103431.281080744416004293.davem@davemloft.net> To: hch@lst.de Cc: deller@gmx.de, robin.murphy@arm.com, iommu@lists.linux-foundation.org, sparclinux@vger.kernel.org, linux-parisc@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] sparc64: refactor the ali DMA quirk From: David Miller In-Reply-To: <20190215144559.8777-3-hch@lst.de> References: <20190215144559.8777-1-hch@lst.de> <20190215144559.8777-3-hch@lst.de> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 15 Feb 2019 10:34:34 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig Date: Fri, 15 Feb 2019 15:45:56 +0100 > Do the quirk first in the dma_supported routines, as we don't need > any of the other checks for it, and remove the duplicate mask checking > that is already done by the callers. > > Signed-off-by: Christoph Hellwig Acked-by: David S. Miller