linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Luciano Coelho <luciano.coelho@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"tony@atomide.com" <tony@atomide.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Ohad Ben-Cohen <ohad@wizery.com>
Subject: Re: [PATCH v2] omap: beagle: add support for wl1271 on the board file
Date: Thu, 23 Sep 2010 14:45:28 +0300	[thread overview]
Message-ID: <20100923114528.GL4580@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <1285230003-5065-1-git-send-email-luciano.coelho@nokia.com>

Hi,

On Thu, Sep 23, 2010 at 03:20:03AM -0500, Luciano Coelho wrote:
> static struct mtd_partition omap3beagle_nand_partitions[] = {
>@@ -163,12 +168,25 @@ static void __init beagle_display_init(void)
>
> #include "sdram-micron-mt46h32m32lf-6.h"
>
>+struct wl12xx_platform_data omap_beagle_wlan_data __initdata = {
>+	.irq = OMAP_GPIO_IRQ(OMAP_BEAGLE_WLAN_IRQ_GPIO),

can you pass IRQ as a struct resource ?

>+	.board_ref_clock = 2, /* 38.4 MHz */
>+};
>+
> static struct omap2_hsmmc_info mmc[] = {
> 	{
> 		.mmc		= 1,
> 		.wires		= 8,
> 		.gpio_wp	= 29,
> 	},
>+	{
>+		.name           = "wl1271",
>+		.mmc            = 2,
>+		.wires          = 4,
>+		.gpio_wp        = -EINVAL,
>+		.gpio_cd        = -EINVAL,
>+		.nonremovable   = true,
>+	},
> 	{}	/* Terminator */
> };
>
>@@ -176,10 +194,43 @@ static struct regulator_consumer_supply beagle_vmmc1_supply = {
> 	.supply			= "vmmc",
> };
>
>+static struct regulator_consumer_supply beagle_vmmc2_supply = {
>+	.supply         = "vmmc",
>+	.dev_name       = "mmci-omap-hs.1",
>+};

this should be:

static struct regulator_consume_supply beagle_vmmc2_supplies = {
	{
		.supply		= "vmmc",
		.dev_name	= "mmci-omap-hs.1",
	},
};

>+static struct regulator_init_data beagle_vmmc2 = {
>+	.constraints = {
>+		.valid_ops_mask = REGULATOR_CHANGE_STATUS,
>+	},
>+	.num_consumer_supplies = 1,
>+	.consumer_supplies = &beagle_vmmc2_supply,

please tabify, it's easier for reading, same for all below:

	constrants	= {
		.valid_ops_mask	= REGULATOR_CHANGE_STATUS,
	},
	.num_consumer_supplies	= ARRAY_SIZE(beagle_vmmc2_supplies),
	.consumer_supplies	= beagle_vmmc2_supplies,

>@@ -464,9 +528,14 @@ static struct omap_musb_board_data musb_board_data = {
> static void __init omap3_beagle_init(void)
> {
> 	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
>+	if (wl12xx_set_platform_data(&omap_beagle_wlan_data))
>+		pr_err("error setting wl12xx data\n");
>+
> 	omap3_beagle_i2c_init();
> 	platform_add_devices(omap3_beagle_devices,
> 			ARRAY_SIZE(omap3_beagle_devices));
>+	platform_device_register(&omap_vwlan_device);
>+

trailing blank line. Also, you could just add omap_vwlan_device to
omap3_beagle_devices.

>diff --git a/drivers/net/wireless/wl12xx/wl1271.h b/drivers/net/wireless/wl12xx/wl1271.h
>index 4134f44..8bb028e 100644
>--- a/drivers/net/wireless/wl12xx/wl1271.h
>+++ b/drivers/net/wireless/wl12xx/wl1271.h
>@@ -60,7 +60,7 @@ enum {
> 	DEBUG_ALL	= ~0,
> };
>
>-#define DEBUG_LEVEL (DEBUG_NONE)
>+#define DEBUG_LEVEL (DEBUG_MAC80211 | DEBUG_CMD | DEBUG_ACX | DEBUG_BOOT)

some debugging trash came into commit ??

-- 
balbi

  parent reply	other threads:[~2010-09-23 11:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23  8:20 [PATCH v2] omap: beagle: add support for wl1271 on the board file Luciano Coelho
2010-09-23 10:30 ` Grazvydas Ignotas
2010-09-23 11:56   ` Luciano Coelho
2010-09-23 12:03   ` Robert Nelson
2010-09-23 12:52     ` Luciano Coelho
2010-09-23 13:42       ` Robert Nelson
2010-09-23 18:52         ` Luciano Coelho
2010-09-23 11:45 ` Felipe Balbi [this message]
2010-09-23 12:17   ` Luciano Coelho
2010-09-23 12:20     ` Felipe Balbi
2010-09-23 12:28       ` Luciano Coelho
2010-09-23 12:29         ` Felipe Balbi
2010-09-23 12:46       ` Ohad Ben-Cohen
2010-09-23 12:50         ` Felipe Balbi

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=20100923114528.GL4580@legolas.emea.dhcp.ti.com \
    --to=balbi@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luciano.coelho@nokia.com \
    --cc=ohad@wizery.com \
    --cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).