Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp981460pxb; Wed, 6 Apr 2022 05:59:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS0zCnz9lD1yQ7IhTWLSUsAc4KlqkBOHjFNG7x+WaP+YBZDmYrluDfBlFhpk1fiysf6AkL X-Received: by 2002:a17:90a:3486:b0:1ca:c6a0:3f8f with SMTP id p6-20020a17090a348600b001cac6a03f8fmr9960302pjb.6.1649249972620; Wed, 06 Apr 2022 05:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649249972; cv=none; d=google.com; s=arc-20160816; b=DvY1+la72+eJ97WrhxhTA4aW7otiEcdY8eK/D0y8hFq+pbLeJWUBcs6V7Zxh+hqCeS B2cehTBiAt0UKC0UTutxqoIniDuusiyEx6yTbw+O/Kegxll9hPwGWp+GwmaeMX0ZqRbP Vb64aRlwrgqxeUaF7wTSXxOeTBsi4iKS1KWlANcxtpKV14RtKFA6HEYbKpuTQBDmiznL u26yBgp82ZK0Ff1vz+hvdQ0dSnnlQ5+8MjI/xGOa7qfASlPJhXGp9G7F1wXuonNxmjBY ezo499dWZLhkpVxfl/nf5k9uAXV6+sUbrUuBoeqjx0/Kiq2kvwt7VTZZKmhHZL8Mo5o5 rIBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=i5jWb08T0RxS89hDAMTR9oLVSxo0c9WfDhnxBD/u/5s=; b=FMQsMu8Xo1KP4G+U7ALSdwBGQQqWDa/AOqrtGjz6jIH7Rhe5Fn5cXKHi1PJzCK/4C0 WQrKYjDBOKUR5DUjbAQya57OkQ9MwiO+0KP583iRRONKza1A61EIvYsUAdpW/eYFv8AW UdAgdBGbOwkzPv0dXaRbq+REZOoX9doWTCNgCKMtx8oLxZETYPoPYHoRqvhZAEJjMbRv UYQs66ZDI8NMoMmOcHVewUslybrakVx0Jffl5nV44W46sTktR4iBl0/gt1O/qxQIxzNq bHpYDccWPKPD5dSBk2lKC1DAXINBkykqKf4RZw7PklIiWrMhN+hux7ZYW0UreRWCJbSw hBkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0O8C9QNr; dkim=neutral (no key) header.i=@suse.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m10-20020a170902db0a00b00153ce7c9244si16817379plx.97.2022.04.06.05.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:59:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0O8C9QNr; dkim=neutral (no key) header.i=@suse.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 724501DF85D; Wed, 6 Apr 2022 03:12:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442415AbiDEWK7 (ORCPT + 99 others); Tue, 5 Apr 2022 18:10:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457625AbiDEQTm (ORCPT ); Tue, 5 Apr 2022 12:19:42 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2FD4193D3 for ; Tue, 5 Apr 2022 09:17:43 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A07211F37D; Tue, 5 Apr 2022 16:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649175462; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i5jWb08T0RxS89hDAMTR9oLVSxo0c9WfDhnxBD/u/5s=; b=0O8C9QNrGERCkFNQON7oAKUQUHnC0Y8NVVLvN9SzKVjpS+Jvt0sJLuDKWlYnZjnAewJqER MnVdri7fjg6cDddHVFAFH9Gfpx6gSDdRmYGBHoieIj1OhsY2ct11Z2dMrFJYqdUIoKJwOz X9DwCDlZDww8R0/uhNeMaZo4rC5WFr8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649175462; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i5jWb08T0RxS89hDAMTR9oLVSxo0c9WfDhnxBD/u/5s=; b=am4tIWb8GphVIN0zBVgh8YNpMkPO8GF9t/KZkjCpsJ/utR+1XTDM0ARoDyimAh1qCXD12q i7e1Radr9iPx/fAg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 89B85A3B96; Tue, 5 Apr 2022 16:17:42 +0000 (UTC) Date: Tue, 05 Apr 2022 18:17:42 +0200 Message-ID: From: Takashi Iwai To: Robin Murphy Cc: perex@perex.cz, tiwai@suse.com, iommu@lists.linux-foundation.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ALSA: emu10k1: Stop using iommu_present() In-Reply-To: <9b506b4a4fe8a7f40aa8bad1aafc82426cf3dd92.1649165210.git.robin.murphy@arm.com> References: <9b506b4a4fe8a7f40aa8bad1aafc82426cf3dd92.1649165210.git.robin.murphy@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 05 Apr 2022 15:27:54 +0200, Robin Murphy wrote: > > iommu_get_domain_for_dev() is already perfectly happy to return NULL > if the given device has no IOMMU. Drop the unnecessary check in favour > of just handling that condition appropriately. > > Signed-off-by: Robin Murphy > --- > > v2: Get "!domain" condition right Applied now. Thanks. Takashi