linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Regression introduced by 6f381fa344911d5a234b13574433cf23036f9467 [[SCSI] scsi_lib: use correct DMA device in __scsi_alloc_queue]
       [not found]   ` <20120507175039.GA6423@phenom.dumpdata.com>
@ 2012-05-07 18:36     ` Geert Uytterhoeven
  0 siblings, 0 replies; only message in thread
From: Geert Uytterhoeven @ 2012-05-07 18:36 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Lin Ming, JBottomley, joerg, linux-kernel, scsi, Al Viro

On Mon, May 7, 2012 at 7:50 PM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
>> > reverting above mentioned git commit fixes the issue.
>>
>> Does Jame's below patch help?
>>
>> http://www.spinics.net/lists/linux-scsi/msg59106.html
>
> Yes.  please add Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> on the latter part of that patch:

Same issue here with Atari NCR5380 SCSI on ARAnyM.
After the fix below, v3.4-rc6 boots, so

Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>

BTW, any git tree that has the original patch, so I don't have to commit the
HTML-mangled version from spinics to the m68k tree?

> diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
> index 351dc0b..a3a056a 100644
> --- a/drivers/scsi/hosts.c
> +++ b/drivers/scsi/hosts.c
> @@ -218,6 +218,9 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,
>
>        if (!shost->shost_gendev.parent)
>                shost->shost_gendev.parent = dev ? dev : &platform_bus;
> +       if (!dma_dev)
> +               dma_dev = shost->shost_gendev.parent;
> +
>        shost->dma_dev = dma_dev;
>
>        error = device_add(&shost->shost_gendev);

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-07 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120507135238.GC361@phenom.dumpdata.com>
     [not found] ` <CAF1ivSZNH3R-U=d=yBW4m9PO8TQSbSP=dHR3okdsO7EkOm2RMQ@mail.gmail.com>
     [not found]   ` <20120507175039.GA6423@phenom.dumpdata.com>
2012-05-07 18:36     ` Regression introduced by 6f381fa344911d5a234b13574433cf23036f9467 [[SCSI] scsi_lib: use correct DMA device in __scsi_alloc_queue] Geert Uytterhoeven

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).