From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D737CE79CE for ; Wed, 20 Sep 2023 13:37:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234564AbjITNhI (ORCPT ); Wed, 20 Sep 2023 09:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233952AbjITNhI (ORCPT ); Wed, 20 Sep 2023 09:37:08 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 951EC91 for ; Wed, 20 Sep 2023 06:37:02 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="444314313" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="444314313" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 06:37:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="740212810" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="740212810" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 06:36:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qixNv-0000000DkxF-1arK; Wed, 20 Sep 2023 16:36:55 +0300 Date: Wed, 20 Sep 2023 16:36:55 +0300 From: Andy Shevchenko To: Linus Walleij Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Gregory CLEMENT , Arnd Bergmann , soc@kernel.org, arm@kernel.org, Bartosz Golaszewski , linux-gpio@vger.kernel.org, Dmitry Torokhov Subject: Re: [PATCH v2 3/7] platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs Message-ID: References: <20230919103815.16818-1-kabel@kernel.org> <20230919103815.16818-4-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Wed, Sep 20, 2023 at 01:58:37PM +0200, Linus Walleij wrote: > On Tue, Sep 19, 2023 at 12:38 PM Marek Behún wrote: ... > > + if (type & IRQ_TYPE_EDGE_RISING) > > + mcu->rising |= bit; > > + else > > + mcu->rising &= ~bit; > > And with bits in place of bitmasks these would be > > if () > __set_bit(bit, mcu->rising); > else > __clear_bit(bit, mcu->rising); More precisely __assign_bit() in this case. -- With Best Regards, Andy Shevchenko