lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 16 Jan 2012 11:02:24 -0500
From:	"Bishop, Mark" <Mark.Bishop@...perindustries.com>
To:	<netdev@...r.kernel.org>
Subject: Question with interfacing to a SMSC9215

I'm working on a custom board and I have most of it working expect for
the connection to the smsc 9215.  The board is based off the bf548 ezkit
(arch/blackfin/mach-bf548/boards/ezkit.c) and in there they have the INT
to the 9215 set to IRQ_PE8.  On my board I need to have it set to PG12.
I made the change to the file, but I am getting this:

smsc911x: Driver version 2008-10-21.
setting trigger mode 8 for irq 211 failed
(_bfin_gpio_irq_type+0x0/0x1e4)

I have verified that my pull up resistor for the INT is present and that
it is set for active low.  What else am I missing?

#include <linux/smsc911x.h>

static struct resource smsc911x_resources[] = {
        {
                .name = "smsc911x-memory",
                .start = 0x24000000,
                .end = 0x24000000 + 0xFF,
                .flags = IORESOURCE_MEM,
        },
        {
                /* .start = IRQ_PE8, */
                /* .end = IRQ_PE8, */
                .start = IRQ_PG12,
                .end = IRQ_PG12,
                .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
        },
};

static struct smsc911x_platform_config smsc911x_config = {
        .flags = SMSC911X_USE_32BIT, 
        .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
        .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
        .phy_interface = PHY_INTERFACE_MODE_MII,
};

static struct platform_device smsc911x_device = {
        .name = "smsc911x",
        .id = 0,
        .num_resources = ARRAY_SIZE(smsc911x_resources),
        .resource = smsc911x_resources,
        .dev = {
                .platform_data = &smsc911x_config,
        },
};

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