Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1109855ybf; Thu, 27 Feb 2020 05:13:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzA0a/wqWYvqZ6GgSHBsgsEKlcYZxzD9owbADJ84NDSBQvEyxSenJ/+naBkkrc6esWrd1kA X-Received: by 2002:a9d:7cd0:: with SMTP id r16mr3438294otn.50.1582809224425; Thu, 27 Feb 2020 05:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582809224; cv=none; d=google.com; s=arc-20160816; b=0Ul0Y4reGUimm62xzGVNCLYBC2XQ7cMWp5QyYnz7MNY8d/6bX69dc1MVNSMKwVRxmm MJ7Ea2SA2NxRJiVNGd7/hNNHygZz9KzS+crSbdrDkVIpYwKSbZ4ONSD4oG5BHlKUxhT4 at/VccTlCB9H1B8Ht9BxZGZ8SgZ6s4edY/XjKGn1nhZhI31nEfd8W52sLknXw6P+9RX5 8IkNrAceBUU3T+qgzcHFfltcp/Jq6e2GuzPQweFXlXcT4LSfva/a80qRtD5lmrNDCync Dd5SaraQgLdlEAsFAwXuyhucjwxMQIQYTlEAuAujnAlZC5c1FEIcoOcPruf1fRToYaSa 7RjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=fvljAOiyv5FjF1cMHs0muSU+mvhLwaTGvDYfXBmScoM=; b=t/YzN4b/tyLDIDuPemCLqsn0tft6asIyX7rGBz6IW0R1Y7xAuTsh1ReGbF0+UusdhW UoMt1Pzg7ZcHyi7KjUM//Gcb1jMeqlzTgRQS+7La0Dgs4NEu/LLzX6NtER2UUUfTf3VW xwc+DQNmcUEpHmFP/WQe7iSgMZBTcjqzZnLD2aj1E05PiPaZe9uma4lGZxXFEXZmM6Sb 3cPniIYNUeHdzkByL7/vSun+krCI/BYPgMpqkcO/K9qKrBC00bVyu8vBpqNTHZN5MVHI n0AEuQwetvvxtiC4GKOKUsKVdhrUnMja8PGBmodkz1fUFIkgUbVE7TdIoeqTtQIrQG/Z vujA== ARC-Authentication-Results: i=1; mx.google.com; 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 m24si1446768otk.239.2020.02.27.05.13.32; Thu, 27 Feb 2020 05:13:44 -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; 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 S1729196AbgB0NNX (ORCPT + 99 others); Thu, 27 Feb 2020 08:13:23 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:19292 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729032AbgB0NNX (ORCPT ); Thu, 27 Feb 2020 08:13:23 -0500 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01RDDFtN029179; Thu, 27 Feb 2020 08:13:15 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 2ydtrx370p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Feb 2020 08:13:15 -0500 Received: from ASHBMBX8.ad.analog.com (ashbmbx8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 01RDD88T053299 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 27 Feb 2020 08:13:08 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 27 Feb 2020 08:13:07 -0500 Received: from zeus.spd.analog.com (10.64.82.11) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Thu, 27 Feb 2020 08:13:07 -0500 Received: from analog.ad.analog.com ([10.48.65.180]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 01RDD2gD025942; Thu, 27 Feb 2020 08:13:03 -0500 From: Sergiu Cuciurean To: , , , , , , CC: Sergiu Cuciurean Subject: [PATCH] net: ieee802154: ca8210: Use new structure for SPI transfer delays Date: Thu, 27 Feb 2020 15:12:45 +0200 Message-ID: <20200227131245.30309-1-sergiu.cuciurean@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-ADIRoutedOnPrem: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-27_03:2020-02-26,2020-02-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 malwarescore=0 impostorscore=0 clxscore=1011 priorityscore=1501 lowpriorityscore=0 phishscore=0 spamscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002270103 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In a recent change to the SPI subsystem [1], a new `delay` struct was added to replace the `delay_usecs`. This change replaces the current `delay_usecs` with `delay` for this driver. The `spi_transfer_delay_exec()` function [in the SPI framework] makes sure that both `delay_usecs` & `delay` are used (in this order to preserve backwards compatibility). [1] commit bebcfd272df6 ("spi: introduce `delay` field for `spi_transfer` + spi_transfer_delay_exec()") Signed-off-by: Sergiu Cuciurean --- drivers/net/ieee802154/ca8210.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 430c93786153..e04c3b60cae7 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -946,7 +946,8 @@ static int ca8210_spi_transfer( cas_ctl->transfer.bits_per_word = 0; /* Use device setting */ cas_ctl->transfer.tx_buf = cas_ctl->tx_buf; cas_ctl->transfer.rx_buf = cas_ctl->tx_in_buf; - cas_ctl->transfer.delay_usecs = 0; + cas_ctl->transfer.delay.value = 0; + cas_ctl->transfer.delay.unit = SPI_DELAY_UNIT_USECS; cas_ctl->transfer.cs_change = 0; cas_ctl->transfer.len = sizeof(struct mac_message); cas_ctl->msg.complete = ca8210_spi_transfer_complete; -- 2.17.1