linux
5 years agoMerge remote-tracking branch 'watchdog/master'
Stephen Rothwell [Fri, 8 Feb 2019 03:03:25 +0000 (14:03 +1100)]
Merge remote-tracking branch 'watchdog/master'

5 years agoMerge remote-tracking branch 'tpmdd/next'
Stephen Rothwell [Fri, 8 Feb 2019 03:01:18 +0000 (14:01 +1100)]
Merge remote-tracking branch 'tpmdd/next'

5 years agoMerge remote-tracking branch 'selinux/next'
Stephen Rothwell [Fri, 8 Feb 2019 02:59:12 +0000 (13:59 +1100)]
Merge remote-tracking branch 'selinux/next'

5 years agoMerge remote-tracking branch 'integrity/next-integrity'
Stephen Rothwell [Fri, 8 Feb 2019 02:57:05 +0000 (13:57 +1100)]
Merge remote-tracking branch 'integrity/next-integrity'

5 years agoMerge remote-tracking branch 'apparmor/apparmor-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:54:58 +0000 (13:54 +1100)]
Merge remote-tracking branch 'apparmor/apparmor-next'

5 years agoMerge remote-tracking branch 'security/next-testing'
Stephen Rothwell [Fri, 8 Feb 2019 02:44:44 +0000 (13:44 +1100)]
Merge remote-tracking branch 'security/next-testing'

5 years agoMerge remote-tracking branch 'regulator/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:42:31 +0000 (13:42 +1100)]
Merge remote-tracking branch 'regulator/for-next'

5 years agoMerge remote-tracking branch 'battery/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:40:25 +0000 (13:40 +1100)]
Merge remote-tracking branch 'battery/for-next'

5 years agoMerge remote-tracking branch 'backlight/for-backlight-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:38:57 +0000 (13:38 +1100)]
Merge remote-tracking branch 'backlight/for-backlight-next'

5 years agoMerge remote-tracking branch 'mfd/for-mfd-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:36:46 +0000 (13:36 +1100)]
Merge remote-tracking branch 'mfd/for-mfd-next'

5 years agoMerge remote-tracking branch 'kgdb/kgdb-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:32:15 +0000 (13:32 +1100)]
Merge remote-tracking branch 'kgdb/kgdb-next'

5 years agoMerge remote-tracking branch 'mmc/next'
Stephen Rothwell [Fri, 8 Feb 2019 02:30:04 +0000 (13:30 +1100)]
Merge remote-tracking branch 'mmc/next'

5 years agoMerge remote-tracking branch 'device-mapper/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:28:34 +0000 (13:28 +1100)]
Merge remote-tracking branch 'device-mapper/for-next'

5 years agoMerge remote-tracking branch 'block/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 02:26:24 +0000 (13:26 +1100)]
Merge remote-tracking branch 'block/for-next'

5 years agoMerge remote-tracking branch 'input/next'
Stephen Rothwell [Fri, 8 Feb 2019 02:24:51 +0000 (13:24 +1100)]
Merge remote-tracking branch 'input/next'

5 years agoMerge remote-tracking branch 'sound-asoc/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 01:49:53 +0000 (12:49 +1100)]
Merge remote-tracking branch 'sound-asoc/for-next'

5 years agoMerge remote-tracking branch 'sound/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 01:47:54 +0000 (12:47 +1100)]
Merge remote-tracking branch 'sound/for-next'

5 years agoMerge remote-tracking branch 'regmap/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 01:45:14 +0000 (12:45 +1100)]
Merge remote-tracking branch 'regmap/for-next'

5 years agoMerge remote-tracking branch 'etnaviv/etnaviv/next'
Stephen Rothwell [Fri, 8 Feb 2019 01:43:43 +0000 (12:43 +1100)]
Merge remote-tracking branch 'etnaviv/etnaviv/next'

5 years agoMerge remote-tracking branch 'imx-drm/imx-drm/next'
Stephen Rothwell [Fri, 8 Feb 2019 01:42:15 +0000 (12:42 +1100)]
Merge remote-tracking branch 'imx-drm/imx-drm/next'

