All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <pure.logic@nexus-software.ie>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/9] riscv: Define PLATFORM__CLEAR_BIT for generic_clear_bit()
Date: Mon, 30 Apr 2018 15:56:04 +0100	[thread overview]
Message-ID: <20180430145610.18250-4-pure.logic@nexus-software.ie> (raw)
In-Reply-To: <20180430145610.18250-1-pure.logic@nexus-software.ie>

riscv bitops.h provides a __clear_bit() but does not define
PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the
architecturally provided __clear_bit().

This patch defines PLATFORM__CLEAR_BIT which means that __clear_bit() in
riscv bitops.h will be called whenever generic_clear_bit() is called - as
opposed to the default cross-platform generic_clear_bit().

Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Cc: Rick Chen <rick@andestech.com>
Cc: Greentime Hu <green.hu@gmail.com>
---
 arch/riscv/include/asm/bitops.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/riscv/include/asm/bitops.h b/arch/riscv/include/asm/bitops.h
index 0149e5c696..536629bbec 100644
--- a/arch/riscv/include/asm/bitops.h
+++ b/arch/riscv/include/asm/bitops.h
@@ -54,6 +54,8 @@ static inline void __clear_bit(int nr, void *addr)
 	*a &= ~mask;
 }
 
+#define PLATFORM__CLEAR_BIT
+
 static inline void __change_bit(int nr, void *addr)
 {
 	int mask;
-- 
2.17.0

  parent reply	other threads:[~2018-04-30 14:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30 14:56 [U-Boot] [PATCH v3 0/9] Fixup set_bit/clear_bit definition and usage Bryan O'Donoghue
2018-04-30 14:56 ` [U-Boot] [PATCH v3 1/9] x86: Define PLATFORM__SET_BIT for generic_set_bit() Bryan O'Donoghue
2018-05-16 12:49   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 2/9] riscv: " Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` Bryan O'Donoghue [this message]
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, 3/9] riscv: Define PLATFORM__CLEAR_BIT for generic_clear_bit() Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 4/9] nios2: Define PLATFORM__SET_BIT for generic_set_bit() Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 5/9] nios2: Define PLATFORM__CLEAR_BIT for generic_clear_bit() Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 6/9] nds32: Define PLATFORM__SET_BIT for generic_set_bit() Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 7/9] nds32: Define PLATFORM__CLEAR_BIT for generic_clear_bit() Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 8/9] usb: f_mass_storage: Fix set_bit and clear_bit usage Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-04-30 14:56 ` [U-Boot] [PATCH v3 9/9] usb: composite convert __set_bit to generic_set_bit Bryan O'Donoghue
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-05-10 22:26 ` [U-Boot] [PATCH v3 0/9] Fixup set_bit/clear_bit definition and usage Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180430145610.18250-4-pure.logic@nexus-software.ie \
    --to=pure.logic@nexus-software.ie \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.