Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1481727ybv; Thu, 6 Feb 2020 04:58:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxOkhYtoOr3MPq3UISbFxo9zJLh2yg4dJ3IuVYHaG4lkfaanx9Eg0Mj/uTNEVnPb2j5AZTg X-Received: by 2002:a9d:6ad6:: with SMTP id m22mr17794596otq.7.1580993933080; Thu, 06 Feb 2020 04:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580993933; cv=none; d=google.com; s=arc-20160816; b=lr5mjOnx3vsGhq70YhN5eiaBmg0hbJYOTYVDqXKai6KxuwFu4gv+2TcX5JibDqdSd4 0Qh+nVOd+7UQ5ro9NyIR26jApzhII3yPFRlQ693IWd0X028qB1q3jljZsojLoQdo1HDa a9f2Y/UX7WpYpMGEE7wGgb+Sk22Rpn+Pups2Dj4xsk2mBPupIu5FQ20mzOdrr7p2vik9 Q1gxYJTzoJbKb9RVAVEvEI4a+hVedVYjDO/0X4cjwKlycwP20k1f8WZ1mToYt1nNOFOe jkv0jc+CiLqXtd2bf/zS8V9p8ehtvvCvU89j1HM8DHQRdBZBgXgWB31Yh5VrJ1to3xaW Je3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/dwu9+M1njdJBY6aZMkgNZ/xNqYgz8F6CkmlHNEJ8K4=; b=R2fkP47LzxCt41YfYmEILNQHzAgRC1fMKVfkzZm5nggeD1FH5bF3iFzQ8wtJ/bAvvk eaX+YEPeXNoWbsjISigPnb5u46kepGMOIjoFlHU/Xg049ztzQNwMrDRGpy5hzka+n2an IXCjRKVraR8QTUNf/e3Rkc8R/9ixKPLlU2GdxZACvHB1tPnJSRs3jLXkZxF59KG9Co2P t3FrVGWPNCZo1eZDX9qor8cjIUNjB9RycMC/Q9dsnyoUbwFZ4zMmFLw3N2FbIdC639Hp OtAacIkHKG1LPOMVv/LztXBAAAExdKwCeYNRjz6igfyJhFA/5jpbBDxuG0ey1BJ6dV27 Phkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ipr8G0oq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28si2058925oij.149.2020.02.06.04.58.40; Thu, 06 Feb 2020 04:58:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ipr8G0oq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728083AbgBFMdp (ORCPT + 99 others); Thu, 6 Feb 2020 07:33:45 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:42807 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727361AbgBFMdp (ORCPT ); Thu, 6 Feb 2020 07:33:45 -0500 Received: by mail-oi1-f193.google.com with SMTP id j132so4385223oih.9; Thu, 06 Feb 2020 04:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/dwu9+M1njdJBY6aZMkgNZ/xNqYgz8F6CkmlHNEJ8K4=; b=ipr8G0oq3/9GkypLx7ETR2h2vzNVDKRs0jKcrjqsQooSJFCdpcbkKGAvXPyl30jPQS jEnPimJLDI9GkLtDJ7yq4du+iO/DI29Tjk2ENEtlYBVxy/d6B+AIphk3jO9s/b5HUzDP v302eX6e5F60b3czn4g3qbvtfT8IdZkTH8Pdy7Y1RLizf6a2QaUUtpbAJXmbnyltk5i7 8Z+zWFGMopShPkR4Ro6CkFVwJh3kTtTdJvHOXwczgHZQLUGYj72OS+Ub5lOjARqSSIq1 iKRAV6VbVA8YdrG3tVIpBCduLzKpIfOcX5+nsfsQowILIoXY/K+FUT3Rs/Ke5eTdT9zd 29Gg== 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=/dwu9+M1njdJBY6aZMkgNZ/xNqYgz8F6CkmlHNEJ8K4=; b=qN++YBNkpDEvYyof62Gw2q2iH0Y3wtrIwA6n+QcjOHbDsZwjWx7OMdPH5TakpcJiUl vYETcyThaMRmA5L9eUwovxl1oY7LscnKWldbLCaI/Rdn3Y7XOjdxcZ7kB9DSuHt7B5GI fO+1cHxnmp2JAzNRacewl7oF6oJUjeo+W44LLwerOHTd0WwVoutCy25O+Po1SwKGMOJS x3XLFwCLZrSv/HOKUjcKe9LEkyfaBJae/yXZ8Nxa3lzD5rEFTuJQf04gu9DCKG+9EF4W 32LiryiGGcbZ94LIhwfVwhrH5HIDBJhOOXJMPY/p/rjU7Wn7EicugWhwVWjwVsrl8bM3 BwOA== X-Gm-Message-State: APjAAAXDcIbOTYAOogEM3yIiQ3fPJrgNbTD4lEKcgl9qAfKFgbAeWSTT 5ymtWNnnj0FG3E6tTj+7LE3eGHV7XF31u04hp9A= X-Received: by 2002:a54:4896:: with SMTP id r22mr6786997oic.30.1580992424102; Thu, 06 Feb 2020 04:33:44 -0800 (PST) MIME-Version: 1.0 References: <20200206084443.209719-1-gch981213@gmail.com> <20200206084443.209719-2-gch981213@gmail.com> <20200206113158.GK3897@sirena.org.uk> In-Reply-To: From: Chuanhong Guo Date: Thu, 6 Feb 2020 20:33:33 +0800 Message-ID: Subject: Re: [PATCH resend 1/2] spi: add driver for ar934x spi controller To: Mark Brown Cc: linux-spi@vger.kernel.org, open list , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 6, 2020 at 8:30 PM Chuanhong Guo wrote: > > It looks like this could just be a transfer_one() operation > > instead of transfer_one_message() (which is what this is in spite > > of the name)? There's nothing custom outside this loop that I > > can see. > > Chipselect is also handled during transfer. Controller asserts > corresponding chipselect in SHIFT_CTRL register, and if SHIFT_TERM bit > is set, controller will deassert chipselect after current transfer is > done. I need to know whether this is the last transfer and set > SHIFT_TERM accordingly. Oh, I remembered that I saw transfer_one function name somewhere and thought maybe I could shorten the function name a bit. I'll correct this back to ar934x_spi_transfer_one_message in v2. Regards, Chuanhong Guo