Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp203668pxy; Fri, 7 May 2021 01:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwEJtjoECJbyqOewtkRdaHDlZyLdTFEbgKG6sadKBxbj2XbueCtNxs91PYJ+/Sp/UQfrbc X-Received: by 2002:a05:6402:524d:: with SMTP id t13mr9872010edd.209.1620374535997; Fri, 07 May 2021 01:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620374535; cv=none; d=google.com; s=arc-20160816; b=qMSE5ZS5PwQ0JUQ0um+EJ0ixHXnF5wBfi/dFHrf1WLbSBj58wMkCfJC5QH1buUWvvm kjJ3/kHjd54uvKYYvRwG6Ae2Ma41cx/hR7eAKFHMOxvRUxeq+JbbkWFkuudE9iok9Rgi U/Z3nILd6iNHZEOm36tFqOALrZ5JQmsEngpR5kzf7olXEAeNeQNhwRx5ngBx3dt05EDf qOC+W+7toCO4QD7vC5wNP+B54ftWfzFizLGl1IPgookRPHnhmK0moPHH7vzoL8pWaw/w vvv5TNlGp8KZLi3wYruShS8rbzeSvmC9ROuLji1JEnBLOAzralqq9F2ap/X+o9kAhigL UIoA== 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:dkim-signature; bh=mvrcjht1/ZDjZntlokA/5UTumpWo8GtiALSkNCm95ck=; b=XMi9G3RQx0wu9C80BmwhyAspMW7YvtrepSW6oxQSwHEV//ueq2GPMEmLQ50V2R/PFw PXFlZZb6ubriFh8FFHrDPKf+R4FQyr+fnK6OtTg3XnN9iMgRyVn800YHWnR/Ts1lfBdd eVBleyvrzbDZfCnJUKU9rYcPII8OZZLPy5TulCQuCkd0WEk1l6uIfpR/ltTWM/nGpgjb MP/pSMt1lWLP7VPSWWTOFY3iZMYAwTcB5cAwgFg2wOjQf3I4aIHuh23rYRwTg68OMflS qCVGHcfREDdjBPvEFp/VJJzDIcfMiM5E8Ilaqu1SmaeN/ccXRpKaxJC+u150qcp7Ud67 x4Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sVmWM06a; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si4203812ejf.385.2021.05.07.01.01.47; Fri, 07 May 2021 01:02:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=sVmWM06a; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235329AbhEGHbq (ORCPT + 99 others); Fri, 7 May 2021 03:31:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232268AbhEGHbq (ORCPT ); Fri, 7 May 2021 03:31:46 -0400 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19FC4C061574 for ; Fri, 7 May 2021 00:30:46 -0700 (PDT) Received: by mail-vs1-xe2d.google.com with SMTP id s15so1418214vsi.4 for ; Fri, 07 May 2021 00:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mvrcjht1/ZDjZntlokA/5UTumpWo8GtiALSkNCm95ck=; b=sVmWM06agL2q7iV+PrscrJpJ4RWX2ZLaGuM8I7wLPWmsPbzWeJkUjZ4PuAnIGNRSjn 7ZD/V+47EHcOW3Bu+ogYDAVJ1d3HMNTk5eaXMvB6LFoZJZZ4pPg+iyUQPHsdy2JPZE3K pHQj6+2bh5+OZTYYXIjbvhT0g9S64kKvTMKAmgMwV/sDyoivDcBY1YBixszkQbNEqaEi v+LWw62YydidKx67qtFimKSQqKYcLcttGDrbhp2nnW/4cmRiDeviCNza/zzCf3n8knA4 lRzhjUUg112FDP062mmlNLrLUdqrdtgE2TvuuETGa48alWoWhN/O03p1JpLJot2JABf1 pzkw== 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=mvrcjht1/ZDjZntlokA/5UTumpWo8GtiALSkNCm95ck=; b=hTQxPQ8dYPnwUcTF+pXXUVB5JXdhd1LFBld91mjJu2kHdkgd6Zs+1TGYVtTG0SY8ap LvsNkL2fQzTovoR1l/qp6+uGaa/ec/TYRkwSp2tYZIsubSiHKfrd5PoDvB8wr/jnmnwv yrhfoTzOouzHrWqNSzBW+BUPfGMLKD+65IfW/+irr/Em7oyOhnQFYq5ijUVKKPQfVS7Y zGPZTL8eNR8shhsP2Kj/g/iCxcpgukZxUGH0J3LU/zHeDKfDN0kokBQcx1jmpzmRfFDu dMjW9cQFBMPR7E78feav34xmeDcDYfr3qeqBtXnCKKQLrVnGDAc7ASRDOzBkWuqWnSO3 r0nA== X-Gm-Message-State: AOAM533zDxlnvNAen7mJl7q0vKtu4FjN7Uq3OtYm6Mclg8EW83ce52Ms MbObXKt+5yX5MAsW3Y1IeWQTULmaaWRqjpBCyXm1kQ== X-Received: by 2002:a67:64c5:: with SMTP id y188mr6598056vsb.19.1620372644882; Fri, 07 May 2021 00:30:44 -0700 (PDT) MIME-Version: 1.0 References: <20210504161222.101536-1-ulf.hansson@linaro.org> <20210504161222.101536-7-ulf.hansson@linaro.org> In-Reply-To: From: Ulf Hansson Date: Fri, 7 May 2021 09:30:08 +0200 Message-ID: Subject: Re: [PATCH 06/11] mmc: core: Prepare mmc_send_cxd_data() to be re-used for additional cmds To: Linus Walleij Cc: linux-mmc , Adrian Hunter , Wolfram Sang , Shawn Lin , Avri Altman , Masami Hiramatsu , linux-block , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 May 2021 at 15:00, Linus Walleij wrote: > > On Tue, May 4, 2021 at 6:12 PM Ulf Hansson wrote: > > > * NOTE: void *buf, caller for the buf is required to use DMA-capable > > * buffer or on-stack buffer (with some overhead in callee). > > */ > > -static int > > -mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, > > - u32 opcode, void *buf, unsigned len) > > +int mmc_send_adtc_data(struct mmc_card *card, struct mmc_host *host, u32 opcode, > > + u32 args, void *buf, unsigned len) > > Just a note here (the change is good) > > When applying please add some kerneldoc above mmc_send_adtc_data() > and expand the ADTC acronym and add some info explaining what it > is maybe a small protocol ref or so, so readers of the code get an > intuitive feeling for what this function does and what ADTC is. Thanks for the suggestion and the reviews, I look into this! Kind regards Uffe