5 years agoMerge remote-tracking branch 'drm-msm/msm-next'
Stephen Rothwell [Fri, 8 Feb 2019 01:40:27 +0000 (12:40 +1100)]
Merge remote-tracking branch 'drm-msm/msm-next'

5 years agonext-20190207/drm-misc
Stephen Rothwell [Fri, 8 Feb 2019 01:36:55 +0000 (12:36 +1100)]
next-20190207/drm-misc

5 years agoMerge remote-tracking branch 'drm-tegra/drm/tegra/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 01:03:23 +0000 (12:03 +1100)]
Merge remote-tracking branch 'drm-tegra/drm/tegra/for-next'

5 years agoMerge remote-tracking branch 'drm-intel/for-linux-next'
Stephen Rothwell [Fri, 8 Feb 2019 01:01:09 +0000 (12:01 +1100)]
Merge remote-tracking branch 'drm-intel/for-linux-next'

5 years agoMerge remote-tracking branch 'drm/drm-next'
Stephen Rothwell [Fri, 8 Feb 2019 00:58:02 +0000 (11:58 +1100)]
Merge remote-tracking branch 'drm/drm-next'

5 years agoMerge remote-tracking branch 'crypto/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:50:18 +0000 (11:50 +1100)]
Merge remote-tracking branch 'crypto/master'

5 years agoMerge remote-tracking branch 'spi-nor/spi-nor/next'
Stephen Rothwell [Fri, 8 Feb 2019 00:48:51 +0000 (11:48 +1100)]
Merge remote-tracking branch 'spi-nor/spi-nor/next'

5 years agoMerge remote-tracking branch 'nand/nand/next'
Stephen Rothwell [Fri, 8 Feb 2019 00:47:19 +0000 (11:47 +1100)]
Merge remote-tracking branch 'nand/nand/next'

5 years agoMerge remote-tracking branch 'mtd/mtd/next'
Stephen Rothwell [Fri, 8 Feb 2019 00:45:52 +0000 (11:45 +1100)]
Merge remote-tracking branch 'mtd/mtd/next'

5 years agoMerge remote-tracking branch 'gfs2/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 00:44:24 +0000 (11:44 +1100)]
Merge remote-tracking branch 'gfs2/for-next'

5 years agoMerge remote-tracking branch 'mac80211-next/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:42:57 +0000 (11:42 +1100)]
Merge remote-tracking branch 'mac80211-next/master'

5 years agoMerge remote-tracking branch 'bluetooth/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:40:49 +0000 (11:40 +1100)]
Merge remote-tracking branch 'bluetooth/master'

5 years agoMerge remote-tracking branch 'wireless-drivers-next/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:38:57 +0000 (11:38 +1100)]
Merge remote-tracking branch 'wireless-drivers-next/master'

5 years agoMerge remote-tracking branch 'nfc-next/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:37:20 +0000 (11:37 +1100)]
Merge remote-tracking branch 'nfc-next/master'

5 years agoMerge remote-tracking branch 'netfilter-next/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:35:53 +0000 (11:35 +1100)]
Merge remote-tracking branch 'netfilter-next/master'

5 years agotpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()
Roberto Sassu [Wed, 6 Feb 2019 16:24:52 +0000 (17:24 +0100)]
tpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()

Currently, tpm_pcr_extend() accepts as an input only a SHA1 digest.

This patch replaces the hash parameter of tpm_pcr_extend() with an array of
tpm_digest structures, so that the caller can provide a digest for each PCR
bank currently allocated in the TPM.

tpm_pcr_extend() will not extend banks for which no digest was provided,
as it happened before this patch, but instead it requires that callers
provide the full set of digests. Since the number of digests will always be
chip->nr_allocated_banks, the count parameter has been removed.

Due to the API change, ima_pcr_extend() and pcrlock() have been modified.
Since the number of allocated banks is not known in advance, the memory for
the digests must be dynamically allocated. To avoid performance degradation
and to avoid that a PCR extend is not done due to lack of memory, the array
of tpm_digest structures is allocated by the users of the TPM driver at
initialization time.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Mimi Zohar <zohar@linux.ibm.com> (on x86 for TPM 1.2 & PTT TPM 2.0)
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agoKEYS: trusted: explicitly use tpm_chip structure from tpm_default_chip()
Roberto Sassu [Wed, 6 Feb 2019 16:24:51 +0000 (17:24 +0100)]
KEYS: trusted: explicitly use tpm_chip structure from tpm_default_chip()

