Received: by 10.213.65.68 with SMTP id h4csp3352092imn; Tue, 3 Apr 2018 03:28:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tdUJuj3XLeqTl0gE7xUGD34hSwFlBvI0SkhOQjFjgLhmlO1U+lBK5kv8ZwSc+BcpHBi3M X-Received: by 10.101.65.10 with SMTP id w10mr8727962pgp.39.1522751305141; Tue, 03 Apr 2018 03:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522751305; cv=none; d=google.com; s=arc-20160816; b=0L/M9bIoedt0MLABeJz2yLKTmEaKZ+tJ1Jc/nJmF2B4ewgjnmcVgE2GxIRCubkxjLr R4R7oV1dRnieQ8M2xqHkBXZL/DtSYkuTMmwjKW2dErTSx9g0PNXk73khKbUiSOdtAfoc QkpItJ0CYt/gLrmvajDCZ9liHxnkp9gy1GGjzk+9acmnWGG12ogiGH2tRqFSRayfkoIe gtr54dlwo3l/MRBu3DShOTtluCoOjlPreI1ob1isaW4WV4SqQdjbhFNdJfMk3fqOysJ2 TFoCJ9e2HjsJtrK2mEoZABA+n7OEtCPD+YSXlCgiAiHsrU8a8P8moLQRdJ0+U0gIuwXx 0qhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=PFNfJQLY+aTG4fgjUz6U9FHBD5zwDe/LSB+FmgHizps=; b=kGVfRD4ueQb+vVQ0UJozCU7qvhfoLy0Xzgg0i7ArSO0o/CQxB0rWOg9Ap3EtLu1ZNw xd0nHJXu6uXWqsW/bOj9CMZjZCdxR9mUNFroYemwpApERhKzYfM4kvCo/JvZJIdxSywJ Icjp4wtnDwN3sHZl+NkBuJH7adyxv1Zr+vG+jiQ4wsvEJhmKfrzQsdXH+2gSIV9tiWu8 QcOxj51tWYlMZF8NaA2rL3xzw1iEkJ07GDdhV7r8oonhB2CkK64+iwv720ejVGdtt7VF f9VyFNyx4+VPcOeDRwhSvBgd/266B+TDJndgCIChGxQKdw6ihklyJeKhXNNLijRTQu2k ST5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=dZ24HZKc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62si1947306pfd.309.2018.04.03.03.28.11; Tue, 03 Apr 2018 03:28:25 -0700 (PDT) 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=@orpaltech.com header.s=mailru header.b=dZ24HZKc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755198AbeDCK0m (ORCPT + 99 others); Tue, 3 Apr 2018 06:26:42 -0400 Received: from smtp59.i.mail.ru ([217.69.128.39]:56140 "EHLO smtp59.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755121AbeDCK0k (ORCPT ); Tue, 3 Apr 2018 06:26:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=orpaltech.com; s=mailru; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=PFNfJQLY+aTG4fgjUz6U9FHBD5zwDe/LSB+FmgHizps=; b=dZ24HZKcw9TdSYI8kaWGNuZLw0twMwvgG4TFNiHNIGXfLl2veXPJ2p8ZP1NRlDbtU7R3Xy0/GTuovOAQ2uT5sFf5PQPU34U2B5Nk7BTNUXAHf/H1U0nKvRGAqdmF5NoD5e+dhTKtpgDTWYLMQnrVweMOxPZW6WVLS/+usPapp5c=; Received: by smtp59.i.mail.ru with esmtpa (envelope-from ) id 1f3J9B-0002hA-L8; Tue, 03 Apr 2018 13:26:38 +0300 Subject: Re: [PATCH 2/6] spi: sun4i: restrict transfer length in PIO-mode To: Maxime Ripard Cc: Chen-Yu Tsai , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org References: <20180329185907.27281-1-ssuloev@orpaltech.com> <20180329185907.27281-3-ssuloev@orpaltech.com> <20180403081041.3ully6bcyfwx2cx6@flea> From: Sergey Suloev Message-ID: Date: Tue, 3 Apr 2018 13:26:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180403081041.3ully6bcyfwx2cx6@flea> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp59.i.mail.ru; auth=pass smtp.auth=ssuloev@orpaltech.com smtp.mailfrom=ssuloev@orpaltech.com X-7FA49CB5: 0D63561A33F958A5188B22A9F141C3BAA41A0CC64C343A0D9B6E4F23D92FC876725E5C173C3A84C30584FF81F342DA07ABBE6567769A2B66789C969B8F27C422C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F5D41B9178041F3E72623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-Mailru-Sender: C5364AD02485212F3ACDC11E67D84917C8011FBC0CD2CB1F14C027D6D47AC04F069BFC61DABEEB110841D3AAAB1726C63DDE9B364B0DF289264D2CD8C2503E8C22A194DADEED8EEDCA01A23BA9CD1BE7ED14614B50AE0675 X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/03/2018 11:10 AM, Maxime Ripard wrote: > On Thu, Mar 29, 2018 at 09:59:03PM +0300, Sergey Suloev wrote: >> There is no need to handle 3/4 empty/full interrupts as the maximum >> supported transfer length in PIO mode is 64 bytes for sun4i-family >> SoCs. > That assumes that you'll be able to treat the FIFO full interrupt and > drain the FIFO before we have the next byte coming in. This would > require a real time system, and we're not in one of them. > > Maxime > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel so you think we should still handle 3/4 FIFO full ?