Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3500037pxb; Mon, 24 Jan 2022 10:51:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWIC94SkOnZqtNqNAx2jE9MNwVF6RrA1iEwGJn0WSygcpwcp98pv2CCsvcHiOTkbp269Og X-Received: by 2002:a17:90a:cb0d:: with SMTP id z13mr3220966pjt.192.1643050284246; Mon, 24 Jan 2022 10:51:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643050284; cv=none; d=google.com; s=arc-20160816; b=NtI+BN7gtgEkXe/i0sJrmCo4d+FHbW8h+pa+f98oK2kxzY3ERDBm7RSOwPWP0QeZYq 4EjX8czXXekr9pyedxQDXblhr4sIPW2jw2AuG76X13uXHm3uKqxS5VKmcHgUn05dDWbr DBOK0a4BMSTEzNxuwgta4gYfx4yEaqRQA1PXUldtkfI38mE4Ewk9BiiALf1YzkZP6QT8 qosNO2/FvKRWb4m45AYIcAozteZEtNb2rIjMFbj7jRanOQmN6RHb6PRe24NjZ/tWeZ50 ZYHVFTGTkDsLBqkb7zdJh8ncf5JS/gKrcVWcPYeFgnWaWX7ralkypy7TBYD04qHtkWhk CmtQ== 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:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=YBg9O2363sFJe26OQUSprS0I/GjVvK5V7VC8QrvUkDw=; b=AzHXXnhAhnoluBtLRjGvn1y1ZLyUsuZJbe7op75ViDf0IbWd00VimlBumcl0sSs0mV OdoAdt/1nnuv4hq+LqrQMQ5mtiCRjBcVpJnw2yNrooOqH84pAFhh1zRieYDgWXLiTiQA 4XSU6bksKqtq6t70z4+ByHwrfF3QW+kJTujqIWjV1Z7exI0y1t3Unf+KMee0Iw7RaJeW klnhMOu2JPIRoRqFsyyV1s0brySMaew4IsNYliNjhJZsV0MDajtCcK/2SSzktB6i+DJ5 xt5qPlGX1g+s47lln+eXJWnrWwkOPoKHjNFW9enPQ3O7irtOlX5dO4hDk3EtQKiPt5bS EMOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kEkJ8VYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g10si13130171pll.92.2022.01.24.10.51.11; Mon, 24 Jan 2022 10:51:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kEkJ8VYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S242093AbiAXIQs (ORCPT + 99 others); Mon, 24 Jan 2022 03:16:48 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:37036 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242110AbiAXIQp (ORCPT ); Mon, 24 Jan 2022 03:16:45 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A3858B80ECB; Mon, 24 Jan 2022 08:16:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D33CEC340E1; Mon, 24 Jan 2022 08:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643012202; bh=1p4Ei0VQKjl/EI+UbOBbtqk35AVMqncFK1+SkqXuzTA=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=kEkJ8VYOppns4alKgHnJ3E9TEXtOhYfO7Fne4WuQX1e5Ife3PEZVNbE9PjCk52WpX WxK90Y6QSSz65mdN6/JcFvg6hztXVPnoeyuqXLJu12TPq0G7Eha/c1tCqgU4XF0ae8 n/+qIWbMP1KHbNwrzkV/DxHteLKP0km6HP08UcVlcVZLQskw8MCHVFjwkRIyQwGZR+ E0+NUwTM5mdtrcdaf/TOMqtbB+/JtVJpluN4lhJpYhVTE9zxA9s+tYWN7Ls+IS3pYB cBfov42qaIFPtQwkUbUh7vvvHbUkKf7TheTFuHGk7O2z8OaTZf2x55NWgz1UZlZpte xw4rPYYqvxnow== Date: Mon, 24 Jan 2022 09:16:38 +0100 (CET) From: Jiri Kosina To: Christophe JAILLET cc: Nehal Shah , Basavaraj Natikar , Benjamin Tissoires , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH] HID: amd_sfh: Remove useless DMA-32 fallback configuration In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 15 Jan 2022, Christophe JAILLET wrote: > As stated in [1], dma_set_mask() with a 64-bit mask never fails if > dev->dma_mask is non-NULL. > So, if it fails, the 32 bits case will also fail for the same reason. > > Simplify code and remove some dead code accordingly. > > [1]: https://lore.kernel.org/linux-kernel/YL3vSPK5DXTNvgdx@infradead.org/#t > > Signed-off-by: Christophe JAILLET > --- > drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c > index 2503be0253d3..673536d1d9ba 100644 > --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c > +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c > @@ -248,11 +248,8 @@ static int amd_mp2_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i > pci_set_master(pdev); > rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); > if (rc) { > - rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); > - if (rc) { > - dev_err(&pdev->dev, "failed to set DMA mask\n"); > - return rc; > - } > + dev_err(&pdev->dev, "failed to set DMA mask\n"); > + return rc; > } Applied, thank you. -- Jiri Kosina SUSE Labs