From owner-freebsd-arch@freebsd.org Tue Jun 30 14:46:24 2020 Return-Path: Delivered-To: freebsd-arch@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7382B34D305 for ; Tue, 30 Jun 2020 14:46:24 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49x6cc1mZVz4VB9 for ; Tue, 30 Jun 2020 14:46:24 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 3CAEA34D304; Tue, 30 Jun 2020 14:46:24 +0000 (UTC) Delivered-To: arch@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3C79834CE70 for ; Tue, 30 Jun 2020 14:46:24 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49x6cb6YJjz4VNR; Tue, 30 Jun 2020 14:46:23 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32c.google.com with SMTP id l2so18382183wmf.0; Tue, 30 Jun 2020 07:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=xYJYJ+ZXWBHDIGP3HnruqZmrhsEnlnqOxwNZLIjFziw=; b=DzarSTMZcdHRWy2HO1ro5PsbRbEkVODSCvWY6HrOOMSrT7it3v92lTtr9M7oEbAPNa LjCY8GyUAmcw6DdxPlLxWNC0EKNKXCPSwPadUq+8rvCu6djGaBHbaIzBelYEnj2bka3M 1DODrR3riH+HO1yghcLYezwPfLqmPC0YI5yicgPU8EgwSALEKRMhZqEukQAM57DGXi32 KZo+tq2AdtJC0B6cbqs9pgWJg/5kNwP2+nuWfRsBk1vGTNJht2oDsTfmRCM/C6upr6qa qgct5gVbc6VAJtBHbQXFUKpyLRipiokhqxAo7xlXyA84flRAX5mo1mNWJdR2CaVQ3o1b 6kwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=xYJYJ+ZXWBHDIGP3HnruqZmrhsEnlnqOxwNZLIjFziw=; b=WqOPWobKCg92O9hPvtplXeQ8H+vg7a02SVEgn5vEjf55gJg4mbsIDMp7y8ymfEU5GN T5xDZUYEfsTGup48q4YgEvTPDHIjMY0dzRK4XBB+CkPP0calPgdKUYcWB/R2m03AVXY7 3xZO3zD7VjCedaYOyq8ZYEp/9fkW7P/hsFrr0m59kkHd+R1CNOc1UfGf6MEWkgZ41Jsf QRFo81b3JT2BJusAjuBIsYoIorOTbTm3lp9vPqShpejNNGhXN6tabfIYzuHrdblVyCYQ HrbwO1/VTilI/1PVzhok9layUaXgfIfp4sA7P3iHuMttPtKmkK2pPOgPEq47NmG57tbl Onwg== X-Gm-Message-State: AOAM530PG2isgZLrU0fbtDRX98QhSQ1YM6rWCJ+0zab9G5Q7Cntczoww lDtE7nx8T4Da8pMZUCCm419OncCY X-Google-Smtp-Source: ABdhPJxCKq5J8OHFHQMSyUUu3grEEkv1mvYi9iKt80x5jf145pL9DQjCNynpJRRygUHjtYMfXjxfmA== X-Received: by 2002:a1c:e90a:: with SMTP id q10mr23010596wmc.140.1593528381842; Tue, 30 Jun 2020 07:46:21 -0700 (PDT) Received: from ernst.home (p5b023f3b.dip0.t-ipconnect.de. [91.2.63.59]) by smtp.gmail.com with ESMTPSA id c143sm35673084wmd.1.2020.06.30.07.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 07:46:21 -0700 (PDT) Date: Tue, 30 Jun 2020 16:46:13 +0200 From: Gary Jennejohn To: Andriy Gapon Cc: arch@FreeBSD.org Subject: Re: INTR_POLARITY_BOTH_EDGES? Message-ID: <20200630164613.0ca1d6d3@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49x6cb6YJjz4VNR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Spam: Yes X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 14:46:24 -0000 On Tue, 30 Jun 2020 11:22:42 +0300 Andriy Gapon wrote: > What do you think about adding this to intr_polarity ? > I think that it's useful for two reasons: > - support for GPIO interrupts of that kind (GPIO_INTR_EDGE_BOTH) > - symmetry with ACPI's ACPI_ACTIVE_BOTH (which probably exists for GPIO as well) > This new polarity is to be valid only with INTR_TRIGGER_EDGE as the name (and > sanity) implies. > > By the way, the name is a open for bikeshedding. > Seems reasonable, but to my embedded-software developer's ear INTR_ACTIVE_BOTH_EDGES makes more sense. I mean, a signal may have a polarity, but an interrupt does not. -- Gary Jennejohn