Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1407605pxj; Fri, 21 May 2021 13:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHZzPLjletq48SerHitXLpnDS7Oz/Oeuwf69XbOyLwktH76xI0OC4NebbTiIlZrGm18uWl X-Received: by 2002:a05:6402:1d18:: with SMTP id dg24mr12847736edb.369.1621629108928; Fri, 21 May 2021 13:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621629108; cv=none; d=google.com; s=arc-20160816; b=Ra7ka0FdsQB6ZrAt3NyQ9+9Snrh2sHmGPpH9yAvVrt8A3Ork5oFfyrSEO5YxiiN6g8 swbiLO8kW/o40FlGwq6FsxMKvcNnp3b5eOKBiFq5RgjsuxNiCJYs8+GZ7rDqZeVSkIWb KZ9Qxla4nhcjowMSA/gYjSOHqHnPb5CTYp1M5dockYjQcD6pNbKaQ1Lu1j2EeWJI8cxT +pBEBQTbHqT8vNKg5dOsvErz6EzV56vbEzo5J1tmtOa2m2FVdIxqSLpiWZgLAzNla0Py blh+epwsnjCdVK0bPgEnPgkUuqu8d3D5SVIH6EDy/atUGUH+8uHe1yGtmr0mpirlzCKc 1EYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YOf85zY0al/ByydROmpHWySRarnSlzDktjhZrpBEUCU=; b=p3tbbG1ez1YRUH1pjHjJvDmmBQ8TAUF1+yZ04WhgQGzlhLeSEk9hBTFfW2n4mF/AYA nfy5oStlUE+Q73pY2tDulgZ7Uhc9wtHvPw+9shBwGnOB8flbZL5ELbcRaxocVg9Pdng5 4wS95klTMDA8sgk78eUP1vrliUoU6MMVqNXVMZvxasCZAg69gNH9PFQSiCCQTncHNg0T OkoCLZYWM+zyi3Lwm7Dg9SJU1q7b+rNvyDV5HCDQkWn4SbJxREDTEDE7A2OGmyYm4dPE yctquk6njNIG6Qop9JgkTuziVg06MS5T0a+D49DHujCMShliNbGJ4tD/+aVCONyI+RCi 8Giw== 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 e18si6216691edz.330.2021.05.21.13.31.25; Fri, 21 May 2021 13:31:48 -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 S229991AbhEUUSO (ORCPT + 99 others); Fri, 21 May 2021 16:18:14 -0400 Received: from tux.runtux.com ([176.9.82.136]:39598 "EHLO tux.runtux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbhEUUSN (ORCPT ); Fri, 21 May 2021 16:18:13 -0400 Received: from localhost (localhost [127.0.0.1]) by tux.runtux.com (Postfix) with ESMTP id A67A36F00A; Fri, 21 May 2021 22:16:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at tux.runtux.com Received: from tux.runtux.com ([127.0.0.1]) by localhost (tux2.runtux.com [127.0.0.1]) (amavisd-new, port 10026) with LMTP id iCAZBfAfgrdo; Fri, 21 May 2021 22:16:46 +0200 (CEST) Received: from bee.priv.zoo (62-99-217-90.static.upcbusiness.at [62.99.217.90]) (Authenticated sender: postmaster@runtux.com) by tux.runtux.com (Postfix) with ESMTPSA id C17A26EF63; Fri, 21 May 2021 22:16:45 +0200 (CEST) Received: by bee.priv.zoo (Postfix, from userid 1002) id 09F0246E; Fri, 21 May 2021 22:16:44 +0200 (CEST) Date: Fri, 21 May 2021 22:16:44 +0200 From: Ralf Schlatterbeck To: Andre Przywara Cc: Mark Brown , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Mirko Vogt Subject: Re: [PATCH 1/1] spi-sun6i: Fix chipselect/clock bug Message-ID: <20210521201644.ksjgsjvdud2wblbe@runtux.com> References: <20210520100656.rgkdexdvrddt3upy@runtux.com> <20210521173011.1c602682@slackpad.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210521173011.1c602682@slackpad.fritz.box> X-ray: beware User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 05:30:11PM +0100, Andre Przywara wrote: > On Thu, 20 May 2021 12:06:56 +0200 > Ralf Schlatterbeck wrote: > So if I get your last email correctly, your intention was to make this > Mirko's patch, which you just send? Yes. > In this case the authorship should stay with him (git commit --amend > --author "..."), and you add your S-o-b (his first, your's next). > If you use git format-patch & git send-email, it will take care of > formatting this correctly (inserting a "From" line into the body). I was using format-patch but editing the result. Would a 'Date' line in the body also be OK? The patch is really from 2019... I have it correctly in my git but was unaware that additional header lines in the body are ok. > One formatting thing below: > > sun6i_spi_write(sspi, SUN6I_CLK_CTL_REG, reg); > > + /* Finally enable the bus - doing so before might raise SCK to HIGH */ > > + sun6i_spi_write(sspi, SUN6I_GBL_CTL_REG, > > + sun6i_spi_read(sspi, SUN6I_GBL_CTL_REG) > > + | SUN6I_GBL_CTL_BUS_ENABLE); > > The "|" on the new line looks a bit odd. What about you utilise "reg" > here, as the other access do, to make this more readable? > reg = sun6i_spi_read(...); > reg |= ... > sun6i_spi_write(..., reg); I've fixed this and will resubmit. Thanks, Ralf