* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option
@ 2014-11-04 10:28 Fabio Estevam
2014-11-04 11:07 ` Shawn Guo
2014-11-04 15:26 ` Uwe Kleine-König
0 siblings, 2 replies; 8+ messages in thread
From: Fabio Estevam @ 2014-11-04 10:28 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@freescale.com>
Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit
0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI
selection was dropped by savedefconfig for imx_v4_v5_defconfig and
imx_v6_v7_defconfig.
In order to keep the same behaviour as previous kernel versions and avoid
regressions, let's add CONFIG_SPI option back.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- Add commit id's that caused the issue.
Shawn,
If possible, please apply this as a bug fix for 3.18.
arch/arm/configs/imx_v4_v5_defconfig | 1 +
arch/arm/configs/imx_v6_v7_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/configs/imx_v4_v5_defconfig b/arch/arm/configs/imx_v4_v5_defconfig
index e688741..e6b0007 100644
--- a/arch/arm/configs/imx_v4_v5_defconfig
+++ b/arch/arm/configs/imx_v4_v5_defconfig
@@ -97,6 +97,7 @@ CONFIG_SERIAL_IMX_CONSOLE=y
# CONFIG_HW_RANDOM is not set
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_IMX=y
+CONFIG_SPI=y
CONFIG_SPI_IMX=y
CONFIG_SPI_SPIDEV=y
CONFIG_GPIO_SYSFS=y
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 8fca6e2..6790f1b 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -158,6 +158,7 @@ CONFIG_I2C_CHARDEV=y
CONFIG_I2C_ALGOPCF=m
CONFIG_I2C_ALGOPCA=m
CONFIG_I2C_IMX=y
+CONFIG_SPI=y
CONFIG_SPI_IMX=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_MC9S08DZ60=y
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option 2014-11-04 10:28 [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option Fabio Estevam @ 2014-11-04 11:07 ` Shawn Guo 2014-11-04 15:05 ` Fabio Estevam 2014-11-04 15:26 ` Uwe Kleine-König 1 sibling, 1 reply; 8+ messages in thread From: Shawn Guo @ 2014-11-04 11:07 UTC (permalink / raw) To: linux-arm-kernel On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@freescale.com> > > Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit > 0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI > selection was dropped by savedefconfig for imx_v4_v5_defconfig and > imx_v6_v7_defconfig. > > In order to keep the same behaviour as previous kernel versions and avoid > regressions, let's add CONFIG_SPI option back. > > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Applied, thanks. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option 2014-11-04 11:07 ` Shawn Guo @ 2014-11-04 15:05 ` Fabio Estevam 0 siblings, 0 replies; 8+ messages in thread From: Fabio Estevam @ 2014-11-04 15:05 UTC (permalink / raw) To: linux-arm-kernel Shawn, On Tue, Nov 4, 2014 at 9:07 AM, Shawn Guo <shawn.guo@linaro.org> wrote: > On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: >> From: Fabio Estevam <fabio.estevam@freescale.com> >> >> Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit >> 0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI >> selection was dropped by savedefconfig for imx_v4_v5_defconfig and >> imx_v6_v7_defconfig. >> >> In order to keep the same behaviour as previous kernel versions and avoid >> regressions, let's add CONFIG_SPI option back. >> >> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> > > Applied, thanks. I have just sent a v3, with an explanation as to why savedefconfig dropped CONFIG_SPI=y. Thanks to Uwe for his analysis! ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option 2014-11-04 10:28 [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option Fabio Estevam 2014-11-04 11:07 ` Shawn Guo @ 2014-11-04 15:26 ` Uwe Kleine-König 2014-11-04 15:55 ` Antti Palosaari 1 sibling, 1 reply; 8+ messages in thread From: Uwe Kleine-König @ 2014-11-04 15:26 UTC (permalink / raw) To: linux-arm-kernel [Note, this is a resend of a mail I accidently only sent to Fabio before.] Hello, On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@freescale.com> > > Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit > 0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI > selection was dropped by savedefconfig for imx_v4_v5_defconfig and > imx_v6_v7_defconfig. > > In order to keep the same behaviour as previous kernel versions and avoid > regressions, let's add CONFIG_SPI option back. > > Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> > --- > Changes since v1: > - Add commit id's that caused the issue. on top of 64546e9fe3a5b8c doing make imx_v6_v7_defconfig resulted in CONFIG_SPI=y. That's because MEDIA_SUBDRV_AUTOSELECT selects SPI and has default y. So the commit that really broke imx_v6_v7_defconfig is 7d24c514e8e0 ([media] Kconfig: do not select SPI bus on sub-driver auto-select). On a side note I wonder how that commit sneaked into v3.17-rc6. I think people need to be more aware of the results of Kconfig changes ... Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option 2014-11-04 15:26 ` Uwe Kleine-König @ 2014-11-04 15:55 ` Antti Palosaari 2014-11-04 19:18 ` Uwe Kleine-König 0 siblings, 1 reply; 8+ messages in thread From: Antti Palosaari @ 2014-11-04 15:55 UTC (permalink / raw) To: linux-arm-kernel Moikka! On 11/04/2014 05:26 PM, Uwe Kleine-K?nig wrote: > [Note, this is a resend of a mail I accidently only sent to Fabio > before.] > > Hello, > > On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: >> From: Fabio Estevam <fabio.estevam@freescale.com> >> >> Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit >> 0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI >> selection was dropped by savedefconfig for imx_v4_v5_defconfig and >> imx_v6_v7_defconfig. >> >> In order to keep the same behaviour as previous kernel versions and avoid >> regressions, let's add CONFIG_SPI option back. >> >> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> >> --- >> Changes since v1: >> - Add commit id's that caused the issue. > on top of 64546e9fe3a5b8c doing > > make imx_v6_v7_defconfig > > resulted in CONFIG_SPI=y. That's because MEDIA_SUBDRV_AUTOSELECT selects > SPI and has default y. > > So the commit that really broke imx_v6_v7_defconfig is 7d24c514e8e0 > ([media] Kconfig: do not select SPI bus on sub-driver auto-select). > On a side note I wonder how that commit sneaked into v3.17-rc6. > > I think people need to be more aware of the results of Kconfig changes I added that SPI select patch for 3.17-rc1 and it was removed right after I got bug report it should not be there. But there was of course some delay and removal patch went to 3.17-rc6. But all in all, it was all happening during 3.17 period and I wonder how it could affect you? Here are related discussions: [GIT PULL for 3.17-rc1] media updates for next https://lkml.org/lkml/2014/8/5/646 Autoselecting SPI for MEDIA_SUBDRV_AUTOSELECT? https://lkml.org/lkml/2014/8/22/325 [PATCH] Kconfig: do not select SPI bus on sub-driver auto-select https://lkml.org/lkml/2014/8/22/452 [GIT PULL 3.17] FIX: remove SPI select from Kconfig http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/81346 [GIT PULL for v3.17-rc6] media fixes https://lkml.org/lkml/2014/9/21/44 regards Antti -- http://palosaari.fi/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option 2014-11-04 15:55 ` Antti Palosaari @ 2014-11-04 19:18 ` Uwe Kleine-König 2014-11-04 19:26 ` Antti Palosaari 0 siblings, 1 reply; 8+ messages in thread From: Uwe Kleine-König @ 2014-11-04 19:18 UTC (permalink / raw) To: linux-arm-kernel Hello, On Tue, Nov 04, 2014 at 05:55:31PM +0200, Antti Palosaari wrote: > On 11/04/2014 05:26 PM, Uwe Kleine-K?nig wrote: > >[Note, this is a resend of a mail I accidently only sent to Fabio > >before.] > > > >Hello, > > > >On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: > >>From: Fabio Estevam <fabio.estevam@freescale.com> > >> > >>Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit > >>0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI > >>selection was dropped by savedefconfig for imx_v4_v5_defconfig and > >>imx_v6_v7_defconfig. > >> > >>In order to keep the same behaviour as previous kernel versions and avoid > >>regressions, let's add CONFIG_SPI option back. > >> > >>Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> > >>--- > >>Changes since v1: > >>- Add commit id's that caused the issue. > >on top of 64546e9fe3a5b8c doing > > > > make imx_v6_v7_defconfig > > > >resulted in CONFIG_SPI=y. That's because MEDIA_SUBDRV_AUTOSELECT selects > >SPI and has default y. > > > >So the commit that really broke imx_v6_v7_defconfig is 7d24c514e8e0 > >([media] Kconfig: do not select SPI bus on sub-driver auto-select). > >On a side note I wonder how that commit sneaked into v3.17-rc6. > > > >I think people need to be more aware of the results of Kconfig changes > > I added that SPI select patch for 3.17-rc1 and it was removed right > after I got bug report it should not be there. But there was of > course some delay and removal patch went to 3.17-rc6. Still I think that -rc6 is quite late for such a patch. But obviously I'm not the relevant maintainer here and YMMV. > But all in all, it was all happening during 3.17 period and I wonder > how it could affect you? Commit 64546e9fe3a5 was based on v3.17-rc3 and so had the "select SPI". That's why savedefconfig removed CONFIG_SPI=y from the minimized config. Dropping the select for -rc6 resulted in imx_v6_v7_defconfig not including CONFIG_SPI any more. I checked all commits listed by: git log --oneline linus/master ^e4462ffc1602 -SCONFIG_SPI and the two imx defconfigs are the only ones being affected by this issue. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option 2014-11-04 19:18 ` Uwe Kleine-König @ 2014-11-04 19:26 ` Antti Palosaari 0 siblings, 0 replies; 8+ messages in thread From: Antti Palosaari @ 2014-11-04 19:26 UTC (permalink / raw) To: linux-arm-kernel Moikka, On 11/04/2014 09:18 PM, Uwe Kleine-K?nig wrote: > Hello, > > On Tue, Nov 04, 2014 at 05:55:31PM +0200, Antti Palosaari wrote: >> On 11/04/2014 05:26 PM, Uwe Kleine-K?nig wrote: >>> [Note, this is a resend of a mail I accidently only sent to Fabio >>> before.] >>> >>> Hello, >>> >>> On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: >>>> From: Fabio Estevam <fabio.estevam@freescale.com> >>>> >>>> Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit >>>> 0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI >>>> selection was dropped by savedefconfig for imx_v4_v5_defconfig and >>>> imx_v6_v7_defconfig. >>>> >>>> In order to keep the same behaviour as previous kernel versions and avoid >>>> regressions, let's add CONFIG_SPI option back. >>>> >>>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> >>>> --- >>>> Changes since v1: >>>> - Add commit id's that caused the issue. >>> on top of 64546e9fe3a5b8c doing >>> >>> make imx_v6_v7_defconfig >>> >>> resulted in CONFIG_SPI=y. That's because MEDIA_SUBDRV_AUTOSELECT selects >>> SPI and has default y. >>> >>> So the commit that really broke imx_v6_v7_defconfig is 7d24c514e8e0 >>> ([media] Kconfig: do not select SPI bus on sub-driver auto-select). >>> On a side note I wonder how that commit sneaked into v3.17-rc6. >>> >>> I think people need to be more aware of the results of Kconfig changes >> >> I added that SPI select patch for 3.17-rc1 and it was removed right >> after I got bug report it should not be there. But there was of >> course some delay and removal patch went to 3.17-rc6. > Still I think that -rc6 is quite late for such a patch. But obviously > I'm not the relevant maintainer here and YMMV. Yes, it is late. I send PULL request last day of rc1, but media fixes are not send for every rc, instead for rc1 and 1-2 times after that, usually very near end of merge window. > >> But all in all, it was all happening during 3.17 period and I wonder >> how it could affect you? > Commit 64546e9fe3a5 was based on v3.17-rc3 and so had the "select SPI". > That's why savedefconfig removed CONFIG_SPI=y from the minimized config. > > Dropping the select for -rc6 resulted in imx_v6_v7_defconfig not > including CONFIG_SPI any more. > > I checked all commits listed by: > > git log --oneline linus/master ^e4462ffc1602 -SCONFIG_SPI > > and the two imx defconfigs are the only ones being affected by this > issue. > > Best regards > Uwe > regards Antti -- http://palosaari.fi/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option @ 2014-11-04 19:26 ` Antti Palosaari 0 siblings, 0 replies; 8+ messages in thread From: Antti Palosaari @ 2014-11-04 19:26 UTC (permalink / raw) To: Uwe Kleine-König Cc: Fabio Estevam, shawn.guo, Fabio Estevam, linux-arm-kernel, Jeff Mahoney, Mauro Carvalho Chehab, LMML Moikka, On 11/04/2014 09:18 PM, Uwe Kleine-König wrote: > Hello, > > On Tue, Nov 04, 2014 at 05:55:31PM +0200, Antti Palosaari wrote: >> On 11/04/2014 05:26 PM, Uwe Kleine-König wrote: >>> [Note, this is a resend of a mail I accidently only sent to Fabio >>> before.] >>> >>> Hello, >>> >>> On Tue, Nov 04, 2014 at 08:28:47AM -0200, Fabio Estevam wrote: >>>> From: Fabio Estevam <fabio.estevam@freescale.com> >>>> >>>> Since 64546e9fe3a5b8c ("ARM: imx_v6_v7_defconfig updates") and commit >>>> 0650f855d2e4b0b9 ("ARM: imx_v4_v5_defconfig: Select CONFIG_IMX_WEIM") CONFIG_SPI >>>> selection was dropped by savedefconfig for imx_v4_v5_defconfig and >>>> imx_v6_v7_defconfig. >>>> >>>> In order to keep the same behaviour as previous kernel versions and avoid >>>> regressions, let's add CONFIG_SPI option back. >>>> >>>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> >>>> --- >>>> Changes since v1: >>>> - Add commit id's that caused the issue. >>> on top of 64546e9fe3a5b8c doing >>> >>> make imx_v6_v7_defconfig >>> >>> resulted in CONFIG_SPI=y. That's because MEDIA_SUBDRV_AUTOSELECT selects >>> SPI and has default y. >>> >>> So the commit that really broke imx_v6_v7_defconfig is 7d24c514e8e0 >>> ([media] Kconfig: do not select SPI bus on sub-driver auto-select). >>> On a side note I wonder how that commit sneaked into v3.17-rc6. >>> >>> I think people need to be more aware of the results of Kconfig changes >> >> I added that SPI select patch for 3.17-rc1 and it was removed right >> after I got bug report it should not be there. But there was of >> course some delay and removal patch went to 3.17-rc6. > Still I think that -rc6 is quite late for such a patch. But obviously > I'm not the relevant maintainer here and YMMV. Yes, it is late. I send PULL request last day of rc1, but media fixes are not send for every rc, instead for rc1 and 1-2 times after that, usually very near end of merge window. > >> But all in all, it was all happening during 3.17 period and I wonder >> how it could affect you? > Commit 64546e9fe3a5 was based on v3.17-rc3 and so had the "select SPI". > That's why savedefconfig removed CONFIG_SPI=y from the minimized config. > > Dropping the select for -rc6 resulted in imx_v6_v7_defconfig not > including CONFIG_SPI any more. > > I checked all commits listed by: > > git log --oneline linus/master ^e4462ffc1602 -SCONFIG_SPI > > and the two imx defconfigs are the only ones being affected by this > issue. > > Best regards > Uwe > regards Antti -- http://palosaari.fi/ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-11-04 19:26 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-11-04 10:28 [PATCH v2] ARM: imx: Fix the removal of CONFIG_SPI option Fabio Estevam 2014-11-04 11:07 ` Shawn Guo 2014-11-04 15:05 ` Fabio Estevam 2014-11-04 15:26 ` Uwe Kleine-König 2014-11-04 15:55 ` Antti Palosaari 2014-11-04 19:18 ` Uwe Kleine-König 2014-11-04 19:26 ` Antti Palosaari 2014-11-04 19:26 ` Antti Palosaari
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.