When crypto agility support will be added to the TPM driver, users of the
driver have to retrieve the allocated banks from chip->allocated_banks and
use this information to prepare the array of tpm_digest structures to be
passed to tpm_pcr_extend().

This patch retrieves a tpm_chip pointer from tpm_default_chip() so that the
pointer can be used to prepare the array of tpm_digest structures.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agotpm: move tpm_chip definition to include/linux/tpm.h
Roberto Sassu [Wed, 6 Feb 2019 16:24:50 +0000 (17:24 +0100)]
tpm: move tpm_chip definition to include/linux/tpm.h

The tpm_chip structure contains the list of PCR banks currently allocated
in the TPM. When support for crypto agility will be added to the TPM
driver, users of the driver have to provide a digest for each allocated
bank to tpm_pcr_extend(). With this patch, they can obtain the PCR bank
algorithms directly from chip->allocated_banks.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agotpm: retrieve digest size of unknown algorithms with PCR read
Roberto Sassu [Wed, 6 Feb 2019 16:24:49 +0000 (17:24 +0100)]
tpm: retrieve digest size of unknown algorithms with PCR read

Currently, the TPM driver retrieves the digest size from a table mapping
TPM algorithms identifiers to identifiers defined by the crypto subsystem.
If the algorithm is not defined by the latter, the digest size can be
retrieved from the output of the PCR read command.

The patch modifies the definition of tpm_pcr_read() and tpm2_pcr_read() to
pass the desired hash algorithm and obtain the digest size at TPM startup.
Algorithms and corresponding digest sizes are stored in the new structure
tpm_bank_info, member of tpm_chip, so that the information can be used by
other kernel subsystems.

tpm_bank_info contains: the TPM algorithm identifier, necessary to generate
the event log as defined by Trusted Computing Group (TCG); the digest size,
to pad/truncate a digest calculated with a different algorithm; the crypto
subsystem identifier, to calculate the digest of event data.

This patch also protects against data corruption that could happen in the
bus, by checking that the digest size returned by the TPM during a PCR read
matches the size of the algorithm passed to tpm2_pcr_read().

For the initial PCR read, when digest sizes are not yet available, this
patch ensures that the amount of data copied from the output returned by
the TPM does not exceed the size of the array data are copied to.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agotpm: rename and export tpm2_digest and tpm2_algorithms
Roberto Sassu [Wed, 6 Feb 2019 16:24:48 +0000 (17:24 +0100)]
tpm: rename and export tpm2_digest and tpm2_algorithms

Rename tpm2_* to tpm_* and move the definitions to include/linux/tpm.h so
that these can be used by other kernel subsystems (e.g. IMA).

Also, set the length of the digest array in tpm_digest to a new constant
named TPM_MAX_DIGEST_SIZE, equal to SHA512_DIGEST_SIZE.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agotpm: dynamically allocate the allocated_banks array
Roberto Sassu [Wed, 6 Feb 2019 16:24:47 +0000 (17:24 +0100)]
tpm: dynamically allocate the allocated_banks array

This patch renames active_banks (member of tpm_chip) to allocated_banks,
stores the number of allocated PCR banks in nr_allocated_banks (new member
of tpm_chip), and replaces the static array with a pointer to a dynamically
allocated array.

tpm2_get_pcr_allocation() determines if a PCR bank is allocated by checking
the mask in the TPML_PCR_SELECTION structure returned by the TPM for
TPM2_Get_Capability(). If a bank is not allocated, the TPM returns that
bank in TPML_PCR_SELECTION, with all bits in the mask set to zero. In this
case, the bank is not included in chip->allocated_banks, to avoid that TPM
driver users unnecessarily calculate a digest for that bank.

One PCR bank with algorithm set to SHA1 is always allocated for TPM 1.x.

