From: Christoph Hellwig <hch@lst.de>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
gregkh@linuxfoundation.org, hch@lst.de,
linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2] usb-storage: Add a limitation for blk_queue_max_hw_sectors()
Date: Thu, 13 Jun 2019 19:11:12 +0200 [thread overview]
Message-ID: <20190613171112.GA22155@lst.de> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1906131258310.1307-100000@iolanthe.rowland.org>
On Thu, Jun 13, 2019 at 01:06:40PM -0400, Alan Stern wrote:
> Hmmm. Would it be easier instead to copy the DMA mapping parameters
> from us->pusb_dev->bus->sysdev into the SCSI host's parent before
> calling scsi_add_host()? That way the correct values would be
> available from the beginning, so the existing DMA setup would
> automatically use the correct sizes.
It would in theory. But at usb-storage has a special max_sectors quirk
for tape devices, and as the device type is a per-LU property we'd
still have to override it in ->slave_configure.
next prev parent reply other threads:[~2019-06-13 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-13 9:36 [PATCH v2] usb-storage: Add a limitation for blk_queue_max_hw_sectors() Yoshihiro Shimoda
2019-06-13 17:06 ` Alan Stern
2019-06-13 17:11 ` Christoph Hellwig [this message]
2019-06-13 17:21 ` Alan Stern
2019-06-17 4:17 ` Yoshihiro Shimoda
2019-06-17 6:22 ` Christoph Hellwig
2019-07-02 10:07 ` Yoshihiro Shimoda
2019-07-02 13:49 ` Suwan Kim
2019-07-02 14:06 ` shuah
2019-07-02 14:28 ` Alan Stern
2019-07-03 3:10 ` Yoshihiro Shimoda
2019-07-03 14:19 ` Alan Stern
2019-07-04 10:37 ` Yoshihiro Shimoda
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=20190613171112.GA22155@lst.de \
--to=hch@lst.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=usb-storage@lists.one-eyed-alien.net \
--cc=yoshihiro.shimoda.uh@renesas.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).