Received: by 10.213.65.68 with SMTP id h4csp3683485imn; Tue, 3 Apr 2018 09:03:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx49orK9tYLac0gF/E+275hpE32eWNlwtENbbSAlWADQif1dUuJpB8DRdByTC7M7z2BPzGTOZ X-Received: by 2002:a17:902:a501:: with SMTP id s1-v6mr14816223plq.201.1522771419480; Tue, 03 Apr 2018 09:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522771419; cv=none; d=google.com; s=arc-20160816; b=qEChoHyIP0s4UAv5DVHVQ4y+Q0JodxQg0xqktPa+Cy92rM9CBQZ7ApJwxnc5zKdqiY xgDg/0oPSectWfo6Uq6tsVlI4h9jpZCNsyUFd+dO56HOsgMCg/cEdFCu0lLxyQ+ps4BJ 0kvBKijDpRUTBskGLMEOrRTczMWYdp5hhgMTMPJOikD7EpMjqt7CRIkjj1c/DtqWHy9c D/iRiwMSbRgvdd6fVq3UGCspqPCzvgZHnAI96S3Ze+F8GGwUZ9zA3fo3IPlk6ZgTAVNV bX5/glMsbKTYHfrMJqdtlCLWHdupYHlXvfXEXniTg0GBiNwci6EcyU9QSjljY6ACyLSK ACng== 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=77eM2XOJc7ZNAgHsK7Pbl6qEsxN8KPUfU7SetXiVnS0=; b=0h36PJP1MNtKTOvsXg+kLz7MMRM/vJVByWEajTn4ywR1fEstt1vSo8taEeTkx5lP2V v+kB1t6/zx7w4IeTMBVsrLRL6qZVL6t/gdmGQgO+q4UqNVik5HrwE2RGvUNZb8VvyExG V1SACISareEnEmk0xaaXHejQ3VNAy8ekhHPxoMk6Ik1OCERAWHGdZqe+zOmF8P3x1aa6 Aru7VDxamw64X4qvyr6XKSqOPKCdYrrmBxFC2ML6PKZGrQ0E1Lm6DA7FOV/rvhsqhStd dTCbD+LvhHOPWz/WvkaCpuY3nhyP6/iJ8GUz5WFp0c8PMc+f8DuZ029DpSGC/RifFPYX lGGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=BnWwJR5t; 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 p3si574788pfh.84.2018.04.03.09.03.24; Tue, 03 Apr 2018 09:03:39 -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=BnWwJR5t; 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 S1752232AbeDCQBB (ORCPT + 99 others); Tue, 3 Apr 2018 12:01:01 -0400 Received: from smtp37.i.mail.ru ([94.100.177.97]:36416 "EHLO smtp37.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbeDCQBA (ORCPT ); Tue, 3 Apr 2018 12:01:00 -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=77eM2XOJc7ZNAgHsK7Pbl6qEsxN8KPUfU7SetXiVnS0=; b=BnWwJR5tRvGCLrQBzYbZj/OHwoUU/ORNsEdq9ekbCGLqCZBrJc/ZWD3Hw9aD0g/f5v2fKibHRIQ9UQm2WoONIdDeb6i5pFHpCLmbtf/wRRwoZJ1jr+6+ZIsfY6xFAaQXVH7Q5n9Fm42jy6tD4qMBvebbS9orDLwhrqBGBEm2jsk=; Received: by smtp37.i.mail.ru with esmtpa (envelope-from ) id 1f3OMj-0007ra-ND; Tue, 03 Apr 2018 19:00:58 +0300 Subject: Re: [PATCH v2 1/6] spi: core: handle timeout error from transfer_one() To: Mark Brown Cc: Maxime Ripard , Chen-Yu Tsai , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20180403152905.1524-1-ssuloev@orpaltech.com> <20180403152905.1524-2-ssuloev@orpaltech.com> <20180403155224.GA11578@sirena.org.uk> From: Sergey Suloev Message-ID: Date: Tue, 3 Apr 2018 19:00:55 +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: <20180403155224.GA11578@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp37.i.mail.ru; auth=pass smtp.auth=ssuloev@orpaltech.com smtp.mailfrom=ssuloev@orpaltech.com X-7FA49CB5: 0D63561A33F958A521CF74858968C1FA24F7F11A85DFF40117C3D9B8D07C2777725E5C173C3A84C30584FF81F342DA07130BDA849125FBD6A91E23F1B6B78B78B5C8C57E37DE458B4C7702A67D5C3316FA3894348FB808DB48C21F01D89DB561574AF45C6390F7469DAA53EE0834AAEE X-Mailru-Sender: C5364AD02485212F3ACDC11E67D84917E8CBD4EE5B0A9065ABD080F4C3DE7A92069BFC61DABEEB110841D3AAAB1726C63DDE9B364B0DF289264D2CD8C2503E8C22A194DADEED8EEDCA01A23BA9CD1BE7ED14614B50AE0675 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 06:52 PM, Mark Brown wrote: > On Tue, Apr 03, 2018 at 06:29:00PM +0300, Sergey Suloev wrote: >> As long as sun4i/sun6i SPI drivers have overriden the default >> "wait for completion" procedure then we need to properly >> handle -ETIMEDOUT error from transfer_one(). > Why is this connected to those drivers specifically? These 2 drivers have their own "waiting" code and not using the code from SPI core.