As a consequence of the introduction of nr_allocated_banks,
tpm_pcr_extend() does not check anymore if the algorithm stored in tpm_chip
is equal to zero.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agotpm: Fix some name collisions with drivers/char/tpm.h
Jarkko Sakkinen [Tue, 5 Feb 2019 09:14:00 +0000 (11:14 +0200)]
tpm: Fix some name collisions with drivers/char/tpm.h

* Rename TPM_BUFSIZE defined in drivers/char/tpm/st33zp24/st33zp24.h to
  ST33ZP24_BUFSIZE.
* Rename TPM_BUFSIZE defined in drivers/char/tpm/tpm_i2c_infineon.c to
  TPM_I2C_INFINEON_BUFSIZE.
* Rename TPM_RETRY in tpm_i2c_nuvoton to TPM_I2C_RETRIES.
* Remove TPM_HEADER_SIZE from tpm_i2c_nuvoton.

Cc: stable@vger.kernel.org
Fixes: bf38b8710892 ("tpm/tpm_i2c_stm_st33: Split tpm_i2c_tpm_st33 in 2 layers (core + phy)")
Fixes: aad628c1d91a ("char/tpm: Add new driver for Infineon I2C TIS TPM")
Fixes: 32d33b29ba07 ("TPM: Retry SaveState command in suspend path")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
5 years agotpm/tpm_crb: Avoid unaligned reads in crb_recv()
Jarkko Sakkinen [Mon, 4 Feb 2019 13:59:43 +0000 (15:59 +0200)]
tpm/tpm_crb: Avoid unaligned reads in crb_recv()

The current approach to read first 6 bytes from the response and then tail
of the response, can cause the 2nd memcpy_fromio() to do an unaligned read
(e.g. read 32-bit word from address aligned to a 16-bits), depending on how
memcpy_fromio() is implemented. If this happens, the read will fail and the
memory controller will fill the read with 1's.

