From owner-freebsd-arm@freebsd.org Mon Mar 5 16:22:30 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA85AF3C799 for ; Mon, 5 Mar 2018 16:22:30 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) Received: from sonic316-8.consmr.mail.gq1.yahoo.com (sonic316-8.consmr.mail.gq1.yahoo.com [98.137.69.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E85C811F8 for ; Mon, 5 Mar 2018 16:22:30 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) X-YMail-OSG: PQipgT0VM1ltkJkYEC0tFM8Ik.NELhXwhsEcY51zYg7iUSQMcOzclIiuQno0l9c c4ij9MaGkhTZYf9nJe99hJq8swq_x_zxXrWw7SzT9PwX8a5UJx4vPnmP_wgQWCAxODLSwV6MOfhx Wdsp2dRlEGRRx0iAKkrp0izqBmwS7cGr9YZz5k71mFJ8K7q7BN6lb6g4SUpcUBO.XgWES6BOpdN4 WUNgAMESets0uLVyLxVrf5WceoFuotO56qjJPH1_ReEE2x6uaXM6zg9q9HaelobSBr2sFbPZbgMv LFnhzNeQkvxYYn9DjogJInXxdbRoaujaL94WmlrEXP4.y3yB4A8xiMH4KrbwC_U83BHj3SlN04g4 wYQEjwNLV9vVHAJHqlXnU57XWNcCiEPunTVjhY5nrIBJOWCCtGo53kUV8sHBslrmITC2PBYHvI8a .QxBX5nEQMLFG02p1qMYe.AzjgYU8ZHpAkxY08tk2efWtB_9w5618dcEpssOgeOVi7veb_qcokKb W16WP6dT_g9IakHyl2sQkdAjiIQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Mon, 5 Mar 2018 16:22:23 +0000 Received: from smtp109.rhel.mail.gq1.yahoo.com (EHLO [192.168.1.20]) ([10.211.35.160]) by smtp408.mail.gq1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID fd0cc64d147ee957e1470c758161a0b2; Mon, 05 Mar 2018 16:12:13 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Panic in spi driver From: Thomas Skibo In-Reply-To: <1520216633.38056.12.camel@freebsd.org> Date: Mon, 5 Mar 2018 08:12:12 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <165F26C2-AD03-41FC-92A5-105D3CE2E514@yahoo.com> References: <838BFE5B-61CD-4EC4-BB4F-8124B5B3AF9F@yahoo.com> <1520216633.38056.12.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2018 16:22:31 -0000 > On Mar 4, 2018, at 6:23 PM, Ian Lepore wrote: >=20 >=20 > I just committed the imx_spi fix in r330438. The basic fix is instead > of ending attach() with=20 >=20 > return (bus_generic_attach(sc->dev)); >=20 > do=20 >=20 > config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev); > return (0); >=20 > -- Ian Thanks, Ian. This works slick. I did manage to implement a polling = loop transfer function for transfers 4 bytes or less and that worked = too. But this is cleaner. =E2=80=94Thomas