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 4/9] nios2: Define PLATFORM__SET_BIT for generic_set_bit()
Date: Mon, 30 Apr 2018 15:56:05 +0100	[thread overview]
Message-ID: <20180430145610.18250-5-pure.logic@nexus-software.ie> (raw)
In-Reply-To: <20180430145610.18250-1-pure.logic@nexus-software.ie>

nios2 bitops.h provides a __set_bit() but does not define PLATFORM__SET_BIT
as a result generic_set_bit() is used instead of the architecturally
provided __set_bit().

This patch defines PLATFORM__SET_BIT which means that __set_bit() in nios2
bitops.h will be called whenever generic_set_bit() is called - as opposed
to the default cross-platform generic_set_bit().

Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Cc: Thomas Chou <thomas@wytron.com.tw>
---
 arch/nios2/include/asm/bitops/non-atomic.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/nios2/include/asm/bitops/non-atomic.h b/arch/nios2/include/asm/bitops/non-atomic.h
index 697cc2b7e0..9dd9d923e1 100644
--- a/arch/nios2/include/asm/bitops/non-atomic.h
+++ b/arch/nios2/include/asm/bitops/non-atomic.h
@@ -20,6 +20,8 @@ static inline void __set_bit(int nr, volatile unsigned long *addr)
 	*p  |= mask;
 }
 
+#define PLATFORM__SET_BIT
+
 static inline void __clear_bit(int nr, volatile unsigned long *addr)
 {
 	unsigned long mask = BIT_MASK(nr);
-- 
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 ` [U-Boot] [PATCH v3 3/9] riscv: 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 ` Bryan O'Donoghue [this message]
2018-05-16 12:50   ` [U-Boot] [U-Boot, v3, 4/9] nios2: Define PLATFORM__SET_BIT for generic_set_bit() 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-5-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.