Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1152882pxb; Wed, 6 Apr 2022 09:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaQ/H5Gz7Xt2+vc3uQGeampIzGvzviBWDWB65BKlPplWCjCYRiAB9seJgJ7jNCxteXCsr1 X-Received: by 2002:a05:6a00:1706:b0:4fd:af77:62a1 with SMTP id h6-20020a056a00170600b004fdaf7762a1mr9823691pfc.16.1649264297344; Wed, 06 Apr 2022 09:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649264297; cv=none; d=google.com; s=arc-20160816; b=VkKI18cgyoytDrsS+uzfzJKULe+qHdkzTBQfPMlWdfyjuObrCTIC8SPhxNhLsnc56k Ro110PuJASM83NmatWtzSiPDHtxJxE77fHbB5FRNOlHtQ6Uti/j6og1DJ2vgMZYjPQ8y qhalayRNOh2BVyt8S1kwQC0YzwoqJaPB0FAkEdRcpkftTM9GKLhWuJen0BF03m5xyHLW CaJYjav1Qn6BS0i97CAfGVJuWc9byt1ELmxePHYKYFv9NwcCjUiX4xV/eEMMpyw67UNV iqF53PoGMYeiqFczdj9VsGpO9xw6RpDk6wxL+OEWqa8fpOH/vODFpZZ1rfB4SjHPOPq4 WKnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=JVn5ewQS5wSAQzX9KkSJbafYGqmETRHDF55MpDFdJ0E=; b=BNOQSjDeiE8hRVxR7BHw+x+GAz2rKlr2OEm/2phI3NGns+5Pmu3SWqcEmCZSErOkEu Z7Sa3HqAuymac3ITJdONMEn9h0ghzmiHvMI0/zWcvWoIr8Wcd/5btcMKJ7Sgak7OtCk0 5JQNpuxNXGrG1isyuBasViumPZvf5jhQs7DRUWZJNqTFVox1XQShBtrqMoYwZnap8/s3 kdgyqkQK2DltqW4fRbyf7mFif0xVtjoekWUZraFXRD+pnSfpVZetvmbUyVaomZhj6qBU dALInsjfCmzTdLE6ELVUmxav41VPY/TBMbUZRA7nuxyinQmQfhXn8p01NtJZRIlEAxfW j2/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qhr3ZgcT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w22-20020a170902d71600b00153b2d1663fsi15561872ply.583.2022.04.06.09.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 09:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qhr3ZgcT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7F00380076; Wed, 6 Apr 2022 09:13:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237328AbiDFQPc (ORCPT + 99 others); Wed, 6 Apr 2022 12:15:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237236AbiDFQPP (ORCPT ); Wed, 6 Apr 2022 12:15:15 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CABA3E37FB; Tue, 5 Apr 2022 21:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649218307; x=1680754307; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=cR9iKxrz/8HA3dd1/jwZRF3XG6WX3t9oScAc0DPOnW8=; b=Qhr3ZgcT6AghAGdmMiC42Yq+xjXtn3ha0USfQQjyMEydVBDv0FC4Afip QdNUZQ5q7U+avhoyBYeNyTjKoqHwy+n23gZMIHzRPszfWR/i5RRVn9FAA ivTGW0i/EvCYdBLPQvqQOYItX+SyA2zvCLZ/mNieoxs8FT4MbVJm9nC/C a9ayqykO7f69eBEIwUcKcPSD+CVQsymH20Nr3ySz9Zj6Ag6I/EYxD7+A4 m/MYFj82grrvtlc+Q/5JvURh0DZ0wzaeJArpjZFZUwgo4zPIIwuEOqryq l+kWxm2bsTJyg/7HHWH44kRAvhEqy+H1bV212Gk/aG7KTZUvU9SM7g5uW Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10308"; a="241530382" X-IronPort-AV: E=Sophos;i="5.90,239,1643702400"; d="scan'208";a="241530382" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2022 21:11:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,239,1643702400"; d="scan'208";a="524294591" Received: from unknown (HELO localhost.localdomain) ([10.23.185.145]) by orsmga006.jf.intel.com with ESMTP; 05 Apr 2022 21:11:44 -0700 Message-ID: Subject: Re: [PATCH] i2c: ismt: Remove useless DMA-32 fallback configuration From: Seth Heasley To: Wolfram Sang , Christophe JAILLET Cc: Neil Horman , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-i2c@vger.kernel.org, seth.heasley@intel.com Date: Tue, 05 Apr 2022 14:13:04 -0700 In-Reply-To: References: <853d9f9d746864435abf93dfc822fccac5b04f37.1641731339.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-8.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,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 Mon, 2022-02-07 at 15:31 +0100, Wolfram Sang wrote: > On Sun, Jan 09, 2022 at 01:29:45PM +0100, 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://lkml.org/lkml/2021/6/7/398 > > > > Signed-off-by: Christophe JAILLET Reviewed-by: Seth Heasley > > Seth, Neil, do you agree? Yes, I agree this change makes sense. > > > --- > > drivers/i2c/busses/i2c-ismt.c | 7 ++----- > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/i2c/busses/i2c-ismt.c > > b/drivers/i2c/busses/i2c-ismt.c > > index f4820fd3dc13..951f3511afaa 100644 > > --- a/drivers/i2c/busses/i2c-ismt.c > > +++ b/drivers/i2c/busses/i2c-ismt.c > > @@ -920,11 +920,8 @@ ismt_probe(struct pci_dev *pdev, const struct > > pci_device_id *id) > > > > err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); > > if (err) { > > - err = dma_set_mask_and_coherent(&pdev->dev, > > DMA_BIT_MASK(32)); > > - if (err) { > > - dev_err(&pdev->dev, "dma_set_mask fail\n"); > > - return -ENODEV; > > - } > > + dev_err(&pdev->dev, "dma_set_mask fail\n"); > > + return -ENODEV; > > } > > > > err = ismt_dev_init(priv); > > -- > > 2.32.0 > >