Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5692828pxj; Wed, 23 Jun 2021 07:04:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIRmEal0FOjEd9Fk995K10hWWOHeI3D+NFnPhrBes3w4D5G8YVlJU/YB/BwzmD4QynNXz8 X-Received: by 2002:a17:906:c2cf:: with SMTP id ch15mr134518ejb.517.1624457087979; Wed, 23 Jun 2021 07:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624457087; cv=none; d=google.com; s=arc-20160816; b=j+apk+MAta7+QODhvPAyWUSGH0Qxaf5SdhSda4kKQcCJ0rYXCdfrG+OHcopcPdu1TZ kwpdxob9NGspW4WiPxRni96nxQfZ1vg42z7mM1Y0H7X/lnluKb5v44J2J9YOb62UQ4Gx q+WSBJ3SrywR3QYfZa2lCU+EIO4ObaHeHeXkYSLlLuwBbAQsXf/v49lR2XMeEd/jGWGC O+ygUrpcFFR5jOP2i56/5qjkhbsMSZqLz8dffYA8BtgwxISwl2cg3x/5ATpI5jGIJgOv W1oDR2Vxr+aR6UA6yuRoxjm3OhmBHFMFkVV1fvXrkUowSNXTFq0L/QAUp7ghNwV4Rkvx y+ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=4kB7+8R1X1Mp14SEda7xSh4fu9NS5YjQHGge6J0bi9w=; b=oFnNw36208Y7NY01X4Igf4W5UFIuXQ8yW/le8k/ZiIlDzK2cG3SywXoZ0wrMMWBU+s efwET52p8iHccpErSPbl/vt2sOMDGr10XMtQKVIl1N+xrokFOGed9X+ZK1szkJkYRXL1 SpiFnyA3LwgHEPUyie/A0MOQHbsobTjEFF9eC4nObTngaODo+BptT5rNIjj36OqOgtbA jQ6ibUZsMVzqYwq5fyerG0RbtjWEx8bVHcXuZ2nWc1wH70bBd3C7FrEfCPpw9ebcDzhN G0s1Z0WI/tXBTuvtFKSWSO2p6X05PmVDsqHRHnK8uH5lQ1PkGylpmN+F/063RAmR4XPx Rshg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si5361606edc.257.2021.06.23.07.04.24; Wed, 23 Jun 2021 07:04:47 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230505AbhFWOEy (ORCPT + 99 others); Wed, 23 Jun 2021 10:04:54 -0400 Received: from mail-ua1-f51.google.com ([209.85.222.51]:34560 "EHLO mail-ua1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbhFWOEt (ORCPT ); Wed, 23 Jun 2021 10:04:49 -0400 Received: by mail-ua1-f51.google.com with SMTP id c47so192936uad.1; Wed, 23 Jun 2021 07:02:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4kB7+8R1X1Mp14SEda7xSh4fu9NS5YjQHGge6J0bi9w=; b=oo+BEZqR6dKsQ/GOoqsG47gtlUvQx2aTOcd4cJc2XK/qb6LMG5LtZ6Jv7E3VVfYagN Mo5oV+1SqL0MiMBpZxqDoDCTsV7BvA2V9uzwiH0xj5oKlmP2/v0X5a0rN5UiPsPLraKo KXrcIbKhPz8BMiMhXgOvID9XHc3n75kwozhvYID774bqwJsXUw3ID8H7c4hWSPcbqfpX cB7CVu7U6Xd6MrSwoTkzMBLSEjS6V4QbGtDqLGG7UkF+CQKarfS3vL3mQLXuhqAvg5LP uRPtuhrGLj5pAtJ867gcy0zSVAvVuFAPnRe6u9WjCk8917oZThUWwfQ9PMEC77TnNAgk aHJg== X-Gm-Message-State: AOAM530pTGyZVJVnxazUbZEw/0ZvVU38LGvEW/t8JA64i0rvjpGRVDB+ 2PRy6IXMWtSHEdAO/Bez3q3aTBsA6D/jiC7ZYzk33n9D6C1uDg== X-Received: by 2002:ab0:1e4c:: with SMTP id n12mr4804036uak.58.1624456951381; Wed, 23 Jun 2021 07:02:31 -0700 (PDT) MIME-Version: 1.0 References: <20210623095942.3325-1-wsa+renesas@sang-engineering.com> <20210623095942.3325-6-wsa+renesas@sang-engineering.com> In-Reply-To: <20210623095942.3325-6-wsa+renesas@sang-engineering.com> From: Geert Uytterhoeven Date: Wed, 23 Jun 2021 16:02:19 +0200 Message-ID: Subject: Re: [PATCH 5/7] i2c: rcar: : use proper DMAENGINE API for termination To: Wolfram Sang Cc: Linux MMC List , Linux-Renesas , Linux I2C , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, On Wed, Jun 23, 2021 at 12:01 PM Wolfram Sang wrote: > dmaengine_terminate_all() is deprecated in favor of explicitly saying if > it should be sync or async. Here, we want dmaengine_terminate_sync() > because there is no other synchronization code in the driver to handle > an async case. > > Signed-off-by: Wolfram Sang Thanks for your patch! Is this safe? The driver is not using a threaded irq, and DMA termination may be called from the interrupt handler. Have you tried triggering DMA termination, with lockdep enabled? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds