Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp425545rwb; Fri, 4 Aug 2023 15:22:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEj4LSOmbFq5LTWB2C/gpvgdUWrLspACJ4DjcQfzMMBs5oERjRfJej2kW7ICeRv32IKwgjU X-Received: by 2002:a2e:9b18:0:b0:2b9:f1b3:ac3b with SMTP id u24-20020a2e9b18000000b002b9f1b3ac3bmr2426844lji.39.1691187767155; Fri, 04 Aug 2023 15:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691187767; cv=none; d=google.com; s=arc-20160816; b=mCwaDZUeMZcgEPdxSrxxiKmzg9yXYbRMWKWII+uhHUdWkSIWQWpBO7LtQWfI0fkVL+ pSrcjJ/NN1ZWKeoy7RZEoxyKFNnpreIEN5XTVtzIAVDCRXGMAnaDHDHxaI8QFOUYBN1v DR0QWYwdn+dgUDd2AdTt8WtG3p7j71R8k3lCGf85/3YjaCeXk2h4m3J4Xdlb2qlB89/t 7ouFy/M60rMekjkR9ziv8HmckdKd6gSkV9xhFxMrDPJl/Ey8GmWkDfGQO52E04cjo0W8 t0T1iF3K3N/+4DPruz9YmUqfs4kJmvzd4gxUyMsfJXr8XsQxaZQ5v4+SIryhSJ9UAHYq CUKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=koIKrkhN69kSKJLYaFlQd0gvgghoApBLIX8Ka8QpxGw=; fh=fGt5Q10B++jtXjpJdCWc+i/wkNDrr9zSXAx9BzQCOAo=; b=O22L+8tLfz8nVtcLn3Y/XZugZsiAeieJS9SJV6JvPlFoDHBFdBbuDhHlw+8Ww0wKXF MXnmbxtqD3EvUUVonCXIH524Wh7Gjk4qO9VHeT1umPsAINIt4i+P0wBxtLtIicy9zRk4 9yr+Js0ex/vc848gnySbSq0zwa3IPAUYdGtCiY7KTcJxq/UIiGKwyfS8XH94uQPgg6qi tMsqCp6xM6RvM2oKw55dT/ZNP0/wGo/BCVzsBF0F7Jo72ERcJW50Es+TAaEkBboJnur7 zqcR6dfSdzs6DuHWtZzyx5UDji/8cNklGay4OXjwNtQ/H4mdv+Xj9O4ufVSi4KcyTgVX hwWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i8h6vvLi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l25-20020a1709065a9900b00992e26642ddsi2289168ejq.251.2023.08.04.15.22.04; Fri, 04 Aug 2023 15:22:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i8h6vvLi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229685AbjHDV4j (ORCPT + 99 others); Fri, 4 Aug 2023 17:56:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjHDV4f (ORCPT ); Fri, 4 Aug 2023 17:56:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E415F106; Fri, 4 Aug 2023 14:56:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 826DD620AE; Fri, 4 Aug 2023 21:56:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D649C433C8; Fri, 4 Aug 2023 21:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691186193; bh=mT5bk7cd5EYNsRFZCZ+B+RnmZqOU/3o6oW2FuS19fdE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i8h6vvLiiYBp/5YVfIFpsJFrU4eCoc7Edosf7UxFcXWxdY5ul5jGw860IyHpNWgng SMNdrNRVPHjAdNg9OElMKmHV68KP8o3/EZhXOghESGYPjNNEs5TFKtQMvrzEaYPAzC 14+fJGTlyCNiemugn10hRuoQSK/bSslfTIYB673MKeweQnJjJFsX3Q1P651LsC5qQq 9lYIZLGIDiL6KwjqO7gO46+y5bSMjXPftLSNU1AKBp54MQ7cdhx9uhE/MPgxnuPU7C 5NpYNYkmrejnpKAHhxG/FcNJ8SN+FhNrjJvgUPABwin6jwrbFHYZUrLYc8feohtact ICRgGVWgfyGYQ== Date: Fri, 4 Aug 2023 23:56:31 +0200 From: Andi Shyti To: Parker Newman Cc: Laxman Dewangan , Dmitry Osipenko , Thierry Reding , Jonathan Hunter , "linux-i2c@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Akhil R Subject: Re: [PATCH] i2c: tegra: Fix i2c-tegra DMA config option processing Message-ID: <20230804215631.wc22pkyetsyyt5ye@intel.intel> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 BTW... On Thu, Aug 03, 2023 at 05:10:02PM +0000, Parker Newman wrote: > you have a blank line here. > This patch fixes the Tegra DMA config option processing in the > i2c-tegra driver. > > Tegra processors prior to Tegra186 used APB DMA for I2C requiring > CONFIG_TEGRA20_APB_DMA=y while Tegra186 and later use GPC DMA requiring > CONFIG_TEGRA186_GPC_DMA=y. > > The check for if the processor uses APB DMA is inverted and so the wrong > DMA config options are checked. > > This means if CONFIG_TEGRA20_APB_DMA=y but CONFIG_TEGRA186_GPC_DMA=n > with a Tegra186 or later processor the driver will incorrectly think DMA is > enabled and attempt to request DMA channels that will never be availible, > leaving the driver in a perpetual EPROBE_DEFER state. > > Signed-off-by: Parker Newman As this is a fix you also need to add Fixes: 48cb6356fae1 ("i2c: tegra: Add GPCDMA support") Cc: Akhil R Cc: # v6.1+ Cc'eing Akhil as well for his opinion on this. Andi