From: Ingo Molnar <mingo@kernel.org>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Sreekanth.Reddy@avagotech.com, hch@lst.de, hare@suse.de,
linux-kernel@vger.kernel.org
Subject: Re: MPT2SAS boot fail... due to silently loosing the driver
Date: Thu, 26 Nov 2015 11:48:23 +0100 [thread overview]
Message-ID: <20151126104823.GA8745@gmail.com> (raw)
In-Reply-To: <yq1wpt7li62.fsf@sermon.lab.mkp.net>
* Martin K. Petersen <martin.petersen@oracle.com> wrote:
> >>>>> "Peter" == Peter Zijlstra <peterz@infradead.org> writes:
>
> Peter> Please either create a fake MPT2SAS config that selects the
> Peter> MPT3SAS driver, or rename the whole thing to MPT23SAS such that
> Peter> we at least get a relevant question on oldconfig.
>
> Sorry about that, Peter.
>
> I get bitten by oldconfig all the time so I have a script to manage all
> my configs. But it it would be nice if we had a way to express config
> options transitions in kbuild.
>
> I guess we could do something like the following and let it sit for a
> release cycle to help people transition. Bit of a hack, but it worked
> for me in my quick testing...
>
> --
> Martin K. Petersen Oracle Linux Engineering
>
> diff --git a/drivers/scsi/mpt3sas/Kconfig b/drivers/scsi/mpt3sas/Kconfig
> index 29061467cc17..901c97f1e368 100644
> --- a/drivers/scsi/mpt3sas/Kconfig
> +++ b/drivers/scsi/mpt3sas/Kconfig
> @@ -48,6 +48,13 @@ config SCSI_MPT3SAS
> ---help---
> This driver supports PCI-Express SAS 12Gb/s Host Adapters.
>
> +config SCSI_MPT2SAS
> + tristate
> + default n
> + select SCSI_MPT3SAS
> + ---help---
> + Dummy config option for backwards compatiblity.
So I don't think this does what you expect it to do: non-interactive options will
be set to their defaults, regardless of what's in the oldconfig.
So you need to make it interactive, with a short help text that explains to users
that this is legacy option only, and that they should enable the MPT3SAS option if
they want to configure things manually.
i.e. something like:
+config SCSI_MPT2SAS
+ tristate "Legacy MPT2SAS config option"
+ default n
+ select SCSI_MPT3SAS
+ ---help---
+ Dummy config option for backwards compatiblity: configure the MPT3SAS
+ driver instead.
Thanks,
Ingo
next prev parent reply other threads:[~2015-11-26 10:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 12:46 MPT2SAS boot fail... due to silently loosing the driver Peter Zijlstra
2015-11-24 7:51 ` Christoph Hellwig
2015-11-24 7:54 ` Hannes Reinecke
2015-11-24 7:56 ` Christoph Hellwig
2015-11-24 8:04 ` Ingo Molnar
2015-11-24 12:02 ` Martin K. Petersen
2015-11-26 10:48 ` Ingo Molnar [this message]
2015-11-30 17:21 ` Martin K. Petersen
2015-11-30 17:24 ` Christoph Hellwig
2015-11-30 17:27 ` James Bottomley
2015-12-01 9:49 ` Sreekanth Reddy
2015-12-02 9:57 ` Ingo Molnar
2015-11-26 10:51 ` Ingo Molnar
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=20151126104823.GA8745@gmail.com \
--to=mingo@kernel.org \
--cc=Sreekanth.Reddy@avagotech.com \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=peterz@infradead.org \
/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