This was triggered by 170d13ca3a2f, which should be probably refined to
check and react to the address alignment. Before that commit, on x86
memcpy_fromio() turned out to be memcpy(). By a luck GCC has done the right
thing (from tpm_crb's perspective) for us so far, but we should not rely on
that. Thus, it makes sense to fix this also in tpm_crb, not least because
the fix can be then backported to stable kernels and make them more robust
when compiled in differing environments.

Cc: stable@vger.kernel.org
Cc: James Morris <jmorris@namei.org>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Cc: Jerry Snitselaar <jsnitsel@redhat.com>
Fixes: 30fc8d138e91 ("tpm: TPM 2.0 CRB Interface")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
5 years agotpm: remove @flags from tpm_transmit()
Jarkko Sakkinen [Mon, 5 Nov 2018 01:02:38 +0000 (03:02 +0200)]
tpm: remove @flags from tpm_transmit()

Remove @flags from tpm_transmit() API. It is no longer used for
anything.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
5 years agotpm: take TPM chip power gating out of tpm_transmit()
Jarkko Sakkinen [Mon, 5 Nov 2018 00:07:56 +0000 (02:07 +0200)]
tpm: take TPM chip power gating out of tpm_transmit()

Call tpm_chip_start() and tpm_chip_stop() in

* tpm_try_get_ops() and tpm_put_ops()
* tpm_chip_register()
* tpm2_del_space()

And remove these calls from tpm_transmit(). The core reason for this
change is that in tpm_vtpm_proxy a locality change requires a virtual
TPM command (a command made up just for that driver).

The consequence of this is that this commit removes the remaining nested
calls.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
5 years agoMerge remote-tracking branch 'net-next/master'
Stephen Rothwell [Fri, 8 Feb 2019 00:24:06 +0000 (11:24 +1100)]
Merge remote-tracking branch 'net-next/master'

5 years agoMerge remote-tracking branch 'rdma/for-next'
Stephen Rothwell [Fri, 8 Feb 2019 00:10:43 +0000 (11:10 +1100)]
Merge remote-tracking branch 'rdma/for-next'

5 years agoMerge remote-tracking branch 'dlm/next'
Stephen Rothwell [Fri, 8 Feb 2019 00:09:13 +0000 (11:09 +1100)]
Merge remote-tracking branch 'dlm/next'

5 years agoMerge remote-tracking branch 'thermal/next'
Stephen Rothwell [Fri, 8 Feb 2019 00:07:41 +0000 (11:07 +1100)]
Merge remote-tracking branch 'thermal/next'

5 years agoMerge remote-tracking branch 'opp/opp/linux-next'
Stephen Rothwell [Fri, 8 Feb 2019 00:05:35 +0000 (11:05 +1100)]
Merge remote-tracking branch 'opp/opp/linux-next'

5 years agoMerge remote-tracking branch 'cpufreq-arm/cpufreq/arm/linux-next'
Stephen Rothwell [Fri, 8 Feb 2019 00:03:26 +0000 (11:03 +1100)]
Merge remote-tracking branch 'cpufreq-arm/cpufreq/arm/linux-next'

5 years agoMerge remote-tracking branch 'pm/linux-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:52:17 +0000 (10:52 +1100)]
Merge remote-tracking branch 'pm/linux-next'

5 years agoMerge remote-tracking branch 'fbdev/fbdev-for-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:52:14 +0000 (10:52 +1100)]
Merge remote-tracking branch 'fbdev/fbdev-for-next'

5 years agoMerge remote-tracking branch 'v4l-dvb-next/master'
Stephen Rothwell [Thu, 7 Feb 2019 23:52:08 +0000 (10:52 +1100)]
Merge remote-tracking branch 'v4l-dvb-next/master'

5 years agoMerge remote-tracking branch 'v4l-dvb/master'
Stephen Rothwell [Thu, 7 Feb 2019 23:40:14 +0000 (10:40 +1100)]
Merge remote-tracking branch 'v4l-dvb/master'

5 years agoMerge remote-tracking branch 'jc_docs/docs-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:34:40 +0000 (10:34 +1100)]
Merge remote-tracking branch 'jc_docs/docs-next'

5 years agoMerge remote-tracking branch 'hwmon-staging/hwmon-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:33:12 +0000 (10:33 +1100)]
Merge remote-tracking branch 'hwmon-staging/hwmon-next'

5 years agoMerge remote-tracking branch 'i2c/i2c/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:28:54 +0000 (10:28 +1100)]
Merge remote-tracking branch 'i2c/i2c/for-next'

5 years agoMerge remote-tracking branch 'hid/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:27:21 +0000 (10:27 +1100)]
Merge remote-tracking branch 'hid/for-next'

5 years agoMerge remote-tracking branch 'pstore/for-next/pstore'
Stephen Rothwell [Thu, 7 Feb 2019 23:25:54 +0000 (10:25 +1100)]
Merge remote-tracking branch 'pstore/for-next/pstore'

5 years agoMerge remote-tracking branch 'pci/next'
Stephen Rothwell [Thu, 7 Feb 2019 23:21:10 +0000 (10:21 +1100)]
Merge remote-tracking branch 'pci/next'

5 years agoMerge remote-tracking branch 'printk/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:19:05 +0000 (10:19 +1100)]
Merge remote-tracking branch 'printk/for-next'

5 years agoMerge remote-tracking branch 'vfs/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:07:29 +0000 (10:07 +1100)]
Merge remote-tracking branch 'vfs/for-next'

5 years agoMerge remote-tracking branch 'xfs/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:05:59 +0000 (10:05 +1100)]
Merge remote-tracking branch 'xfs/for-next'

5 years agoMerge remote-tracking branch 'v9fs/9p-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:04:32 +0000 (10:04 +1100)]
Merge remote-tracking branch 'v9fs/9p-next'

5 years agoMerge remote-tracking branch 'overlayfs/overlayfs-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:03:03 +0000 (10:03 +1100)]
Merge remote-tracking branch 'overlayfs/overlayfs-next'

5 years agoMerge remote-tracking branch 'nfsd/nfsd-next'
Stephen Rothwell [Thu, 7 Feb 2019 23:01:33 +0000 (10:01 +1100)]
Merge remote-tracking branch 'nfsd/nfsd-next'

5 years agoMerge remote-tracking branch 'jfs/jfs-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:59:59 +0000 (09:59 +1100)]
Merge remote-tracking branch 'jfs/jfs-next'

5 years agoMerge remote-tracking branch 'fuse/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:58:32 +0000 (09:58 +1100)]
Merge remote-tracking branch 'fuse/for-next'

5 years agoMerge remote-tracking branch 'f2fs/dev'
Stephen Rothwell [Thu, 7 Feb 2019 22:57:05 +0000 (09:57 +1100)]
Merge remote-tracking branch 'f2fs/dev'

5 years agoMerge remote-tracking branch 'ext3/for_next'
Stephen Rothwell [Thu, 7 Feb 2019 22:46:58 +0000 (09:46 +1100)]
Merge remote-tracking branch 'ext3/for_next'

5 years agoMerge remote-tracking branch 'ecryptfs/next'
Stephen Rothwell [Thu, 7 Feb 2019 22:45:27 +0000 (09:45 +1100)]
Merge remote-tracking branch 'ecryptfs/next'

5 years agoMerge remote-tracking branch 'cifs/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:43:56 +0000 (09:43 +1100)]
Merge remote-tracking branch 'cifs/for-next'

5 years agoMerge remote-tracking branch 'btrfs-kdave/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:42:25 +0000 (09:42 +1100)]
Merge remote-tracking branch 'btrfs-kdave/for-next'

5 years agoMerge remote-tracking branch 'befs/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:40:35 +0000 (09:40 +1100)]
Merge remote-tracking branch 'befs/for-next'

5 years agoMerge remote-tracking branch 'fscrypt/master'
Stephen Rothwell [Thu, 7 Feb 2019 22:30:33 +0000 (09:30 +1100)]
Merge remote-tracking branch 'fscrypt/master'

5 years agoMerge remote-tracking branch 'xtensa/xtensa-for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:28:58 +0000 (09:28 +1100)]
Merge remote-tracking branch 'xtensa/xtensa-for-next'

5 years agoMerge remote-tracking branch 's390/features'
Stephen Rothwell [Thu, 7 Feb 2019 22:26:42 +0000 (09:26 +1100)]
Merge remote-tracking branch 's390/features'

5 years agoMerge remote-tracking branch 'powerpc/next'
Stephen Rothwell [Thu, 7 Feb 2019 22:24:05 +0000 (09:24 +1100)]
Merge remote-tracking branch 'powerpc/next'

5 years agoMerge remote-tracking branch 'parisc-hd/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:22:40 +0000 (09:22 +1100)]
Merge remote-tracking branch 'parisc-hd/for-next'

5 years agoMerge remote-tracking branch 'nios2/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:21:14 +0000 (09:21 +1100)]
Merge remote-tracking branch 'nios2/for-next'

5 years agoMerge remote-tracking branch 'mips/mips-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:19:49 +0000 (09:19 +1100)]
Merge remote-tracking branch 'mips/mips-next'

5 years agomtd: rawnand: denali_dt: remove single anonymous clock support
Masahiro Yamada [Tue, 15 Jan 2019 08:11:34 +0000 (17:11 +0900)]
mtd: rawnand: denali_dt: remove single anonymous clock support

Commit 6f1fe97bec34 ("mtd: rawnand: denali_dt: add more clocks based
on IP datasheet") introduced a more correct binding that requires
three named clocks.

Now that all upstream DT files migrated over to it, remove the single
anonymous clock support.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Dinh Nguyen <dinguyen@kernel.org>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
5 years agomtd: rawnand: mtk: fix possible object reference leak
Wen Yang [Thu, 7 Feb 2019 14:01:32 +0000 (14:01 +0000)]
mtd: rawnand: mtk: fix possible object reference leak

of_find_device_by_node() takes a reference to the struct device
when it finds a match via get_device, there is no need to call
get_device() twice.
We also should make sure to drop the reference to the device
taken by of_find_device_by_node() on driver unbind.

Fixes: 1d6b1e464950 ("mtd: mediatek: driver for MTK Smart Device")
Signed-off-by: Wen Yang <yellowriver2010@hotmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
5 years agomtd: rawnand: jz4780: fix possible object reference leak
Wen Yang [Thu, 7 Feb 2019 14:01:23 +0000 (14:01 +0000)]
mtd: rawnand: jz4780: fix possible object reference leak

of_find_device_by_node() takes a reference to the struct device
when it finds a match via get_device, there is no need to call
get_device() twice.
We also should make sure to drop the reference to the device
taken by of_find_device_by_node() on driver unbind.

Fixes: ae02ab00aa3c ("mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs")
Signed-off-by: Wen Yang <yellowriver2010@hotmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
5 years agomtd: rawnand: atmel: fix possible object reference leak
Wen Yang [Thu, 7 Feb 2019 03:50:55 +0000 (03:50 +0000)]
mtd: rawnand: atmel: fix possible object reference leak

of_find_device_by_node() takes a reference to the struct device
when it finds a match via get_device, there is no need to call
get_device() twice.
We also should make sure to drop the reference to the device
taken by of_find_device_by_node() on driver unbind.

Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Wen Yang <yellowriver2010@hotmail.com>
Suggested-by: Boris Brezillon <bbrezillon@kernel.org>
Reviewed-by: Boris Brezillon <bbrezillon@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Tudor Ambarus <tudor.ambarus@microchip.com>
Cc: Boris Brezillon <bbrezillon@kernel.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Cc: linux-mtd@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
5 years agoMerge remote-tracking branch 'microblaze/next'
Stephen Rothwell [Thu, 7 Feb 2019 22:09:45 +0000 (09:09 +1100)]
Merge remote-tracking branch 'microblaze/next'

5 years agoMerge remote-tracking branch 'm68knommu/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:08:21 +0000 (09:08 +1100)]
Merge remote-tracking branch 'm68knommu/for-next'

5 years agoMerge remote-tracking branch 'm68k/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:06:57 +0000 (09:06 +1100)]
Merge remote-tracking branch 'm68k/for-next'

5 years agoMerge remote-tracking branch 'csky/linux-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:05:32 +0000 (09:05 +1100)]
Merge remote-tracking branch 'csky/linux-next'

5 years agoMerge remote-tracking branch 'clk/clk-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:02:29 +0000 (09:02 +1100)]
Merge remote-tracking branch 'clk/clk-next'

5 years agoMerge remote-tracking branch 'tegra/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 22:00:09 +0000 (09:00 +1100)]
Merge remote-tracking branch 'tegra/for-next'

5 years agoMerge remote-tracking branch 'sunxi/sunxi/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 21:57:54 +0000 (08:57 +1100)]
Merge remote-tracking branch 'sunxi/sunxi/for-next'

5 years agoMerge remote-tracking branch 'samsung-krzk/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 21:56:29 +0000 (08:56 +1100)]
Merge remote-tracking branch 'samsung-krzk/for-next'

5 years agoMerge remote-tracking branch 'rockchip/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 21:55:03 +0000 (08:55 +1100)]
Merge remote-tracking branch 'rockchip/for-next'

5 years agoMerge remote-tracking branch 'renesas/next'
Stephen Rothwell [Thu, 7 Feb 2019 21:53:38 +0000 (08:53 +1100)]
Merge remote-tracking branch 'renesas/next'

5 years agoMerge remote-tracking branch 'qcom/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 21:51:35 +0000 (08:51 +1100)]
Merge remote-tracking branch 'qcom/for-next'

5 years agoMerge remote-tracking branch 'reset/reset/next'
Stephen Rothwell [Thu, 7 Feb 2019 21:49:32 +0000 (08:49 +1100)]
Merge remote-tracking branch 'reset/reset/next'

5 years agoMerge remote-tracking branch 'omap/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 21:48:08 +0000 (08:48 +1100)]
Merge remote-tracking branch 'omap/for-next'

5 years agoMerge remote-tracking branch 'mvebu/for-next'
Stephen Rothwell [Thu, 7 Feb 2019 21:46:44 +0000 (08:46 +1100)]
Merge remote-tracking branch 'mvebu/for-next'