From owner-freebsd-drivers@freebsd.org Tue May 31 02:01:57 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDF5BB55629 for ; Tue, 31 May 2016 02:01:57 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e:c03::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF5B519D6 for ; Tue, 31 May 2016 02:01:57 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by mail-pa0-x231.google.com with SMTP id fy7so49555298pac.2 for ; Mon, 30 May 2016 19:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=H2GwpJS+LzMzY7JRYLVa/r6r+1dpkqe8FAsqGxXIGrU=; b=sYPzoOkV/F9uE+zBweZNgZqI98tDG103gQuKSjL3DH/KLvz8XZ2CltRz9qZMFh5PLs hOffb/RdLQQIqro8/R7B0q1oB45oFxwQD5o5Q39Inff9MISk86fIMeiXJ2c+sTa0IEdi v/DSJPxAyLwl32M50UZAk1GP/cWZhRw4MUKQh6z3SqeZ+quLy8WTOQYJMv7cpOzAl4bD 1CVMW/9xp8jOZDOGx6Lwiju2/OA/GigOqteVxzefZnFDPURFDt6ccuDYCuAml3O+/o8b T2HNaqHeL2LVG+r04agJTTX9mFi49Ch1TqR0Rj9aqH8nfBXxPWmHzfzF7TwWEZ/KuGfS Ze+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=H2GwpJS+LzMzY7JRYLVa/r6r+1dpkqe8FAsqGxXIGrU=; b=ljkq5xQoIydKkPlCQxDDpuSZR4Fq4Dls0zH8LS8VHby82q2RzFyRqQJmxUCHce11Jl pIDMNE/Tk3Pem5im2mtLk0ZmDZDEZPCAKXjioRFs43cRsuCWipZVObt3VpcjM0+WAxbQ H5auEKQJg8clizMOZw7gjJCWD4gfd2udSyJbn1Z5q/ITmn0aqrwQRCy+nOGzmWr6J9Zb n9KOLyEKu3RSVLthravi822o7pJ4aDG9f62Bh/BaydjDZ2f/drXHeWE+TFyLbVh9ol4d Xg+51pSOQFfnvOZRPZhOnWkYQxVoAOanyFqlcqyj15zIg6SPVYM4cuWR+HedFzGymX3O vPzg== X-Gm-Message-State: ALyK8tKm7UE966yyDBg0YpEfyVLQ2KLrHycgwNDMSiMAyMkTQYvSeRF213OEC1B6vAZDWw== X-Received: by 10.66.249.74 with SMTP id ys10mr50716609pac.16.1464660117227; Mon, 30 May 2016 19:01:57 -0700 (PDT) Received: from localhost ([106.247.248.2]) by smtp.gmail.com with ESMTPSA id ez6sm50248184pab.12.2016.05.30.19.01.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 19:01:56 -0700 (PDT) From: YongHyeon PYUN X-Google-Original-From: "YongHyeon PYUN" Received: by localhost (sSMTP sendmail emulation); Tue, 31 May 2016 11:01:49 +0900 Date: Tue, 31 May 2016 11:01:49 +0900 To: =?EUC-KR?B?0KTQvtGB0YHQsA==?= Cc: freebsd-drivers@freebsd.org Subject: Re: Marvell Yukon II (msk driver) polling support Message-ID: <20160531020149.GB1181@michelle.fasterthan.co.kr> Reply-To: pyunyh@gmail.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2016 02:01:58 -0000 On Mon, May 30, 2016 at 03:59:12PM +0300, ?????????? via freebsd-drivers wrote: > Do I understand correctly, that I need to move msk_intr_gmac() to > polling loop? > Since polling(4) does not rely on interrupts, you have to periodically check all possible status change in the loop. Most polling-enabled drivers do that when the callback is called with POLL_AND_CHECK_STATUS poll_cmd.