All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <florian@openwrt.org>
To: Bruno Randolf <randolf.bruno@googlemail.com>
Cc: linux-mips@linux-mips.org, manuel.lauss@googlemail.com,
	ralf@linux-mips.org
Subject: Re: [PATCH 2/2] MIPS: MTX-1: cleanup and comments
Date: Sun, 11 Jul 2010 19:11:01 +0200	[thread overview]
Message-ID: <201007111911.02200.florian@openwrt.org> (raw)
In-Reply-To: <20100711154038.29863.23111.stgit@void>

Le Sunday 11 July 2010 17:40:38, Bruno Randolf a écrit :
> Add some comments about mtx1_pci_idsel() and remove a dead block of old
> code.
> 
> Signed-off-by: Bruno Randolf <br1@einfach.org>

Acked-by: Florian Fainelli <florian@openwrt.org>

> ---
>  arch/mips/alchemy/mtx-1/board_setup.c |   12 ++++--------
>  1 files changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/mips/alchemy/mtx-1/board_setup.c
> b/arch/mips/alchemy/mtx-1/board_setup.c index 52d883d..3cf2fa2 100644
> --- a/arch/mips/alchemy/mtx-1/board_setup.c
> +++ b/arch/mips/alchemy/mtx-1/board_setup.c
> @@ -105,14 +105,10 @@ void __init board_setup(void)
>  int
>  mtx1_pci_idsel(unsigned int devsel, int assert)
>  {
> -#define MTX_IDSEL_ONLY_0_AND_3 0
> -#if MTX_IDSEL_ONLY_0_AND_3
> -	if (devsel != 0 && devsel != 3) {
> -		printk(KERN_ERR "*** not 0 or 3\n");
> -		return 0;
> -	}
> -#endif
> -
> +	/* This function is only necessary to support a proprietary Cardbus
> +	 * adapter on the mtx-1 "singleboard" variant. It triggers a custom
> +	 * logic chip connected to EXT_IO3 (GPIO1) to suppress IDSEL signals.
> +	 */
>  	if (assert && devsel != 0)
>  		/* Suppress signal to Cardbus */
>  		alchemy_gpio_set_value(1, 0);	/* set EXT_IO3 OFF */

  reply	other threads:[~2010-07-11 17:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-11 15:40 [PATCH 1/2] MIPS: MTX-1: fix PCI on the MeshCube and related boards Bruno Randolf
2010-07-11 15:40 ` [PATCH 2/2] MIPS: MTX-1: cleanup and comments Bruno Randolf
2010-07-11 17:11   ` Florian Fainelli [this message]
2010-07-11 22:34   ` Ralf Baechle
2010-07-11 17:10 ` [PATCH 1/2] MIPS: MTX-1: fix PCI on the MeshCube and related boards Florian Fainelli
2010-07-11 22:25 ` Ralf Baechle

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=201007111911.02200.florian@openwrt.org \
    --to=florian@openwrt.org \
    --cc=linux-mips@linux-mips.org \
    --cc=manuel.lauss@googlemail.com \
    --cc=ralf@linux-mips.org \
    --cc=randolf.bruno@googlemail.com \
    /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.