Files
bengris32 4289aa84bd Merge tag 'v4.19.325-cip118' of https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip into staging/lineage-22.1
version 4.19.325-cip118

* tag 'v4.19.325-cip118' of https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip:
  CIP: Bump version suffix to -cip118 after merge from cip/linux-4.19.y-st tree
  Update localversion-st, tree is up-to-date with 5.4.290.
  gtp: Use for_each_netdev_rcu() in gtp_genl_dump_pdp().
  arm64: dts: rockchip: add hevc power domain clock to rk3328
  Partial revert of xhci: use pm_ptr() instead #ifdef for CONFIG_PM conditionals
  xhci: use pm_ptr() instead of #ifdef for CONFIG_PM conditionals
  Input: xpad - add support for wooting two he (arm)
  Input: xpad - add unofficial Xbox 360 wireless receiver clone
  Input: atkbd - map F23 key to support default copilot shortcut
  Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null"
  USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
  vfio/platform: check the bounds of read/write syscalls
  net/xen-netback: prevent UAF in xenvif_flush_hash()
  m68k: Add missing mmap_read_lock() to sys_cacheflush()
  m68k: Update ->thread.esp0 before calling syscall_trace() in ret_from_signal
  gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag
  irqchip/sunxi-nmi: Add missing SKIP_WAKE flag
  scsi: iscsi: Fix redundant response for ISCSI_UEVENT_GET_HOST_STATS request
  ASoC: wm8994: Add depends on MFD core
  net: fix data-races around sk->sk_forward_alloc
  scsi: sg: Fix slab-use-after-free read in sg_release()
  ipv6: avoid possible NULL deref in rt6_uncached_list_flush_dev()
  irqchip/gic-v3: Handle CPU_PM_ENTER_FAILED correctly
  fs/proc: fix softlockup in __read_vmcore (part 2)
  poll_wait: add mb() to fix theoretical race between waitqueue_active() and .poll()
  hfs: Sanity check the root record
  mac802154: check local interfaces before deleting sdata list
  i2c: mux: demux-pinctrl: check initial mux selection, too
  nfp: bpf: prevent integer overflow in nfp_bpf_event_output()
  gtp: use exit_batch_rtnl() method
  net: add exit_batch_rtnl() method
  net: net_namespace: Optimize the code
  net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()
  sctp: sysctl: rto_min/max: avoid using current->nsproxy
  ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv
  ocfs2: correct return value of ocfs2_local_free_info()
  phy: core: Fix that API devm_of_phy_provider_unregister() fails to unregister the phy provider
  phy: core: fix code style in devm_of_phy_provider_unregister
  arm64: dts: rockchip: fix pd_tcpc0 and pd_tcpc1 node position on rk3399
  arm64: dts: rockchip: fix defines in pd_vio node for rk3399
  iio: inkern: call iio_device_put() only on mapped devices
  iio: adc: at91: call input_free_device() on allocated iio_dev
  iio: adc: ti-ads8688: fix information leak in triggered buffer
  iio: imu: kmx61: fix information leak in triggered buffer
  iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer
  iio: pressure: zpa2326: fix information leak in triggered buffer
  usb: gadget: f_fs: Remove WARN_ON in functionfs_bind
  usb: fix reference leak in usb_new_device()
  USB: usblp: return error when setting unsupported protocol
  usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null
  USB: serial: cp210x: add Phoenix Contact UPS Device
  usb-storage: Add max sectors quirk for Nokia 208
  staging: iio: ad9832: Correct phase range check
  staging: iio: ad9834: Correct phase range check
  USB: serial: option: add Neoway N723-EA support
  USB: serial: option: add MeiG Smart SRM815
  drm/amd/display: Add check for granularity in dml ceil/floor helpers
  sctp: sysctl: auth_enable: avoid using current->nsproxy
  sctp: sysctl: cookie_hmac_alg: avoid using current->nsproxy
  dm thin: make get_first_thin use rcu-safe list first function
  tcp/dccp: allow a connection when sk_max_ack_backlog is zero
  tcp/dccp: complete lockless accesses to sk->sk_max_ack_backlog
  net: 802: LLC+SNAP OID:PID lookup on start of skb data
  ieee802154: ca8210: Add missing check for kfifo_alloc() in ca8210_probe()
  dm array: fix cursor index when skipping across block boundaries
  dm array: fix unreleased btree blocks on closing a faulty array cursor
  dm array: fix releasing a faulty array block twice in dm_array_cursor_end
  jbd2: flush filesystem device before updating tail sequence
  ravb: Fix use-after-free issue in ravb_tx_timeout_work()
  net/sched: netem: fix backport of "account for backlog updates from child qdisc"
  CIP: Bump version suffix to -cip117 after merge from cip/linux-4.19.y-st tree
  Update localversion-st, tree is up-to-date with 5.4.289.
  RDMA/bnxt_re: Fix max_qp_wrs reported
  net/sched: netem: account for backlog updates from child qdisc
  net/sched: cbs: Fix integer overflow in cbs_set_port_rate()
  netfilter: nft_set_hash: skip duplicated elements pending gc run
  drm/etnaviv: flush shader L1 cache after user commandstream
  usb: yurex: make waiting on yurex_write interruptible
  perf trace: Avoid garbage when not printing a syscall's arguments
  scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
  mfd: intel_soc_pmic_bxtwc: Use IRQ domain for PMIC devices
  mfd: intel_soc_pmic_bxtwc: Use IRQ domain for TMU device
  mm: vmscan: account for free pages to prevent infinite Loop in throttle_direct_reclaim()
  drm: adv7511: Drop dsi single lane support
  net/sctp: Prevent autoclose integer overflow in sctp_association_init()
  sky2: Add device ID 11ab:4373 for Marvell 88E8075
  pinctrl: mcp23s08: Fix sleeping in atomic context due to regmap locking
  modpost: fix the missed iteration for the max bit in do_input()
  modpost: fix input MODULE_DEVICE_TABLE() built for 64-bit on 32-bit host
  irqchip/gic: Correct declaration of *percpu_base pointer in union gic_base
  net: usb: qmi_wwan: add Telit FE910C04 compositions
  sound: usb: format: don't warn that raw DSD is unsupported
  wifi: mac80211: wake the queues in case of failure in resume
  ila: serialize calls to nf_register_net_hooks()
  af_packet: fix vlan_get_protocol_dgram() vs MSG_PEEK
  af_packet: fix vlan_get_tci() vs MSG_PEEK
  ALSA: usb-audio: US16x08: Initialize array before use
  net: llc: reset skb->transport_header
  netrom: check buffer length before accessing it
  drm/bridge: adv7511_audio: Update Audio InfoFrame properly
  drm: bridge: adv7511: Enable SPDIF DAI
  RDMA/bnxt_re: Fix reporting hw_ver in query_device
  RDMA/bnxt_re: Add check for path mtu in modify_qp
  Drivers: hv: util: Avoid accessing a ringbuffer not initialized yet
  selinux: ignore unknown extended permissions
  btrfs: avoid monopolizing a core when activating a swap file
  tracing: Constify string literal data member in struct trace_event_call
  MIPS: Probe toolchain support of -msym32
  virtio-blk: don't keep queue frozen during system suspend
  platform/x86: asus-nb-wmi: Ignore unknown event 0xCF
  regmap: Use correct format specifier for logging range errors
  scsi: qla1280: Fix hw revision numbering for ISP1020/1040
  tracing/kprobe: Make trace_kprobe's module callback called after jump_label update
  mtd: rawnand: fix double free in atmel_pmecc_create_user()
  dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset
  dmaengine: mv_xor: fix child node refcount handling in early exit
  phy: core: Fix that API devm_phy_destroy() fails to destroy the phy
  phy: core: Fix that API devm_phy_put() fails to release the phy
  phy: core: Fix an OF node refcount leakage in of_phy_provider_lookup()
  phy: core: Fix an OF node refcount leakage in _of_phy_get()
  mtd: diskonchip: Cast an operand to prevent potential overflow
  nfsd: restore callback functionality for NFSv4.0
  bpf: Check negative offsets in __bpf_skb_min_len()
  media: dvb-frontends: dib3000mb: fix uninit-value in dib3000_write_reg
  of: Fix error path in of_parse_phandle_with_args_map()
  nilfs2: prevent use of deleted inode
  of/irq: Fix using uninitialized variable @addr_len in API of_irq_parse_one()
  NFS/pnfs: Fix a live lock between recalled layouts and layoutget
  zram: refuse to use zero sized block device as backing device
  sh: clk: Fix clk_enable() to return 0 on NULL clk
  USB: serial: option: add Telit FE910C04 rmnet compositions
  USB: serial: option: add MediaTek T7XX compositions
  USB: serial: option: add Netprisma LCUK54 modules for WWAN Ready
  USB: serial: option: add MeiG Smart SLM770A
  USB: serial: option: add TCL IK512 MBIM & ECM
  efivarfs: Fix error on non-existent file
  i2c: riic: Always round-up when calculating bus period
  chelsio/chtls: prevent potential integer overflow on 32bit
  mmc: sdhci-tegra: Remove SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC quirk
  netfilter: ipset: Fix for recursive locking warning
  net: ethernet: bgmac-platform: fix an OF node reference leak
  net: hinic: Fix cleanup in create_rxqs/txqs()
  net/smc: check sndbuf_space again after NOSPACE flag is set in smc_poll
  i2c: pnx: Fix timeout in wait functions
  PCI: Add ACS quirk for Broadcom BCM5760X NIC
  ALSA: usb: Fix UBSAN warning in parse_audio_unit()
  PCI/AER: Disable AER service on suspend
  net: sched: fix ordering of qlen adjustment
  ALSA: usb-audio: Fix a DMA to stack memory bug
  xen/netfront: fix crash when removing device
  KVM: arm64: Ignore PMCNTENSET_EL0 while checking for overflow status
  qca_spi: Make driver probing reliable
  ACPI: resource: Fix memory resource type union access
  net: lapb: increase LAPB_HEADER_LEN
  batman-adv: Do not let TT changes list grows indefinitely
  batman-adv: Remove uninitialized data in full table TT response
  batman-adv: Do not send uninitialized TT changes
  usb: gadget: u_serial: Fix the issue that gs_start_io crashed due to accessing null pointer
  usb: ehci-hcd: fix call balance of clocks handling routines
  usb: dwc2: hcd: Fix GetPortStatus & SetPortFeature
  ata: sata_highbank: fix OF node reference leak in highbank_initialize_phys()
  usb: host: max3421-hcd: Correctly abort a USB request.
  bpf, xdp: Update devmap comments to reflect napi/rcu usage
  ALSA: usb-audio: Fix out of bounds reads when finding clock sources
  PCI: rockchip-ep: Fix address translation unit programming
  Revert "drm/amdgpu: add missing size check in amdgpu_debugfs_gprwave_read()"
  modpost: Add .irqentry.text to OTHER_SECTIONS
  ocfs2: Revert "ocfs2: fix the la space leak when unmounting an ocfs2 volume"
  jffs2: Fix rtime decompressor
  jffs2: Prevent rtime decompress memory corruption
  KVM: arm64: vgic-its: Clear ITE when DISCARD frees an ITE
  KVM: arm64: vgic-its: Clear DTE when MAPD unmaps a device
  KVM: arm64: vgic-its: Add a data length check in vgic_its_save_*
  misc: eeprom: eeprom_93cx6: Add quirk for extra read clock cycle
  powerpc/prom_init: Fixup missing powermac #size-cells
  usb: chipidea: udc: handle USB Error Interrupt if IOC not set
  PCI: Add 'reset_subordinate' to reset hierarchy below bridge
  nvdimm: rectify the illogical code within nd_dax_probe()
  scsi: st: Add MTIOCGET and MTLOAD to ioctls allowed after device reset
  scsi: st: Don't modify unknown block number in MTIOCGET
  leds: class: Protect brightness_show() with led_cdev->led_access mutex
  tracing: Use atomic64_inc_return() in trace_clock_counter()
  netpoll: Use rcu_access_pointer() in __netpoll_setup
  rocker: fix link status detection in rocker_carrier_init()
  ASoC: hdmi-codec: reorder channel allocation list
  wifi: brcmfmac: Fix oops due to NULL pointer dereference in brcmf_sdiod_sglist_rw()
  wifi: ipw2x00: libipw_rx_any(): fix bad alignment
  jfs: add a check to prevent array-index-out-of-bounds in dbAdjTree
  jfs: fix array-index-out-of-bounds in jfs_readdir
  jfs: fix shift-out-of-bounds in dbSplit
  jfs: array-index-out-of-bounds fix in dtReadFirst
  wifi: ath5k: add PCI ID for Arcadyan devices
  wifi: ath5k: add PCI ID for SX76X
  net: inet6: do not leave a dangling sk pointer in inet6_create()
  net: inet: do not leave a dangling sk pointer in inet_create()
  net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
  net: af_can: do not leave a dangling sk pointer in can_create()
  Bluetooth: L2CAP: do not leave dangling sk pointer on error in l2cap_sock_create()
  af_packet: avoid erroring out after sock_init_data() in packet_create()
  net: ethernet: fs_enet: Use %pa to format resource_size_t
  net: fec_mpc52xx_phy: Use %pa to format resource_size_t
  samples/bpf: Fix a resource leak
  drm/radeon/r600_cs: Fix possible int overflow in r600_packet3_check()
  media: cx231xx: Add support for Dexatek USB Video Grabber 1d19:6108
  media: uvcvideo: Add a quirk for the Kaiweets KTI-W02 infrared camera
  s390/cpum_sf: Handle CPU hotplug remove during sampling
  regmap: detach regmap from dev on regmap_exit
  bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again
  nilfs2: fix potential out-of-bounds memory access in nilfs_find_entry()
  scsi: qla2xxx: Remove check req_sg_cnt should be equal to rsp_sg_cnt
  scsi: qla2xxx: Supported speed displayed incorrectly for VPorts
  ocfs2: update seq_file index in ocfs2_dlm_seq_next
  tracing: Fix cmp_entries_dup() to respect sort() comparison rules
  HID: wacom: fix when get product name maybe null pointer
  bpf: Fix exact match conditions in trie_get_next_key()
  bpf: Handle BPF_EXIST and BPF_NOEXIST for LPM trie
  ocfs2: free inode when ocfs2_get_init_inode() fails
  spi: mpc52xx: Add cancel_work_sync before module remove
  drm/sti: Add __iomem for mixer_dbg_mxn's parameter
  gpio: grgpio: Add NULL check in grgpio_probe
  gpio: grgpio: use a helper variable to store the address of ofdev->dev
  crypto: x86/aegis128 - access 32-bit arguments as 32-bit
  x86/asm: Reorder early variables
  xen: Fix the issue of resource not being properly released in xenbus_dev_probe()
  xen/xenbus: fix locking
  xenbus/backend: Protect xenbus callback with lock
  xenbus/backend: Add memory pressure handler callback
  xen/xenbus: reference count registered modules
  netfilter: ipset: Hold module reference while requesting a module
  igb: Fix potential invalid memory access in igb_init_module()
  net/qed: allow old cards not supporting "num_images" to work
  dccp: Fix memory leak in dccp_feat_change_recv
  net/ipv6: release expired exception dst cached in socket
  netfilter: x_tables: fix LED ID check in led_tg_check()
  ipvs: fix UB due to uninitialized stack access in ip_vs_protocol_init()
  can: sun4i_can: sun4i_can_err(): fix {rx,tx}_errors statistics
  can: sun4i_can: sun4i_can_err(): call can_change_state() even if cf is NULL
  watchdog: mediatek: Make sure system reset gets asserted in mtk_wdt_restart()
  nfsd: fix nfs4_openowner leak when concurrent nfsd4_open occur
  dm thin: Add missing destroy_work_on_stack()
  util_macros.h: fix/rework find_closest() macros
  ftrace: Fix regression with module command in stack_trace_filter
  ovl: Filter invalid inodes with missing lookup function
  media: gspca: ov534-ov772x: Fix off-by-one error in set_frame_rate()
  media: venus: Fix pm_runtime_set_suspended() with runtime pm enabled
  media: ts2020: fix null-ptr-deref in ts2020_probe()
  media: i2c: tc358743: Fix crash in the probe error path when using polling
  btrfs: ref-verify: fix use-after-free after invalid ref action
  quota: flush quota_release_work upon quota writeback
  SUNRPC: correct error code comment in xs_tcp_setup_socket()
  um/sysrq: remove needless variable sp
  ALSA: hda/realtek: Set PCBeep to default value for ALC274
  Revert "serial: sh-sci: Clean sci_ports[0] after at earlycon exit"
  serial: sh-sci: Clean sci_ports[0] after at earlycon exit
  ipmr: convert /proc handlers to rcu_read_lock()
  mfd: intel_soc_pmic_bxtwc: Use IRQ domain for USB Type-C device
  mfd: intel_soc_pmic_bxtwc: Use dev_err_probe()
  x86/xen/pvh: Annotate indirect branch as safe
  CIP: Bump version suffix to -cip116 after merge from stable
  Mark this as 4.19.324-cip115 release.
  CIP: Bump version suffix to -cip114 after merge from stable
  Mark this as 4.19.322-cip113 release.
  CIP: Bump version suffix to -cip112 after merge from stable
  CIP: Bump version suffix to -cip111 after merge from stable
  CIP: Bump version suffix to -cip110 after merge from stable
  CIP: Bump version suffix to -cip109 after merge from stable
  CIP: Bump version suffix to -cip108 after merge from stable
  memory: renesas-rpc-if: Clear HS bit during hardware initialization
  arm64: dts: renesas: rzg2: Add RPC-IF Support
  spi: spi-rpc-if: Check return value of rpcif_sw_init()
  memory: renesas-rpc-if: Remove redundant division of dummy
  memory: renesas-rpc-if: Simplify single/double data register access
  memory: renesas-rpc-if: Drop usage of RPCIF_DIRMAP_SIZE macro
  memory: renesas-rpc-if: Return error in case devm_ioremap_resource() fails
  memory: renesas-rpc-if: Fix HF/OSPI data transfer in Manual Mode
  memory: renesas-rpc-if: Correct QSPI data transfer in Manual mode
  memory: renesas-rpc-if: fix possible NULL pointer dereference of resource
  CIP: Bump version suffix to -cip107 after merge from stable
  ravb: remove undocumented counter processing
  ravb: remove undocumented endianness selection
  ravb: update "undocumented" annotations
  CIP: Bump version suffix to -cip106 after merge from stable
  Mark this as 4.19.299-cip105 release.
  CIP: Bump version suffix to -cip104 after merge from stable
  CIP: Bump version suffix to -cip103 after merge from stable
  CIP: Bump version suffix to -cip102 after merge from stable
  CIP: Bump version suffix to -cip101 after merge from stable
  CIP: Bump version suffix to -cip100 after merge from stable
  CIP: Bump version suffix to -cip99 after merge from stable
  CIP: Bump version suffix to -cip98 after merge from stable
  CIP: Bump version suffix to -cip97 after merge from stable
  CIP: Bump version suffix to -cip96 after merge from stable
  CIP: Bump version suffix to -cip95 after merge from stable
  CIP: Bump version suffix to -cip94 after merge from stable
  CIP: Bump version suffix to -cip93 after merge from stable
  CIP: Bump version suffix to -cip92 after merge from stable
  CIP: Bump version suffix to -cip91 after merge from stable
  CIP: Bump version suffix to -cip90 after merge from stable
  CIP: Bump version suffix to -cip89 after merge from stable
  CIP: Bump version suffix to -cip88 after merge from stable
  CIP: Bump version suffix to -cip87 after merge from stable
  CIP: Bump version suffix to -cip86 after merge from stable
  CIP: Bump version suffix to -cip85 after merge from stable
  CIP: Bump version suffix to -cip84 after merge from stable
  CIP: Bump version suffix to -cip83 after merge from stable
  CIP: Bump version suffix to -cip82 after merge from stable
  CIP: Bump version suffix to -cip81 after merge from stable
  drm: rcar-du: Fix Alpha blending issue on Gen3
  CIP: Bump version suffix to -cip80 after merge from stable
  CIP: Bump version suffix to -cip79 after merge from stable
  CIP: Bump version suffix to -cip78 after merge from stable
  CIP: Bump version suffix to -cip77 after merge from stable
  CIP: Bump version suffix to -cip76 after merge from stable
  CIP: Bump version suffix to -cip75 after merge from stable
  CIP: Bump version suffix to -cip74 after merge from stable
  CIP: Bump version suffix to -cip73 after merge from stable
  CIP: Bump version suffix to -cip72 after merge from stable
  CIP: Bump version suffix to -cip71 after merge from stable
  CIP: Bump version suffix to -cip70 after merge from stable
  CIP: Bump version suffix to -cip69 after merge from stable
  CIP: Bump version suffix to -cip68 after merge from stable
  CIP: Bump version suffix to -cip67 after merge from stable
  CIP: Bump version suffix to -cip66 after merge from stable
  CIP: Bump version suffix to -cip65 after merge from stable
  CIP: Bump version suffix to -cip64 after merge from stable
  CIP: Bump version suffix to -cip63 after merge from stable
  CIP: Bump version suffix to -cip62 after merge from stable
  CIP: Bump version suffix to -cip61 after merge from stable
  CIP: Bump version suffix to -cip60 after merge from stable
  CIP: Bump version suffix to -cip59 after merge from stable
  CIP: Bump version suffix to -cip58 after merge from stable
  CIP: Bump version suffix to -cip57 after merge from stable
  CIP: Bump version suffix to -cip56 after merge from stable
  CIP: Bump version suffix to -cip55 after merge from stable
  CIP: Bump version suffix to -cip54 after merge from stable
  CIP: Bump version suffix to -cip53 after merge from stable
  CIP: Bump version suffix to -cip52 after merge from stable
  CIP: Bump version suffix to -cip51 after merge from stable
  CIP: Bump version suffix to -cip50 after merge from stable
  CIP: Bump version suffix to -cip49 after merge from stable
  media: i2c: imx219: Balance runtime PM use-count
  media: i2c: imx219: Move out locking/unlocking of vflip and hflip controls from imx219_set_stream
  CIP: Bump version suffix to -cip48 after merge from stable
  drm: rcar-du: Fix crash when using LVDS1 clock for CRTC
  CIP: Bump version suffix to -cip47 after merge from stable
  CIP: Bump version suffix to -cip46 after merge from stable
  arm64: dts: renesas: Add support for MIPI Adapter V2.1 connected to HiHope RZ/G2N
  arm64: dts: renesas: Add support for MIPI Adapter V2.1 connected to HiHope RZ/G2M
  arm64: dts: renesas: Add support for MIPI Adapter V2.1 connected to HiHope RZ/G2H
  arm64: dts: renesas: aistarvision-mipi-adapter-2.1: Add parent macro for each sensor
  arm64: dts: renesas: r8a774e1: Add VIN and CSI-2 nodes
  media: rcar-csi2: Enable support for R8A774E1
  media: dt-bindings: media: renesas,csi2: Add R8A774E1 support
  media: rcar-vin: Enable support for R8A774E1
  media: dt-bindings: media: renesas,vin: Add R8A774E1 support
  arm64: dts: renesas: r8a774b1: Add VIN and CSI-2 support
  media: rcar-csi2: Enable support for R8A774B1
  media: dt-bindings: rcar-csi2: Add R8A774B1 support
  media: rcar-vin: Enable support for R8A774B1
  media: dt-bindings: rcar-vin: Add R8A774B1 support
  arm64: dts: renesas: r8a774a1: Add VIN and CSI-2 nodes
  media: rcar-csi2: Enable support for r8a774a1
  media: dt-bindings: media: rcar-csi2: Add r8a774a1 support
  media: rcar-vin: Enable support for r8a774a1
  media: dt-bindings: media: rcar_vin: Add r8a774a1 support
  arm64: dts: renesas: r8a774c0-cat874: Add support for AISTARVISION MIPI Adapter V2.1
  media: i2c: imx219: take lock in imx219_enum_mbus_code/frame_size
  media: i2c: imx219: Selection compliance fixes
  media: i2c: imx219: Fix a bug in imx219_enum_frame_size
  media: i2c: imx219: Implement get_selection
  media: i2c: imx219: Add support for cropped 640x480 resolution
  media: i2c: imx219: Add support for RAW8 bit bayer format
  media: i2c: imx219: Fix power sequence
  media: i2c: Add driver for Sony IMX219 sensor
  media: dt-bindings: media: i2c: Add IMX219 CMOS sensor binding
  media: rcar-csi2: Add support for MEDIA_BUS_FMT_SRGGB8_1X8 format
  media: rcar-vin: Add support for MEDIA_BUS_FMT_SRGGB8_1X8 format
  media: rcar-vin: Invalidate pipeline if conversion is not possible on input formats
  media: rcar-csi2: Update V3M and E3 start procedure
  media: rcar-vin: fix wrong return value in rvin_set_channel_routing()
  media: v4l: ctrl: Provide unlocked variant of v4l2_ctrl_grab
  media: v4l2-async: Log message in case of heterogeneous fwnode match
  media: v4l2-async: Pass notifier pointer to match functions
  media: v4l2-async: Accept endpoints and devices for fwnode matching
  media: device property: Add a function to test is a fwnode is a graph endpoint
  media: ov5645: Remove unneeded regulator_set_voltage()
  CIP: Bump version suffix to -cip45 after merge from stable
  CIP: Bump version suffix to -cip44 after merge from stable
  CIP: Bump version suffix to -cip43 after merge from stable
  CIP: Bump version suffix to -cip42 after merge from stable
  CIP: Bump version suffix to -cip41 after merge from stable
  spi: spi-mem: Make spi_mem_default_supports_op() static inline
  pinctrl: renesas: r8a77965: Add QSPI[01] pins, groups and functions
  pinctrl: renesas: r8a7796: Add QSPI[01] pins, groups and functions
  pinctrl: renesas: r8a77951: Add QSPI[01] pins, groups and functions
  pinctrl: renesas: r8a77990: Add QSPI[01] pins, groups and functions
  pinctrl: renesas: r8a77990: Optimize pinctrl image size for R8A774C0
  pinctrl: renesas: r8a77965: Optimize pinctrl image size for R8A774B1
  pinctrl: renesas: r8a77951: Optimize pinctrl image size for R8A774E1
  pinctrl: renesas: r8a7796: Optimize pinctrl image size for R8A774A1
  clk: renesas: r8a774c0: Add RPC clocks
  clk: renesas: r8a774b1: Add RPC clocks
  clk: renesas: r8a774a1: Add RPC clocks
  spi: rpc-if: Fix use-after-free on unbind
  spi: add Renesas RPC-IF driver
  spi: spi-mem: Fix a memory leak in spi_mem_dirmap_destroy()
  spi: spi-mem: Fix spi_mem_dirmap_destroy() kerneldoc
  spi: spi-mem: Add a new API to support direct mapping
  spi: spi-mem: Compute length only when needed
  spi: spi-mem: Fix passing zero to 'PTR_ERR' warning
  spi: spi-mem: fix reference leak in spi_mem_access_start
  spi: spi-mem: Split spi_mem_exec_op() code
  spi: spi-mem: export spi_mem_default_supports_op()
  spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum
  memory: renesas-rpc-if: Make rpcif_enable/disable_rpm() as static inline
  memory: renesas-rpc-if: Fix a node reference leak in rpcif_probe()
  memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{enable,disable}_rpm
  memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer()
  memory: add Renesas RPC-IF driver
  dt-bindings: memory: document Renesas RPC-IF bindings
  dt-bindings: thermal: rcar-gen3-thermal: Add r8a774e1 support
  dt-bindings: PCI: rcar-pci-host: Document r8a774e1 bindings
  dt-bindings: PCI: rcar: Add device tree support for r8a774b1
  dt-bindings: timer: renesas: tmu: Document r8a774e1 bindings
  dt-bindings: pci: rcar-pci-ep: Document missing interrupts property
  CIP: Bump version suffix to -cip40 after merge from stable
  arm64: dts: renesas: r8a774c0: Fix MSIOF1 DMA channels
  CIP: Bump version suffix to -cip39 after merge from stable
  arm64: dts: renesas: r8a774e1: Add audio support
  arm64: dts: renesas: r8a774e1: Add missing audio_clk_b
  CIP: Bump version suffix to -cip38 after merge from stable
  arm64: dts: renesas: r8a774e1: Add USB-DMAC and HSUSB device nodes
  arm64: dts: renesas: r8a774e1: Add USB3.0 device nodes
  arm64: dts: renesas: r8a774e1: Add USB2.0 phy and host (EHCI/OHCI) device nodes
  dt-bindings: dma: renesas,usb-dmac: Add binding for r8a774e1
  dt-bindings: phy: renesas,usb3-phy: Add r8a774e1 support
  dt-bindings: phy: renesas,usb2-phy: Add r8a774e1 support
  dt-bindings: sound: renesas, rsnd: Document r8a774e1 bindings
  arm64: dts: renesas: Add HiHope RZ/G2H board with idk-1110wr display
  arm64: dts: renesas: r8a774e1: Add PWM device nodes
  dt-bindings: pwm: renesas,pwm-rcar: Add r8a774e1 support
  arm64: dts: renesas: r8a774e1-hihope-rzg2h: Setup DU clocks
  arm64: dts: renesas: r8a774e1: Add LVDS device node
  drm: rcar-du: lvds: Add support for R8A774E1 SoC
  dt-bindings: display: renesas,lvds: Document r8a774e1 bindings
  arm64: dts: renesas: r8a774e1: Populate HDMI encoder node
  dt-bindings: display: renesas,dw-hdmi: Add r8a774e1 support
  arm64: dts: renesas: r8a774e1: Populate DU device node
  drm: rcar-du: Add support for R8A774E1 SoC
  dt-bindings: display: renesas,du: Document r8a774e1 bindings
  arm64: dts: renesas: r8a774e1: Add FDP1 device nodes
  arm64: dts: renesas: r8a774e1: Add VSP instances
  arm64: dts: renesas: r8a774e1: Add FCPF and FCPV instances
  arm64: dts: renesas: r8a774e1-hihope-rzg2h-ex: Enable sata
  misc: pci_endpoint_test: Add Device ID for RZ/G2H PCIe controller
  arm64: dts: renesas: r8a774e1: Add PCIe EP nodes
  dt-bindings: pci: rcar-pci-ep: Document r8a774e1
  arm64: dts: renesas: r8a774e1: Add SATA controller node
  arm64: dts: renesas: r8a774e1: Add PCIe device nodes
  misc: pci_endpoint_test: Add Device ID for RZ/G2M and RZ/G2N PCIe controllers
  arm64: dts: renesas: r8a774b1: Add PCIe EP nodes
  arm64: dts: renesas: r8a774a1: Add PCIe EP nodes
  arm64: dts: renesas: r8a774c0: Add PCIe EP node
  dt-bindings: pci: rcar-pci-ep: Document r8a774a1 and r8a774b1
  ata: sata_rcar: Fix DMA boundary mask
  arm64: dts: renesas: r8a774b1-hihope-rzg2n-ex: Enable sata
  arm64: dts: renesas: r8a774b1: Add SATA controller node
  dt-bindings: ata: sata_rcar: Add r8a774b1 support
  CIP: Bump version suffix to -cip37 after merge from stable
  misc: pci_endpoint_test: Add Device ID for RZ/G2E PCIe controller
  arm64: defconfig: Enable R-Car PCIe endpoint driver
  PCI: rcar: Add endpoint mode support
  dt-bindings: PCI: rcar: Add bindings for R-Car PCIe endpoint controller
  PCI: rcar: Fix calculating mask for PCIEPAMR register
  PCI: rcar: Move shareable code to a common file
  arm64: defconfig: Enable CONFIG_PCIE_RCAR_HOST
  PCI: rcar: Rename pcie-rcar.c to pcie-rcar-host.c
  PCI: endpoint: functions/pci-epf-test: Print throughput information
  PCI: endpoint: Add support to handle multiple base for mapping outbound memory
  PCI: endpoint: Pass page size as argument to pci_epc_mem_init()
  PCI: endpoint: Fix ->set_msix() to take BIR and offset as arguments
  PCI: pci-epf-test: Add support to defer core initialization
  PCI: endpoint: Add notification for core init completion
  PCI: endpoint: Add core init notifying feature
  PCI: endpoint: Assign function number for each PF in EPC core
  PCI: endpoint: Protect concurrent access to pci_epf_ops with mutex
  PCI: endpoint: Replace spinlock with mutex
  PCI: endpoint: Use notification chain mechanism to notify EPC events to EPF
  tools: PCI: Fix fd leakage
  tools: PCI: Exit with error code when test fails
  PCI: dwc: Fix dw_pcie_ep_raise_msix_irq() to get correct MSI-X table address
  PCI: endpoint: Fix clearing start entry in configfs
  PCI: endpoint: Cast the page number to phys_addr_t
  PCI: endpoint: Clear BAR before freeing its space
  PCI: endpoint: Skip odd BAR when skipping 64bit BAR
  PCI: endpoint: Allocate enough space for fixed size BAR
  PCI: endpoint: Set endpoint controller pointer to NULL
  PCI: endpoint: Add support to specify alignment for buffers allocated to BARs
  PCI: endpoint: Fix a potential NULL pointer dereference
  PCI: endpoint: Remove features member in struct pci_epc
  PCI: designware-plat: Remove setting epc->features in Designware plat EP driver
  PCI: rockchip: Remove pci_epf_linkup() from Rockchip EP driver
  PCI: cadence: Remove pci_epf_linkup() from Cadence EP driver
  PCI: pci-epf-test: Use pci_epc_get_features() to get EPC features
  PCI: pci-epf-test: Do not allocate next BARs memory if current BAR is 64Bit
  PCI: pci-epf-test: Remove setting epf_bar flags in function driver
  PCI: endpoint: Fix pci_epf_alloc_space() to set correct MEM TYPE flags
  PCI: endpoint: Add helper to get first unreserved BAR
  PCI: cadence: Populate ->get_features() cdns_pcie_epc_ops
  PCI: rockchip: Populate ->get_features() dw_pcie_ep_ops
  PCI: pci-dra7xx: Populate ->get_features() dw_pcie_ep_ops
  PCI: designware-plat: Populate ->get_features() dw_pcie_ep_ops
  PCI: dwc: Add ->get_features() callback function to dw_pcie_ep_ops
  PCI: endpoint: Add new pci_epc_ops to get EPC features
  CIP: Bump version suffix to -cip36 after merge from stable with ravb fix
  Revert "ravb: Fixed to be able to unload modules"
  CIP: Bump version suffix to -cip35 after merge from stable
  CIP: Bump version suffix to -cip34 after merge from stable
  arm64: dts: renesas: Fix SD Card/eMMC interface device node names
  arm64: dts: renesas: r8a774e1: Add RWDT node
  dt-bindings: watchdog: renesas,wdt: Document r8a774e1 support
  arm64: dts: renesas: r8a774e1: Add MSIOF nodes
  spi: renesas,sh-msiof: Add r8a774e1 support
  arm64: dts: renesas: r8a774e1: Add I2C and IIC-DVFS support
  dt-bindings: i2c: renesas,iic: Document r8a774e1 support
  dt-bindings: i2c: renesas,i2c: Document r8a774e1 support
  arm64: dts: renesas: r8a774e1: Add SDHI nodes
  mmc: renesas_sdhi_internal_dmac: Add r8a774e1 support
  arm64: dts: renesas: r8a774e1: Add SCIF and HSCIF nodes
  arm64: dts: renesas: r8a774e1: Add CAN[FD] support
  can: rcar_can: Remove unused platform data support
  arm64: dts: renesas: r8a774e1: Add TMU device nodes
  arm64: dts: renesas: r8a774e1: Add CMT device nodes
  arm64: dts: renesas: r8a774e1: Add RZ/G2H thermal support
  thermal: rcar_gen3_thermal: Add r8a774e1 support
  thermal/drivers/rcar_gen3: Fix undefined temperature if negative
  thermal: rcar_gen3_thermal: Generate interrupt when temperature changes
  thermal: rcar_gen3_thermal: Remove temperature bound
  arm64: dts: renesas: r8a774e1: Add operating points
  arm64: dts: renesas: r8a774e1: Add Ethernet AVB node
  arm64: dts: renesas: r8a774e1: Add GPIO device nodes
  arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes
  dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings
  arm64: dts: renesas: r8a774e1: Add IPMMU device nodes
  iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support
  arm64: dts: renesas: Add HiHope RZ/G2H sub board support
  arm64: dts: renesas: Add HiHope RZ/G2H main board support
  dt-bindings: arm: renesas: Add HopeRun RZ/G2H boards
  arm64: dts: renesas: Initial r8a774e1 SoC device tree
  pinctrl: sh-pfc: pfc-r8a77951: Add R8A774E1 PFC support
  dt-bindings: pinctrl: sh-pfc: Document r8a774e1 PFC support
  pinctrl: sh-pfc: Split R-Car H3 support in two independent drivers
  pinctrl: sh-pfc: pfc-r8a7795: Fix typo in pinmux macro for SCL3
  pinctrl: sh-pfc: pfc-r8a7795-es1: Fix typo in pinmux macro for SCL3
  pinctrl: sh-pfc: r8a7795: Use new macros for non-GPIO pins
  pinctrl: sh-pfc: r8a7795-es1: Use new macros for non-GPIO pins
  pinctrl: sh-pfc: r8a7795: Add TPU pins, groups and functions
  pinctrl: sh-pfc: r8a7795-es1: Add TPU pins, groups and functions
  pinctrl: sh-pfc: rcar-gen3: Rename RTS{0,1,3,4}# pin function definitions
  pinctrl: sh-pfc: rcar-gen3: Retain TDSELCTRL register across suspend/resume
  pinctrl: sh-pfc: r8a7795: Deduplicate VIN5 pin definitions
  pinctrl: sh-pfc: r8a7795: Add I2C{0,3,5} pins, groups and functions
  pinctrl: sh-pfc: r8a7795-es1: Add I2C{0,3,5} pins, groups and functions
  pinctrl: sh-pfc: r8a7795: Fix VIN versioned groups
  pinctrl: sh-pfc: r8a77965: Fix DU_DOTCLKIN3 drive/bias control
  arm64: defconfig: Enable R8A774E1 SoC
  clk: renesas: cpg-mssr: Add r8a774e1 support
  dt-bindings: clock: renesas,cpg-mssr: Document r8a774e1
  clk: renesas: rzg2: Mark RWDT clocks as critical
  clk: renesas: cpg-mssr: Mark clocks as critical only if on at boot
  clk: renesas: rcar-gen3: Allow changing the RPC[D2] clocks
  clk: renesas: Add r8a774e1 CPG Core Clock Definitions
  clk: renesas: rcar-gen3: Add RPC clocks
  soc: renesas: rcar-rst: Add support for RZ/G2H
  dt-bindings: reset: rcar-rst: Document r8a774e1 reset module
  soc: renesas: Identify RZ/G2H
  dt-bindings: arm: renesas: Document RZ/G2H SoC DT bindings
  soc: renesas: Add Renesas R8A774E1 config option
  soc: renesas: rcar-sysc: Add r8a774e1 support
  dt-bindings: power: renesas,rcar-sysc: Document r8a774e1 SYSC binding
  dt-bindings: power: Add r8a774e1 SYSC power domain definitions
  arm64: dts: renesas: r8a774a1: Remove audio port node
  arm64: dts: renesas: Add HiHope RZ/G2N Rev2.0/3.0/4.0 board with idk-1110wr display
  arm64: dts: renesas: Add HiHope RZ/G2N Rev.3.0/4.0 sub board support
  arm64: dts: renesas: Add HiHope RZ/G2N Rev.3.0/4.0 main board support
  arm64: dts: renesas: Add HiHope RZ/G2M Rev.3.0/4.0 board with idk-1110wr display
  arm64: dts: renesas: hihope-rzg2-ex: Separate out lvds specific nodes into common file
  arm64: dts: renesas: Add HiHope RZ/G2M Rev.3.0/4.0 sub board support
  arm64: dts: renesas: Add HiHope RZ/G2M Rev.3.0/4.0 main board support
  arm64: dts: renesas: Add HiHope RZ/G2M[N] Rev.3.0/4.0 specific into common file
  arm64: dts: renesas: hihope-common: Separate out Rev.2.0 specific into hihope-rev2.dtsi file
  arm64: dts: renesas: r8a774b1-hihope-rzg2n[-ex]: Rename HiHope RZ/G2N boards
  arm64: dts: renesas: r8a774a1-hihope-rzg2m[-ex/-ex-idk-1110wr]: Rename HiHope RZ/G2M boards
  CIP: Bump version suffix to -cip33 after merge from stable
  drm: atomic helper: fix W=1 warnings
  drm: Add drm_atomic_get_old/new_private_obj_state
  drm: of: Fix linking when CONFIG_OF is not set
  CIP: Bump version suffix to -cip32 after merge from stable
  drm: of: Fix double-free bug
  CIP: Bump version suffix to -cip31 after merge from stable
  arm64: dts: renesas: Add EK874 board with idk-2121wr display support
  dt-bindings: display: Add idk-2121wr binding
  arm64: dts: renesas: rzg2: Add reset control properties for display
  arm64: dts: renesas: r8a774c0: Point LVDS0 to its companion LVDS1
  drm: rcar-du: lvds: Allow for even and odd pixels swap
  drm: rcar-du: lvds: Get dual link configuration from DT
  drm: of: Add drm_of_lvds_get_dual_link_pixel_order
  drm: rcar-du: lvds: Improve identification of panels
  drm: rcar-du: lvds: Get mode from state
  drm: Add atomic variants for bridge enable/disable
  drm: Add drm_atomic_get_(old|new)_connector_for_encoder() helpers
  drm: rcar_lvds: Fix dual link mode operations
  drm: rcar-du: Skip LVDS1 output on Gen3 when using dual-link LVDS mode
  drm: rcar-du: lvds: Add support for dual-link mode
  dt-bindings: display: renesas: lvds: Add renesas,companion property
  drm: bridge: Add dual_link field to the drm_bridge_timings structure
  drm: rcar-du: lvds: Remove LVDS double-enable checks
  arm64: defconfig: Enable additional support for Renesas platforms
  ASoC: rsnd: fixup SSI clock during suspend/resume modes
  CIP: Bump version suffix to -cip30 after merge from stable
  CIP: Bump version suffix to -cip29 after merge from stable
  CIP: Bump version suffix to -cip28 after merge from stable
  CIP: Bump version suffix to -cip27 after merge from stable
  CIP: Bump version suffix to -cip26 after merge from stable
  CIP: Bump version suffix to -cip25 after merge from stable
  arm64: dts: renesas: Add HiHope RZ/G2M board with idk-1110wr display
  dt-bindings: display: Add idk-1110wr binding
  CIP: Bump version suffix to -cip24 after merge from stable
  CIP: Bump version suffix to -cip23 after merge from stable
  CIP: Bump version suffix to -cip22 after merge from stable
  CIP: Bump version suffix to -cip21 after merge from stable
  arm64: dts: renesas: cat874: Enable usb role switch support
  arm64: dts: renesas: cat874: Enable USB3.0 host/peripheral device node
  usb: gadget: udc: renesas_usb3: Enhance role switch support
  usb: typec: fix an IS_ERR() vs NULL bug in hd3ss3220_probe()
  usb: typec: hd3ss3220: hd3ss3220_probe() warn: passing zero to 'PTR_ERR'
  usb: typec: add dependency for TYPEC_HD3SS3220
  usb: typec: hd3ss3220_irq() can be static
  usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller
  dt-bindings: usb: renesas_usb3: Document usb role switch support
  dt-bindings: usb: hd3ss3220 device tree binding document
  usb: roles: Add fwnode_usb_role_switch_get() function
  device connection: Add fwnode_connection_find_match()
  usb: roles: Introduce stubs for the exiting functions in role.h
  device connection: Find connections also by checking the references
  device property: Introduce fwnode_find_reference()
  device connection: Find device connections also from device graphs
  device connection: Prepare support for firmware described connections
  usb: typec: Find the ports by also matching against the device node
  usb: roles: Find the muxes by also matching against the device node
  usb: typec: mux: Fix unsigned comparison with less than zero
  usb: typec: mux: Find the muxes by also matching against the device node
  device connection: Add fwnode member to struct device_connection
  CIP: Bump version suffix to -cip20 after merge from stable
  arm64: dts: renesas: r8a774b1: Add USB3.0 device nodes
  arm64: dts: renesas: r8a774b1: Add USB-DMAC and HSUSB device nodes
  arm64: dts: renesas: r8a774b1: Add USB2.0 phy and host (EHCI/OHCI) device nodes
  dt-bindings: usb: renesas_usb3: Document r8a774b1 support
  dt-bindings: usb: renesas_gen3: Rename bindings documentation file to reflect IP block
  dt-bindings: usb-xhci: Add r8a774b1 support
  dt-bindings: rcar-gen3-phy-usb3: Add r8a774b1 support
  dt-bindings: usb: renesas_usbhs: Add r8a774b1 support
  dt-bindings: usb: renesas_usbhs: Rename bindings documentation file
  dt-bindings: dmaengine: usb-dmac: Add binding for r8a774b1
  dt-bindings: rcar-gen3-phy-usb2: Add r8a774b1 support
  arm64: dts: renesas: r8a774b1: Add Sound and Audio DMAC device nodes
  ASoC: rsnd: Document r8a774b1 bindings
  arm64: dts: renesas: r8a774a1: Remove audio port node
  arm64: dts: renesas: Add support for Advantech idk-1110wr LVDS panel
  arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support
  drm: rcar-du: lvds: Add r8a774b1 support
  arm64: dts: renesas: hihope-rzg2-ex: Enable backlight
  arm64: dts: renesas: r8a774b1: Add PWM device nodes
  arm64: dts: renesas: r8a774b1: Add FDP1 device nodes
  arm64: dts: renesas: r8a774b1-hihope-rzg2n: Add display clock properties
  arm64: dts: renesas: r8a774b1: Add HDMI encoder instance
  arm64: dts: renesas: r8a774b1: Add DU device to DT
  drm: rcar-du: Add R8A774B1 support
  arm64: dts: renesas: hihope-common: Move du clk properties out of common dtsi
  arm64: dts: renesas: r8a774b1: Connect Ethernet-AVB to IPMMU-DS0
  arm64: dts: renesas: r8a774b1: Tie SYS-DMAC to IPMMU-DS0/1
  arm64: dts: renesas: r8a774b1: Add VSP instances
  arm64: dts: renesas: r8a774b1: Add FCPF and FCPV instances
  arm64: dts: renesas: r8a774b1: Add IPMMU device nodes
  iommu/ipmmu-vmsa: Hook up r8a774b1 DT matching code
  dt-bindings: iommu: ipmmu-vmsa: Add r8a774b1 support
  arm64: dts: renesas: r8a774b1: Add CAN and CAN FD support
  dt-bindings: can: rcar_canfd: document r8a774b1 support
  dt-bindings: can: rcar_can: document r8a774b1 support
  arm64: dts: renesas: r8a774b1: Add TMU device nodes
  clk: renesas: r8a774b1: Add TMU clock
  dt-bindings: timer: renesas: tmu: Document r8a774b1 bindings
  arm64: dts: renesas: r8a774b1: Add CMT device nodes
  dt-bindings: timer: renesas, cmt: Document r8a774b1 CMT support
  arm64: dts: renesas: r8a774b1: Add RZ/G2N thermal support
  thermal: rcar_gen3_thermal: Add r8a774b1 support
  dt-bindings: thermal: rcar-gen3-thermal: Add r8a774b1 support
  arm64: dts: renesas: r8a774b1: Add OPPs table for cpu devices
  arm64: dts: renesas: r8a774b1: Add I2C and IIC-DVFS support
  dt-bindings: i2c: sh_mobile: Add r8a774b1 support
  dt-bindings: i2c: sh_mobile: Rename bindings documentation file
  dt-bindings: i2c: rcar: Add r8a774b1 support
  dt-bindings: i2c: rcar: Rename bindings documentation file
  arm64: dts: renesas: r8a774b1-hihope-rzg2n: Enable HS400 mode
  arm64: dts: renesas: r8a774b1: Add SDHI support
  mmc: renesas_sdhi_internal_dmac: Add r8a774b1 support
  dt-bindings: mmc: renesas_sdhi: Add r8a774b1 support
  arm64: dts: renesas: r8a774b1: Add INTC-EX device node
  arm64: dts: renesas: hihope-rzg2-ex: Let the board specific DT decide about pciec1
  arm64: dts: renesas: r8a774b1: Add PCIe device nodes
  arm64: dts: renesas: r8a774b1: Add all MSIOF nodes
  arm64: dts: renesas: r8a774b1: Add RWDT node
  dt-bindings: watchdog: renesas-wdt: Document r8a774b1 support
  dt-bindings: watchdog: Rename bindings documentation file
  dt-bindings: spi: sh-msiof: Add r8a774b1 support
  arm64: dts: renesas: Add HiHope RZ/G2N sub board support
  arm64: dts: renesas: r8a774b1: Add Ethernet AVB node
  dt-bindings: net: ravb: Add support for r8a774b1 SoC
  arm64: dts: renesas: r8a774b1: Add GPIO device nodes
  dt-bindings: gpio: rcar: Add DT binding for r8a774b1
  arm64: dts: renesas: r8a774b1: Add SCIF and HSCIF nodes
  arm64: dts: renesas: r8a774b1: Add SYS-DMAC device nodes
  dt-bindings: dmaengine: rcar-dmac: Document R8A774B1 bindings
  CIP: Bump version suffix to -cip19 after merge from stable
  arm64: dts: renesas: r8a774c0: cat874: Sort nodes
  arm64: dts: renesas: Use ip=on for bootargs
  arm64: dts: renesas: r8a774c0: cat874: Add definition for 12V regulator
  arm64: dts: renesas: Update 'vsps' properties for readability
  arm64: dts: renesas: r8a774c0: Fix register range of display node
  arm64: dts: renesas: r8a774c0: Add missing assigned-clocks for CAN[01]
  arm64: dts: renesas: r8a774c0: Clean up CPU compatibles
  arm64: dts: renesas: r8a774c0: Add dynamic power coefficient
  arm64: dts: renesas: r8a774c0: Create thermal zone to support IPA
  thermal: rcar_thermal: update calculation formula for R-Car Gen3 SoCs
  dt-bindings: can: rcar_can: Complete documentation for RZ/G2[EM]
  dt-bindings: can: rcar_can: document r8a77965 support
  CIP: Bump version suffix to -cip18 after merge from stable
  CIP: Bump version suffix to -cip17 after merge from stable
  arm64: defconfig: Enable R8A774B1 SoC
  arm64: dts: renesas: Add HiHope RZ/G2N main board support
  arm64: dts: renesas: Initial r8a774b1 SoC device tree
  dt-bindings: serial: sh-sci: Document r8a774b1 bindings
  pinctrl: sh-pfc: pfc-r8a77965: Fix typo in pinmux macro for SCL3
  pinctrl: sh-pfc: r8a77965: Add R8A774B1 PFC support
  dt-bindings: pinctrl: sh-pfc: Document r8a774b1 PFC support
  pinctrl: sh-pfc: r8a77965: Use new macros for non-GPIO pins
  pinctrl: sh-pfc: r8a77965: Add TPU pins, groups and functions
  pinctrl: sh-pfc: r8a77965: Add I2C{0,3,5} pins, groups and functions
  pinctrl: sh-pfc: r8a77965: Add DRIF pins, groups and functions
  pinctrl: sh-pfc: r8a77965: Add TMU pins, groups and functions
  pinctrl: sh-pfc: r8a77965: Replace DU_DOTCLKIN2 by DU_DOTCLKIN3
  pinctrl: sh-pfc: r8a77965: Add CAN FD pins, groups and functions
  pinctrl: sh-pfc: r8a77965: Add CAN pins, groups and functions
  pinctrl: sh-pfc: r8a77965: Add VIN[4|5] groups/functions
  pinctrl: sh-pfc: r8a77965: Add Audio SSI pin support
  pinctrl: sh-pfc: r8a77965: Add Audio clock pin support
  pinctrl: sh-pfc: r8a77965: Add SATA pins, groups and functions
  clk: renesas: cpg-mssr: Add r8a774b1 support
  dt-bindings: clock: renesas: cpg-mssr: Document r8a774b1 binding
  dt-bindings: clk: Add r8a774b1 CPG Core Clock Definitions
  soc: renesas: rcar-rst: Add support for RZ/G2N
  dt-bindings: reset: rcar-rst: Document r8a774b1 reset module
  soc: renesas: rcar-sysc: Add r8a774b1 support
  soc: renesas: r8a774c0-sysc: Fix power request conflicts
  soc: renesas: r8a77990-sysc: Fix power request conflicts
  soc: renesas: r8a77980-sysc: Fix power request conflicts
  soc: renesas: r8a77970-sysc: Fix power request conflicts
  soc: renesas: r8a77965-sysc: Fix power request conflicts
  soc: renesas: r8a7796-sysc: Fix power request conflicts
  soc: renesas: r8a7795-sysc: Fix power request conflicts
  soc: renesas: rcar-sysc: Prepare for fixing power request conflicts
  dt-bindings: power: rcar-sysc: Document r8a774b1 sysc
  dt-bindings: power: Add r8a774b1 SYSC power domain definitions
  soc: renesas: Identify RZ/G2N
  soc: renesas: Add Renesas R8A774B1 config option
  dt-bindings: arm: renesas: Add HopeRun RZ/G2N boards
  dt-bindings: arm: renesas: Document RZ/G2N SoC DT bindings
  CIP: Bump version suffix to -cip16 after merge from stable
  CIP: Bump version suffix to -cip15 after merge from stable
  gitlab-ci: Use external linux-cip-pipelines repository to define CI
  arm64: dts: renesas: r8a774a1: Add SSIU support for sound
  ASoC: rsnd: add SSIU BUSIF support
  ASoC: rsnd: add .get_id/.get_id_sub
  ASoC: rsnd: move .get_status under rsnd_mod_ops
  ASoC: rsnd: merge .nolock_start and .prepare
  ASoC: rsnd: ssiu: Support to init different BUSIF instance
  ASoC: rsnd: ssiu: Support BUSIF other than BUSIF0
  ASoc: rsnd: dma: Calculate PDMACHCRE with consider of BUSIF
  ASoc: rsnd: dma: Calculate dma address with consider of BUSIF
  ASoC: rsnd: ssi: Check runtime channel number rather than hw_params
  ASoC: rsnd: ssi: Fix issue in dma data address assignment
  ASoC: rsnd: remove is_play parameter from hw_rule function
  ASoC: rsnd: add support for 8 bit S8 format
  ASoC: rsnd: add support for 16/24 bit slot widths
  ASoC: rsnd: add warning message to rsnd_kctrl_accept_runtime()
  CIP: Bump version suffix to -cip14 after merge from stable
  gitlab-ci: Remove test timeout
  gitlab-ci: Remove unofficial build configurations
  gitlab-ci: Split tests into separate jobs
  CIP: Bump version suffix to -cip13 after merge from stable
  arm64: dts: renesas: hihope-rzg2-ex: Enable CAN interfaces
  arm64: dts: renesas: r8a774a1: Add CANFD support
  arm64: dts: renesas: r8a774a1: Add missing assigned-clocks for CAN[01]
  dt-bindings: can: rcar_canfd: document r8a774a1 support
  arm64: dts: renesas: hihope-common: Add HDMI audio support
  arm64: dts: renesas: r8a774a1: Use extended audio dmac registers
  arm64: dts: renesas: cat874: Add BT support
  arm64: dts: renesas: cat874: Add WLAN support
  arm64: dts: renesas: hihope-common: Add WLAN support
  arm64: dts: renesas: hihope-common: Add BT support
  arm64: dts: renesas: hihope-common: Add PCA9654 I/O expander
  CIP: Bump version suffix to -cip12 after merge from stable
  arm64: dts: renesas: r8a774c0: Add CANFD support
  dt-bindings: can: rcar_canfd: document r8a774c0 support
  arm64: dts: renesas: cat874: Add HDMI audio
  arm64: dts: renesas: cat874: Add HDMI video support
  arm64: defconfig: Enable TDA19988
  arm64: dts: renesas: r8a774c0: Add display output support
  media: use strscpy() instead of strlcpy()
  drm: rcar-du: Replace EXT_CTRL_REGS feature flag with generation check
  drm: rcar-du: Disable unused DPAD outputs
  drm/rcar-du: Use drm_fbdev_generic_setup()
  drm: rcar-du: Reject modes that fail CRTC timing requirements
  drm: rcar-du: Fix external clock error checks
  drm: rcar-du: Fix vblank initialization
  drm: rcar-du: Fix the return value in case of error in 'rcar_du_crtc_set_crc_source()'
  drm/rcar-du: Replace drm_dev_unref with drm_dev_put
  drm: rcar-du: Enable configurable DPAD0 routing on Gen3
  drm: rcar-du: Improve non-DPLL clock selection
  drm: rcar-du: lvds: Adjust operating frequency for D3 and E3
  drm: rcar-du: lvds: Fix post-DLL divider calculation
  drm: rcar-du: Turn LVDS clock output on/off for DPAD0 output on D3/E3
  drm: rcar-du: lvds: Add API to enable/disable clock output
  drm: rcar-du: lvds: Don't fail probe if output is not connected on D3/E3
  drm: rcar-du: Simplify encoder registration
  drm: rcar-du: Move CRTC outputs bitmask to private CRTC state
  drm: rcar-du: lvds: add R8A774C0 support
  drm: rcar-du: Add r8a774c0 device support
  drm: rcar-du: Use LVDS PLL clock as dot clock when possible
  drm: rcar-du: Perform the initial CRTC setup from rcar_du_crtc_get()
  drm: rcar-du: lvds: D3/E3 support
  dt-bindings: display: renesas: lvds: Document r8a774c0 bindings
  dt-bindings: display: renesas: lvds: Add EXTAL and DU_DOTCLKIN clocks
  dt-bindings: display: renesas: du: Document r8a774c0 bindings
  media: dt-bindings: media: renesas-fcp: Add RZ/G2 support
  media: vsp1: Add RZ/G support
  CIP: Bump version suffix to -cip11 after merge from stable
  gitlab-ci: Always store job artifacts
  gitlab-ci: Increase test timeout to 60 minutes
  arm64: dts: renesas: hihope-common: Add HDMI support
  arm64: dts: renesas: r8a774a1: Add HDMI encoder instance
  arm64: dts: renesas: r8a774a1: Connect Ethernet-AVB to IPMMU-DS0
  arm64: dts: renesas: r8a774a1: Tie Audio-DMAC to IPMMU-MP
  arm64: dts: renesas: r8a774a1: Tie SYS-DMAC to IPMMU-DS0/1
  arm64: dts: renesas: r8a774a1: Add FDP1 instance
  arm64: dts: renesas: r8a774a1: Add DU device to DT
  arm64: dts: renesas: r8a774a1: Add VSP instances
  arm64: dts: renesas: hihope-rzg2-ex: Enable PCIe support
  arm64: dts: renesas: hihope-common: Declare pcie bus clock
  arm64: dts: renesas: r8a774a1: Add PCIe device nodes
  drm: rcar-du: Update framebuffer pitch and alignment limits for Gen3
  drm: rcar-du: Store V4L2 fourcc in rcar_du_format_info structure
  drm: rcar-du: Add support for missing pixel formats
  drm: rcar-du: Rename and document dpll_ch field
  drm: rcar-du: Rework clock configuration based on hardware limits
  drm: rcar-du: Support interlaced video output through vsp1
  drm: rcar-du: Don't use TV sync mode when not supported by the hardware
  drm: rcar-du: Cache DSYSR value to ensure known initial value
  drm: rcar-du: Add interlaced feature flag
  drm: rcar-du: Refactor Feature and Quirk definitions
  drm: rcar-du: dw-hdmi: Reject modes with a too high clock frequency
  drm: rcar-du: lvds: Add r8a774a1 support
  drm: rcar-du: Add R8A774A1 support
  PCI: rcar: Do not shadow the 'irq' variable
  PCI: rcar: Clean up debug messages
  PCI: rcar: Replace various variable types with unsigned ones for register values
  PCI: rcar: Replace unsigned long with u32/unsigned int in register accessors
  dt-bindings: display: renesas: Add r8a774a1 support
  dt-bindings: display: renesas: lvds: Document r8a774a1 bindings
  dt-bindings: display: renesas: du: Document the r8a774a1 bindings
  dt-bindings: PCI: rcar: Add device tree support for r8a774a1
  CIP: Bump version suffix to -cip10 after merge from stable
  arm64: dts: renesas: hihope-common: Enable USB3.0
  arm64: dts: renesas: hihope-common: Add USB 2.0 support
  arm64: dts: renesas: r8a774a1: Fix USB 2.0 clocks
  phy: renesas: rcar-gen3-usb2: fix imbalance powered flag
  arm64: dts: renesas: hihope-common: Remove "label" from LEDs
  arm64: dts: renesas: hihope-common: Add LEDs support
  arm64: dts: renesas: hihope-common: Add uSD and eMMC
  mmc: renesas_sdhi: prevent overflow for max_req_size
  mmc: tmio: introduce macro for max block size
  mmc: renesas_sdhi: Change HW adjustment register according to speed mode
  arm64: dts: renesas: r8a774a1: Add dynamic power coefficient
  arm64: dts: renesas: r8a774a1: Create thermal zone to support IPA
  arm64: dts: renesas: r8a774a1: Add CPU capacity-dmips-mhz
  arm64: dts: renesas: r8a774a1: Add CPU topology on r8a774a1 SoC
  arm64: dts: renesas: r8a774a1: Add operating points
  thermal: rcar_gen3_thermal: Update temperature conversion method
  thermal: rcar_gen3_thermal: Update calculation formula of IRQTEMP
  thermal: rcar_gen3_thermal: Update value of Tj_1
  thermal: rcar_gen3_thermal: Fix to show correct trip points number
  thermal: rcar_gen3_thermal: fix interrupt type
  thermal: rcar_gen3_thermal: Fix init value of IRQCTL register
  thermal: rcar_gen3_thermal: Register hwmon sysfs interface
  arm64: dts: renesas: r8a774a1: Add TMU device nodes
  clk: renesas: r8a774a1: Add TMU clock
  arm64: dts: renesas: r8a774a1: Add CMT device nodes
  arm64: dts: renesas: hihope-common: Add RWDT support
  watchdog: renesas_wdt: Add a few cycles delay
  watchdog: renesas_wdt: Use 'dev' instead of dereferencing it repeatedly
  watchdog: renesas_wdt: drop superfluous glob pattern
  watchdog: renesas_wdt: don't keep timer value during suspend/resume
  watchdog: renesas_wdt: Fix typos
  watchdog: renesas_wdt: stop when unregistering
  arm64: dts: renesas: Add HiHope RZ/G2M sub board support
  arm64: dts: renesas: hihope-common: Add pincontrol support to scif2/scif clock
  arm64: dts: renesas: Add HiHope RZ/G2M main board support
  dt-bindings: Add vendor prefix for HopeRun
  dt-bindings: arm: renesas: Add HopeRun RZ/G2[M] boards
  gitlab-ci: Start testing the r8a774a1-hihope-rzg2m-ex device
  arm64: dts: renesas: r8a774a1: Add clkp2 clock to CAN nodes
  arm64: dts: Remove inconsistent use of 'arm,armv8' compatible string
  arm64: dts: renesas: r8a774a1: Fix hsusb reg size
  arm64: dts: renesas: r8a774a1: Enable DMA for SCIF2
  arm64: dts: renesas: r8a774a1: Replace clock magic numbers
  arm64: dts: renesas: r8a774a1: Replace power magic numbers
  arm64: dts: renesas: r8a774a1: Add CAN nodes
  arm64: dts: renesas: Remove unneeded status from thermal nodes
  arm64: dts: renesas: Fix whitespace around assignments
  arm64: dts: renesas: r8a774a1: Add USB3.0 device nodes
  arm64: dts: renesas: r8a774a1: Add USB-DMAC and HSUSB device nodes
  arm64: dts: renesas: r8a774a1: Add USB2.0 phy and host(EHCI/OHCI) device nodes
  arm64: dts: renesas: r8a774a1: Add FCPF and FCPV instances
  arm64: dts: renesas: r8a774a1: Add audio support
  arm64: dts: renesas: r8a774a1: Add PWM device nodes
  arm64: dts: renesas: r8a774a1: Add Cortex-A53 CPU cores
  arm64: dts: renesas: r8a774a1: Add all MSIOF nodes
  arm64: dts: renesas: r8a774a1: Add IPMMU device nodes
  arm64: dts: renesas: r8a774a1: Add RZ/G2M thermal support
  arm64: dts: renesas: r8a774a1: Add I2C and IIC-DVFS support
  arm64: dts: renesas: r8a774a1: Add SDHI nodes
  arm64: dts: renesas: r8a774a1: Add GPIO device nodes
  arm64: dts: renesas: r8a774a1: Add pinctrl device node
  arm64: dts: renesas: r8a774a1: Add RWDT node
  arm64: dts: renesas: r8a774a1: Add Ethernet AVB node
  arm64: dts: renesas: r8a774a1: Add INTC-EX device node
  arm64: dts: renesas: r8a774a1: Add SCIF and HSCIF nodes
  arm64: dts: renesas: r8a774a1: Add SYS-DMAC controller nodes
  arm64: dts: renesas: Initial r8a774a1 SoC device tree
  mmc: renesas_sdhi_internal_dmac: set scatter/gather max segment size
  ravb: Avoid unsupported internal delay mode for R-Car E3/D3
  ravb: remove tx buffer addr 4byte alilgnment restriction for R-Car Gen3
  spi: sh-msiof: fix deferred probing
  dmaengine: rcar-dmac: Update copyright information
  dmaengine: rcar-dmac: set scatter/gather max segment size
  serial: sh-sci: Fix fallback to PIO in sci_dma_rx_complete()
  serial: sh-sci: Extract sci_dma_rx_reenable_irq()
  serial: sh-sci: Extract sci_dma_rx_chan_invalidate()
  serial: sh-sci: Fix crash in rx_timer_fn() on PIO fallback
  soc: renesas: rcar-sysc: Fix power domain control after system resume
  soc: renesas: rcar-sysc: Merge PM Domain registration and linking
  soc: renesas: rcar-sysc: Remove rcar_sysc_power_{down,up}() helpers
  clk: renesas: cpg-mssr: Remove error messages on out-of-memory conditions
  clk: renesas: cpg-mssr: Use genpd of_node instead of local copy
  gpio: rcar: Pedantic formatting
  gpio: rcar: select General Output Register to set output states
  gpio: rcar: reference device instead of platform device
  thermal: rcar_gen3_thermal: Add r8a774a1 support
  dt-bindings: dmaengine: usb-dmac: Add binding for r8a774a1
  dt-bindings: thermal: rcar-gen3-thermal: Add r8a774a1 support
  dt-bindings: usb: renesas_usbhs: Add r8a774a1 support
  dt-bindings: usb-xhci: Add r8a774c0 support
  dt-bindings: usb-xhci: Add r8a774a1 support
  dt-bindings: rcar-gen3-phy-usb3: Add r8a774a1 support
  dt-bindings: can: rcar_can: Add r8a774c0 support
  dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks
  dt-bindings: can: rcar_can: Add r8a774a1 support
  pinctrl: sh-pfc: sh73a0: Use new macros for non-GPIO pins
  pinctrl: sh-pfc: sh73a0: Add missing TO pin to tpu4_to3 group
  pinctrl: sh-pfc: sh73a0: Fix fsic_spdif pin groups
  pinctrl: sh-pfc: r8a7791: Fix scifb2_data_c pin group
  pinctrl: sh-pfc: r8a7791: Fix VIN1 versioned groups
  pinctrl: sh-pfc: r8a7791: Remove bogus marks from vin1_b_data18 group
  pinctrl: sh-pfc: r8a7791: Remove bogus ctrl marks from qspi_data4_b group
  pinctrl: sh-pfc: r8a77995: Remove unused PINMUX_IPSR_{MSEL2,PHYS}()
  pinctrl: sh-pfc: r8a7740: Add missing LCD0 marks to lcd0_data24_1 group
  pinctrl: sh-pfc: r8a7740: Add missing REF125CK pin to gether_gmii group
  pinctrl: sh-pfc: r8a7796: Remove placeholder I2C pin data
  pinctrl: sh-pfc: r8a7796: Use new macros for non-GPIO pins
  pinctrl: sh-pfc: r8a7796: Add TPU pins, groups and functions
  pinctrl: sh-pfc: r8a77990: Use new macros for non-GPIO pins
  pinctrl: sh-pfc: Move PIN_NONE to shared header file
  pinctrl: sh-pfc: Add PORT_GP_27 helper macro
  pinctrl: sh-pfc: rcar-gen3: Rename SEL_NDFC to SEL_NDF
  pinctrl: sh-pfc: rcar-gen3: Rename RTS{0,1,3,4}# pin function definitions
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL1 bit30 when using SSI_SCK2 and SSI_WS2
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL1 bit31 when using SIM0_D
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL0 bit16 when using NFALE and NFRB_N
  pinctrl: sh-pfc: rcar-gen3: Rename SEL_ADG_{A,B,C} to SEL_ADG{A,B,C}
  pinctrl: sh-pfc: rcar-gen3: Remove CC5_OSCOUT pin
  pinctrl: sh-pfc: rcar-gen3: Remove HDMI CEC pins, groups, and functions
  pinctrl: sh-pfc: Add missing #include <linux/errno.h>
  pinctrl: sh-pfc: rcar-gen3: Retain TDSELCTRL register across suspend/resume
  pinctrl: sh-pfc: r8a77990: Move CANFD pin groups and functions
  pinctrl: sh-pfc: r8a77990: Rename IOCTRLx registers
  pinctrl: sh-pfc: r8a7796: Move CANFD pin groups and functions
  pinctrl: sh-pfc: r8a7796: Deduplicate VIN5 pin definitions
  pinctrl: sh-pfc: r8a7796: Add I2C{0,3,5} pins, groups and functions
  pinctrl: sh-pfc: r8a7796: Fix VIN versioned groups
  pinctrl: sh-pfc: Validate pin tables at runtime
  pinctrl: sh-pfc: Add check for empty pinmux groups/functions
  pinctrl: sh-pfc: Mark run-time debug code __init
  pinctrl: sh-pfc: Correct printk level of group reference warning
  pinctrl: sh-pfc: Add new non-GPIO helper macros
  pinctrl: sh-pfc: Add SH_PFC_PIN_CFG_PULL_UP_DOWN shorthand
  pinctrl: sh-pfc: Rename 2-parameter CPU_ALL_PORT() variant
  pinctrl: sh-pfc: Improve PINMUX_IPSR_PHYS() documentation
  pinctrl: sh-pfc: Validate enum IDs for regs with variable-width fields
  pinctrl: sh-pfc: Validate enum IDs for regs with fixed-width fields
  pinctrl: sh-pfc: Absorb enum IDs in PINMUX_DATA_REG() macro
  pinctrl: sh-pfc: Absorb enum IDs in PINMUX_CFG_REG_VAR() macro
  pinctrl: sh-pfc: Absorb enum IDs in PINMUX_CFG_REG() macro
  pinctrl: sh-pfc: Validate fixed-size field widths at build time
  pinctrl: sh-pfc: Make pinmux_cfg_reg.var_field_width[] variable-length
  pinctrl: sh-pfc: Validate pins/marks in pin groups at build time
  pinctrl: sh-pfc: Add physical pin multiplexing helper macros
  pinctrl: sh-pfc: Validate pinmux tables at runtime when debugging
  pinctrl: sh-pfc: Print actual field width for variable-width fields
  CIP: Bump version suffix to -cip9 after merge from stable
  staging: m57621-mmc: delete driver from the tree.
  CIP: Bump version suffix to -cip8 after merge from stable
  Update to run all CIP arm, arm64 and x86 configs
  Update CI to use the latest linux-cip-ci containers
  CIP: Bump version suffix to -cip7 after merge from stable
  arm64: dts: renesas: r8a774c0: sort subnodes of the soc node
  arm64: dts: renesas: r8a774c0: Remove invalid compatible value for CSI40
  arm64: dts: renesas: r8a774c0: Fix SCIF5 DMA channels
  arm64: dts: renesas: r8a774c0: Enable DMA for SCIF2
  arm64: dts: renesas: r8a774c0-cat874: Add RWDT support
  arm64: dts: renesas: r8a774c0-cat874: Add LEDs support
  arm64: dts: renesas: r8a774c0-cat874: add RTC support
  arm64: defconfig: enable RX-8581 config option
  rtc: rx8581: Add support for Epson rx8571 RTC
  dt-bindings: rtc: add rx8571 compatible
  rtc: nvmem: remove nvmem from struct rtc_device
  rtc: nvmem: use devm_nvmem_register()
  arm64: dts: renesas: cat874: Add USB-HOST support
  phy: renesas: rcar-gen3-usb2: enable/disable independent irqs
  phy: renesas: rcar-gen3-usb2: Use pdev's device pointer on dev_vdbg()
  phy: rcar-gen3-usb2: Add support for r8a77470
  phy: renesas: rcar-gen3-usb2: follow the hardware manual procedure
  phy: renesas: rcar-gen3-usb2: add is_otg_channel to use "role" sysfs
  phy: renesas: rcar-gen3-usb2: change a condition "dr_mode"
  phy: renesas: rcar-gen3-usb2: add conditions for uses_otg_pins == false
  phy: renesas: rcar-gen3-usb2: unify OBINTEN handling
  phy: renesas: rcar-gen3-usb2: Check a property to use otg pins
  phy: renesas: rcar-gen3-usb2: Rename has_otg_pins to uses_otg_pins
  phy: renesas: rcar-gen3-usb2: fix vbus_ctrl for role sysfs
  arm64: dts: renesas: cat875: Add CAN support
  arm64: dts: renesas: r8a774c0: Add clkp2 clock to CAN nodes
  arm64: dts: renesas: r8a774c0: Add CAN nodes
  arm64: dts: renesas: r8a774c0: Fix cpu nodes style
  arm64: dts: renesas: r8a774c0: Add OPPs table for cpu devices
  clk: renesas: rcar-gen3: Remove unused variable
  clk: renesas: rcar-gen3: Fix cpg_sd_clock_round_rate() return value
  clk: renesas: rcar-gen3: Correct parent clock of Audio-DMAC
  clk: renesas: rcar-gen3: Correct parent clock of SYS-DMAC
  clk: renesas: rcar-gen3: Correct parent clock of HS-USB
  clk: renesas: rcar-gen3: Correct parent clock of EHCI/OHCI
  clk: renesas: r8a774c0: Add Z2 clock
  clk: renesas: rcar-gen3: Support Z and Z2 clocks with high frequency parents
  math64: New DIV64_U64_ROUND_CLOSEST helper
  clk: renesas: rcar-gen3: Remove CLK_TYPE_GEN3_Z2
  clk: renesas: rcar-gen3: Parameterise Z and Z2 clock offset
  clk: renesas: rcar-gen3: Parameterise Z and Z2 clock fixed divisor
  clk: renesas: rcar-gen3: Pass name/offset to cpg_sd_clk_register()
  clk: renesas: r8a774a1: Fix LAST_DT_CORE_CLK
  clk: renesas: rcar-gen3: Add spinlock
  clk: renesas: rcar-gen3: Factor out cpg_reg_modify()
  clk: renesas: r8a774a1: Add missing CANFD clock
  clk: renesas: Remove usage of CLK_IS_BASIC
  clk: renesas: rcar-gen3: Add HS400 quirk for SD clock
  clk: renesas: rcar-gen3: Add documentation for SD clocks
  clk: renesas: rcar-gen3: Set state when registering SD clocks
  clk: renesas: r8a774a1: Add CPEX clock
  CIP: Bump version suffix to -cip6 after merge from stable
  Add gitlab-ci.yaml
  CIP: Bump version suffix to -cip5 after merge from stable
  CIP: Bump version suffix to -cip4 after merge from stable
  CIP: Bump version suffix to -cip3 after merge from stable
  dt-bindings: Add vendor prefix for Silicon Linux.
  CIP: Bump version suffix to -cip2 after Renesas patches
  arm64: defconfig: Enable R-Car thermal driver
  arm64: dts: renesas: r8a774c0: Add thermal support
  dt-bindings: thermal: rcar-thermal: add R8A774C0 support
  thermal: rcar_thermal: add R8A774C0 support
  arm64: dts: renesas: r8a774c0: Connect RZ/G2E Audio-DMAC to IPMMU
  arm64: dts: renesas: r8a774c0: Connect RZ/G2E AVB to IPMMU
  arm64: dts: renesas: r8a774c0: Connect RZ/G2E SYS-DMAC to IPMMU
  arm64: dts: renesas: r8a774c0: Add PWM support
  dt-bindings: pwm: rcar: Add r8a774c0 support
  dt-bindings: pwm: rcar: Add r8a774a1 support
  arm64: dts: renesas: r8a774c0: Add audio support
  ASoC: rsnd: Add r8a774c0 support
  ASoC: rsnd: Add r8a774a1 support
  arm64: dts: renesas: r8a774c0: Add VIN and CSI-2 device nodes
  media: dt-bindings: rcar-csi2: Add r8a774c0
  media: dt-bindings: rcar-vin: Add R8A774C0 support
  media: rcar-csi2: Add support for RZ/G2E
  media: rcar-csi2: Fix PHTW table values for E3/V3M
  media: rcar-csi2: Handle per-SoC number of channels
  media: rcar: rcar-csi2: Update V3M/E3 PHTW tables
  media: rcar-csi2: Add R8A77990 support
  media: rcar-vin: Add support for RZ/G2E
  media: rcar-vin: Add support for R-Car R8A77990
  arm64: dts: renesas: r8a774c0: Add IPMMU device nodes
  dt-bindings: iommu: ipmmu-vmsa: Add r8a774c0 support
  dt-bindings: iommu: ipmmu-vmsa: Add r8a774a1 support
  iommu/ipmmu-vmsa: Hook up r8a774c0 DT matching code
  iommu/ipmmu-vmsa: Modify ipmmu_slave_whitelist() to check SoC revisions
  iommu/ipmmu-vmsa: Hook up R8A774A1 DT maching code
  arm64: dts: renesas: r8a774c0: Add USB3.0 device nodes
  usb: gadget: udc: renesas_usb3: Add bindings for r8a774c0
  usb: gadget: udc: renesas_usb3: Add r8a774a1 support
  usb: gadget: udc: renesas_usb3: add support for r8a774c0
  usb: gadget: udc: renesas_usb3: add a safety connection way for forced_b_device
  usb: gadget: udc: renesas_usb3: add support for r8a77990
  arm64: dts: renesas: r8a774c0: Add USB-DMAC and HSUSB device nodes
  dt-bindings: dmaengine: usb-dmac: Add binding for r8a774c0
  dt-bindings: usb: renesas_usbhs: Add r8a774c0 support
  dt-bindings: usb: renesas_usbhs: add clock-names property
  Revert "usb: renesas_usbhs: add extcon notifier to set mode for non-otg channel"
  usb: renesas_usbhs: Add multiple clocks management
  usb: renesas_usbhs: Add reset_control
  usb: renesas_usbhs: add support for RZ/G2E
  arm64: dts: renesas: r8a774c0: Add USB2.0 phy and host device nodes
  dt-bindings: rcar-gen3-phy-usb2: Add r8a774c0 support
  dt-bindings: rcar-gen3-phy-usb2: Add r8a774a1 support
  arm64: renesas: Enable GPIOLIB to allow GPIO driver selection
  arm64: enable CMT/TMU support for Renesas SoC
  clocksource/drivers/sh_tmu: Convert to SPDX identifiers
  arm64: dts: renesas: r8a774c0: Add TMU device nodes
  dt-bindings: timer: renesas: tmu: Document r8a774c0 bindings
  clk: renesas: r8a774c0: Fix LAST_DT_CORE_CLK
  clk: renesas: r8a774c0: Add TMU clock
  clk: renesas: r8a774c0: Correct parent clock of DU
  clk: renesas: r8a774c0: Add missing CANFD clock
  arm64: dts: renesas: r8a774c0: Add CMT device nodes
  dt-bindings: timer: renesas, cmt: Document r8a774c0 CMT support
  dt-bindings: timer: renesas, cmt: Document r8a774a1 CMT support
  clocksource/drivers/sh_cmt: Add R-Car gen3 support
  dt-bindings: timer: renesas: cmt: document R-Car gen3 support
  clocksource/drivers/sh_cmt: Properly line-wrap sh_cmt_of_table[] initializer
  clocksource/drivers/sh_cmt: Fix clocksource width for 32-bit machines
  clocksource/drivers/sh_cmt: Fixup for 64-bit machines
  clocksource/drivers/sh_cmt: Convert to SPDX identifiers
  pinctrl: sh-pfc: r8a77990: Add DRIF pins, groups and functions
  pinctrl: sh-pfc: r8a77990: Add TMU pins, groups and functions
  pinctrl: sh-pfc: r8a77990: GP6_9 does not have pull-down capability
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL bit numbering
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL0 bit2 when using RX2, TX2 and SCK2
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL0 bit3 when using TX0
  pinctrl: sh-pfc: r8a77990: Fix MOD_SEL0 SEL_I2C1 field width
  pinctrl: sh-pfc: r8a77990: Fix IOCTRL reg state after s2ram on R-Car E3
  pinctrl: sh-pfc: r8a77990: Add CAN FD pins, groups and functions
  pinctrl: sh-pfc: r8a77990: Add CAN pins, groups and functions
  arm64: dts: renesas: cat875: Enable PCIe support
  arm64: dts: renesas: r8a774c0-cat874: Add pciec0 support
  arm64: dts: renesas: r8a774c0: Add PCIe device node
  dt-bindings: PCI: rcar: Add device tree support for r8a774c0
  arm64: dts: renesas: r8a774c0: Add MSIOF nodes
  spi: sh-msiof: Add r8a774c0 support
  spi: sh-msiof: Add r8a774a1 support
  arm64: dts: renesas: r8a774c0: Add I2C and IIC-DVFS support
  dt-bindings: i2c: rcar: Add r8a774c0 support
  i2c: sh_mobile: Add support for r8a774c0 (RZ/G2E)
  i2c: sh_mobile: add support for r8a77990 (R-Car E3)
  dt-bindings: i2c: sh_mobile: Add r8a774c0 support
  i2c: sh_mobile: document support for r8a77990 (R-Car E3)
  pinctrl: sh-pfc: r8a77990: Add HSCIF pins, groups, and functions
  pinctrl: sh-pfc: r8a77990: Add VIN[4|5] groups/functions
  pinctrl: sh-pfc: Add optional arg to VIN_DATA_PIN_GROUP
  pinctrl: sh-pfc: Reduce kernel size for narrow VIN channels
  arm64: dts: renesas: r8a774c0: Add watchdog support
  dt-bindings: watchdog: renesas-wdt: Document r8a774c0 support
  arm64: dts: renesas: cat875: Add ethernet support
  arm64: dts: renesas: r8a774c0: Add Ethernet AVB node
  dt-bindings: net: ravb: Add support for r8a774c0 SoC
  arm64: dts: renesas: r8a774c0-cat874: Add uSD support
  arm64: dts: renesas: r8a774c0: Add SDHI nodes
  mmc: renesas_sdhi_internal_dmac: Whitelist r8a774c0
  dt-bindings: mmc: renesas_sdhi: Add r8a774c0 support
  dt-bindings: mmc: renesas_sdhi: Add r8a77470 support
  mmc: renesas_sdhi_internal_dmac: Whitelist r8a774a1
  mmc: renesas_sdhi: Add r8a774a1 support
  pinctrl: sh-pfc: r8a77990: Add voltage switch operations for SDHI
  pinctrl: sh-pfc: r8a77990: Add SDHI pins, groups and functions
  pinctrl: sh-pfc: r8a77990: Add Audio SSI pins, groups and functions
  pinctrl: sh-pfc: r8a77990: Add Audio clock pins, groups and functions
  arm64: dts: renesas: r8a774c0-cat874: Add pincontrol support to scif2
  arm64: dts: renesas: r8a774c0: Add GPIO device nodes
  dt-bindings: gpio: rcar: Add r8a774c0 (RZ/G2E) support
  dt-bindings: gpio: rcar: Add r8a774a1 (RZ/G2M) support
  arm64: dts: renesas: r8a774c0: Add PFC support
  arm64: dts: renesas: r8a774c0: Add INTC-EX device node
  pinctrl: sh-pfc: r8a77990: Add INTC-EX pins, groups and function
  pinctrl: sh-pfc: rcar: Rename automotive-only arrays to automotive
  arm64: dts: renesas: r8a774c0: Add secondary CA53 CPU core
  clk: renesas: cpg-mssr: Add r8a774c0 support
  dt-bindings: clock: renesas: cpg-mssr: Document r8a774c0
  clk: renesas: cpg-mssr: Add r8a774a1 support
  clk: renesas: rcar-gen3: Add support for mode pin clock selection
  clk: renesas: rcar-gen3: Add support for RCKSEL clock selection
  clk: renesas: cpg-mssr: Add support for fixed rate clocks
  clk: renesas: rcar-gen3: Add support for OSC EXTAL predivider
  clk: renesas: Add r8a774a1 CPG Core Clock Definitions
  clk: renesas: Add r8a774c0 CPG Core Clock Definitions
  arm64: dts: renesas: r8a774c0: Add SCIF and HSCIF nodes
  dt-bindings: serial: sh-sci: Document r8a774c0 bindings
  dt-bindings: serial: sh-sci: Document r8a774a1 bindings
  arm64: dts: renesas: r8a774c0: Add SYS-DMAC controller nodes
  dmaengine: rcar-dmac: Document R8A774C0 bindings
  dmaengine: rcar-dmac: Document R8A774A1 bindings
  arm64: dts: renesas: Add Si-Linux EK874 board support
  arm64: dts: renesas: Add Si-Linux CAT874 board support
  arm64: dts: renesas: Initial device tree for r8a774c0
  dt-bindings: arm: Add si-linux cat87[45] boards
  ARM: dts: socfpga: Rename socfpga_cyclone5_de0_{sockit, nano_soc}
  dt-bindings: irqchip: renesas-irqc: Document r8a774c0 support
  soc: renesas: rcar-rst: Add support for RZ/G2E
  dt-bindings: reset: rcar-rst: Document r8a774c0 rst
  soc: renesas: rcar-rst: Add support for RZ/G2M
  soc: renesas: rcar-sysc: Add r8a774c0 support
  dt-bindings: power: rcar-sysc: Document r8a774c0 sysc
  soc: renesas: rcar-sysc: Add r8a774a1 support
  dt-bindings: power: Add r8a774c0 SYSC power domain definitions
  dt-bindings: power: Add r8a774a1 SYSC power domain definitions
  arm64: defconfig: enable R8A774C0 SoC
  arm64: defconfig: enable R8A774A1 SoC
  arm64: Add Renesas R8A774C0 support
  arm64: Add Renesas R8A774A1 support
  soc: renesas: Identify RZ/G2E
  soc: renesas: Identify RZ/G2M
  dt-bindings: arm: Fix RZ/G2E part number
  dt-bindings: arm: Document RZ/G2E SoC DT bindings
  dt-bindings: arm: Document RZ/G2M SoC DT bindings
  pinctrl: sh-pfc: r8a77990: Add R8A774C0 PFC support
  pinctrl: sh-pfc: r8a77990: Add MSIOF pins, groups and functions
  pinctrl: sh-pfc: r8a77990: Add DU pins, groups and function
  pinctrl: sh-pfc: r8a77990: Add PWM pins, groups and functions
  dt-bindings: pinctrl: sh-pfc: Document r8a774c0 PFC support
  pinctrl: sh-pfc: r8a7796: Add R8A774A1 PFC support
  dt-bindings: pinctrl: sh-pfc: Document r8a774a1 PFC support
  CIP: Add a number to the version suffix

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I8df832a466b4899d9b12006b6238f003c5aebd26
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2025-03-19 23:15:11 +00:00

1085 lines
25 KiB
C

/*
* phy-core.c -- Generic Phy framework.
*
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
*
* Author: Kishon Vijay Abraham I <kishon@ti.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/idr.h>
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>
static struct class *phy_class;
static DEFINE_MUTEX(phy_provider_mutex);
static LIST_HEAD(phy_provider_list);
static LIST_HEAD(phys);
static DEFINE_IDA(phy_ida);
static void devm_phy_release(struct device *dev, void *res)
{
struct phy *phy = *(struct phy **)res;
phy_put(phy);
}
static void devm_phy_provider_release(struct device *dev, void *res)
{
struct phy_provider *phy_provider = *(struct phy_provider **)res;
of_phy_provider_unregister(phy_provider);
}
static void devm_phy_consume(struct device *dev, void *res)
{
struct phy *phy = *(struct phy **)res;
phy_destroy(phy);
}
static int devm_phy_match(struct device *dev, void *res, void *match_data)
{
struct phy **phy = res;
return *phy == match_data;
}
/**
* phy_create_lookup() - allocate and register PHY/device association
* @phy: the phy of the association
* @con_id: connection ID string on device
* @dev_id: the device of the association
*
* Creates and registers phy_lookup entry.
*/
int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id)
{
struct phy_lookup *pl;
if (!phy || !dev_id || !con_id)
return -EINVAL;
pl = kzalloc(sizeof(*pl), GFP_KERNEL);
if (!pl)
return -ENOMEM;
pl->dev_id = dev_id;
pl->con_id = con_id;
pl->phy = phy;
mutex_lock(&phy_provider_mutex);
list_add_tail(&pl->node, &phys);
mutex_unlock(&phy_provider_mutex);
return 0;
}
EXPORT_SYMBOL_GPL(phy_create_lookup);
/**
* phy_remove_lookup() - find and remove PHY/device association
* @phy: the phy of the association
* @con_id: connection ID string on device
* @dev_id: the device of the association
*
* Finds and unregisters phy_lookup entry that was created with
* phy_create_lookup().
*/
void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id)
{
struct phy_lookup *pl;
if (!phy || !dev_id || !con_id)
return;
mutex_lock(&phy_provider_mutex);
list_for_each_entry(pl, &phys, node)
if (pl->phy == phy && !strcmp(pl->dev_id, dev_id) &&
!strcmp(pl->con_id, con_id)) {
list_del(&pl->node);
kfree(pl);
break;
}
mutex_unlock(&phy_provider_mutex);
}
EXPORT_SYMBOL_GPL(phy_remove_lookup);
static struct phy *phy_find(struct device *dev, const char *con_id)
{
const char *dev_id = dev_name(dev);
struct phy_lookup *p, *pl = NULL;
mutex_lock(&phy_provider_mutex);
list_for_each_entry(p, &phys, node)
if (!strcmp(p->dev_id, dev_id) && !strcmp(p->con_id, con_id)) {
pl = p;
break;
}
mutex_unlock(&phy_provider_mutex);
return pl ? pl->phy : ERR_PTR(-ENODEV);
}
static struct phy_provider *of_phy_provider_lookup(struct device_node *node)
{
struct phy_provider *phy_provider;
struct device_node *child;
list_for_each_entry(phy_provider, &phy_provider_list, list) {
if (phy_provider->dev->of_node == node)
return phy_provider;
for_each_child_of_node(phy_provider->children, child)
if (child == node) {
of_node_put(child);
return phy_provider;
}
}
return ERR_PTR(-EPROBE_DEFER);
}
int phy_pm_runtime_get(struct phy *phy)
{
int ret;
if (!phy)
return 0;
if (!pm_runtime_enabled(&phy->dev))
return -ENOTSUPP;
ret = pm_runtime_get(&phy->dev);
if (ret < 0 && ret != -EINPROGRESS)
pm_runtime_put_noidle(&phy->dev);
return ret;
}
EXPORT_SYMBOL_GPL(phy_pm_runtime_get);
int phy_pm_runtime_get_sync(struct phy *phy)
{
int ret;
if (!phy)
return 0;
if (!pm_runtime_enabled(&phy->dev))
return -ENOTSUPP;
ret = pm_runtime_get_sync(&phy->dev);
if (ret < 0)
pm_runtime_put_sync(&phy->dev);
return ret;
}
EXPORT_SYMBOL_GPL(phy_pm_runtime_get_sync);
int phy_pm_runtime_put(struct phy *phy)
{
if (!phy)
return 0;
if (!pm_runtime_enabled(&phy->dev))
return -ENOTSUPP;
return pm_runtime_put(&phy->dev);
}
EXPORT_SYMBOL_GPL(phy_pm_runtime_put);
int phy_pm_runtime_put_sync(struct phy *phy)
{
if (!phy)
return 0;
if (!pm_runtime_enabled(&phy->dev))
return -ENOTSUPP;
return pm_runtime_put_sync(&phy->dev);
}
EXPORT_SYMBOL_GPL(phy_pm_runtime_put_sync);
void phy_pm_runtime_allow(struct phy *phy)
{
if (!phy)
return;
if (!pm_runtime_enabled(&phy->dev))
return;
pm_runtime_allow(&phy->dev);
}
EXPORT_SYMBOL_GPL(phy_pm_runtime_allow);
void phy_pm_runtime_forbid(struct phy *phy)
{
if (!phy)
return;
if (!pm_runtime_enabled(&phy->dev))
return;
pm_runtime_forbid(&phy->dev);
}
EXPORT_SYMBOL_GPL(phy_pm_runtime_forbid);
int phy_init(struct phy *phy)
{
int ret;
if (!phy)
return 0;
ret = phy_pm_runtime_get_sync(phy);
if (ret < 0 && ret != -ENOTSUPP)
return ret;
ret = 0; /* Override possible ret == -ENOTSUPP */
mutex_lock(&phy->mutex);
if (phy->init_count == 0 && phy->ops->init) {
ret = phy->ops->init(phy);
if (ret < 0) {
dev_err(&phy->dev, "phy init failed --> %d\n", ret);
goto out;
}
}
++phy->init_count;
out:
mutex_unlock(&phy->mutex);
phy_pm_runtime_put(phy);
return ret;
}
EXPORT_SYMBOL_GPL(phy_init);
int phy_exit(struct phy *phy)
{
int ret;
if (!phy)
return 0;
ret = phy_pm_runtime_get_sync(phy);
if (ret < 0 && ret != -ENOTSUPP)
return ret;
ret = 0; /* Override possible ret == -ENOTSUPP */
mutex_lock(&phy->mutex);
if (phy->init_count == 1 && phy->ops->exit) {
ret = phy->ops->exit(phy);
if (ret < 0) {
dev_err(&phy->dev, "phy exit failed --> %d\n", ret);
goto out;
}
}
--phy->init_count;
out:
mutex_unlock(&phy->mutex);
phy_pm_runtime_put(phy);
return ret;
}
EXPORT_SYMBOL_GPL(phy_exit);
int phy_power_on(struct phy *phy)
{
int ret = 0;
if (!phy)
goto out;
if (phy->pwr) {
ret = regulator_enable(phy->pwr);
if (ret)
goto out;
}
ret = phy_pm_runtime_get_sync(phy);
if (ret < 0 && ret != -ENOTSUPP)
goto err_pm_sync;
ret = 0; /* Override possible ret == -ENOTSUPP */
mutex_lock(&phy->mutex);
if (phy->power_count == 0 && phy->ops->power_on) {
ret = phy->ops->power_on(phy);
if (ret < 0) {
dev_err(&phy->dev, "phy poweron failed --> %d\n", ret);
goto err_pwr_on;
}
}
++phy->power_count;
mutex_unlock(&phy->mutex);
return 0;
err_pwr_on:
mutex_unlock(&phy->mutex);
phy_pm_runtime_put_sync(phy);
err_pm_sync:
if (phy->pwr)
regulator_disable(phy->pwr);
out:
return ret;
}
EXPORT_SYMBOL_GPL(phy_power_on);
int phy_power_off(struct phy *phy)
{
int ret;
if (!phy)
return 0;
mutex_lock(&phy->mutex);
if (phy->power_count == 1 && phy->ops->power_off) {
ret = phy->ops->power_off(phy);
if (ret < 0) {
dev_err(&phy->dev, "phy poweroff failed --> %d\n", ret);
mutex_unlock(&phy->mutex);
return ret;
}
}
--phy->power_count;
mutex_unlock(&phy->mutex);
phy_pm_runtime_put(phy);
if (phy->pwr)
regulator_disable(phy->pwr);
return 0;
}
EXPORT_SYMBOL_GPL(phy_power_off);
int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode)
{
int ret;
if (!phy || !phy->ops->set_mode)
return 0;
mutex_lock(&phy->mutex);
ret = phy->ops->set_mode(phy, mode, submode);
if (!ret)
phy->attrs.mode = mode;
mutex_unlock(&phy->mutex);
return ret;
}
EXPORT_SYMBOL_GPL(phy_set_mode_ext);
int phy_get_mode_ext(struct phy *phy)
{
int ret;
if (!phy || !phy->ops->get_mode_ext)
return 0;
mutex_lock(&phy->mutex);
ret = phy->ops->get_mode_ext(phy);
if (!ret)
ret = phy->attrs.mode;
mutex_unlock(&phy->mutex);
return ret;
}
EXPORT_SYMBOL_GPL(phy_get_mode_ext);
int phy_reset(struct phy *phy)
{
int ret;
if (!phy || !phy->ops->reset)
return 0;
mutex_lock(&phy->mutex);
ret = phy->ops->reset(phy);
mutex_unlock(&phy->mutex);
return ret;
}
EXPORT_SYMBOL_GPL(phy_reset);
int phy_calibrate(struct phy *phy)
{
int ret;
if (!phy || !phy->ops->calibrate)
return 0;
mutex_lock(&phy->mutex);
ret = phy->ops->calibrate(phy);
mutex_unlock(&phy->mutex);
return ret;
}
EXPORT_SYMBOL_GPL(phy_calibrate);
/**
* _of_phy_get() - lookup and obtain a reference to a phy by phandle
* @np: device_node for which to get the phy
* @index: the index of the phy
*
* Returns the phy associated with the given phandle value,
* after getting a refcount to it or -ENODEV if there is no such phy or
* -EPROBE_DEFER if there is a phandle to the phy, but the device is
* not yet loaded. This function uses of_xlate call back function provided
* while registering the phy_provider to find the phy instance.
*/
static struct phy *_of_phy_get(struct device_node *np, int index)
{
int ret;
struct phy_provider *phy_provider;
struct phy *phy = NULL;
struct of_phandle_args args;
ret = of_parse_phandle_with_args(np, "phys", "#phy-cells",
index, &args);
if (ret)
return ERR_PTR(-ENODEV);
/* This phy type handled by the usb-phy subsystem for now */
if (of_device_is_compatible(args.np, "usb-nop-xceiv")) {
phy = ERR_PTR(-ENODEV);
goto out_put_node;
}
mutex_lock(&phy_provider_mutex);
phy_provider = of_phy_provider_lookup(args.np);
if (IS_ERR(phy_provider) || !try_module_get(phy_provider->owner)) {
phy = ERR_PTR(-EPROBE_DEFER);
goto out_unlock;
}
if (!of_device_is_available(args.np)) {
dev_warn(phy_provider->dev, "Requested PHY is disabled\n");
phy = ERR_PTR(-ENODEV);
goto out_put_module;
}
phy = phy_provider->of_xlate(phy_provider->dev, &args);
out_put_module:
module_put(phy_provider->owner);
out_unlock:
mutex_unlock(&phy_provider_mutex);
out_put_node:
of_node_put(args.np);
return phy;
}
/**
* of_phy_get() - lookup and obtain a reference to a phy using a device_node.
* @np: device_node for which to get the phy
* @con_id: name of the phy from device's point of view
*
* Returns the phy driver, after getting a refcount to it; or
* -ENODEV if there is no such phy. The caller is responsible for
* calling phy_put() to release that count.
*/
struct phy *of_phy_get(struct device_node *np, const char *con_id)
{
struct phy *phy = NULL;
int index = 0;
if (con_id)
index = of_property_match_string(np, "phy-names", con_id);
phy = _of_phy_get(np, index);
if (IS_ERR(phy))
return phy;
if (!try_module_get(phy->ops->owner))
return ERR_PTR(-EPROBE_DEFER);
get_device(&phy->dev);
return phy;
}
EXPORT_SYMBOL_GPL(of_phy_get);
/**
* phy_put() - release the PHY
* @phy: the phy returned by phy_get()
*
* Releases a refcount the caller received from phy_get().
*/
void phy_put(struct phy *phy)
{
if (!phy || IS_ERR(phy))
return;
module_put(phy->ops->owner);
put_device(&phy->dev);
}
EXPORT_SYMBOL_GPL(phy_put);
/**
* devm_phy_put() - release the PHY
* @dev: device that wants to release this phy
* @phy: the phy returned by devm_phy_get()
*
* destroys the devres associated with this phy and invokes phy_put
* to release the phy.
*/
void devm_phy_put(struct device *dev, struct phy *phy)
{
int r;
if (!phy)
return;
r = devres_release(dev, devm_phy_release, devm_phy_match, phy);
dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n");
}
EXPORT_SYMBOL_GPL(devm_phy_put);
/**
* of_phy_simple_xlate() - returns the phy instance from phy provider
* @dev: the PHY provider device
* @args: of_phandle_args (not used here)
*
* Intended to be used by phy provider for the common case where #phy-cells is
* 0. For other cases where #phy-cells is greater than '0', the phy provider
* should provide a custom of_xlate function that reads the *args* and returns
* the appropriate phy.
*/
struct phy *of_phy_simple_xlate(struct device *dev, struct of_phandle_args
*args)
{
struct phy *phy;
struct class_dev_iter iter;
class_dev_iter_init(&iter, phy_class, NULL, NULL);
while ((dev = class_dev_iter_next(&iter))) {
phy = to_phy(dev);
if (args->np != phy->dev.of_node)
continue;
class_dev_iter_exit(&iter);
return phy;
}
class_dev_iter_exit(&iter);
return ERR_PTR(-ENODEV);
}
EXPORT_SYMBOL_GPL(of_phy_simple_xlate);
/**
* phy_get() - lookup and obtain a reference to a phy.
* @dev: device that requests this phy
* @string: the phy name as given in the dt data or the name of the controller
* port for non-dt case
*
* Returns the phy driver, after getting a refcount to it; or
* -ENODEV if there is no such phy. The caller is responsible for
* calling phy_put() to release that count.
*/
struct phy *phy_get(struct device *dev, const char *string)
{
int index = 0;
struct phy *phy;
if (string == NULL) {
dev_WARN(dev, "missing string\n");
return ERR_PTR(-EINVAL);
}
if (dev->of_node) {
index = of_property_match_string(dev->of_node, "phy-names",
string);
phy = _of_phy_get(dev->of_node, index);
} else {
phy = phy_find(dev, string);
}
if (IS_ERR(phy))
return phy;
if (!try_module_get(phy->ops->owner))
return ERR_PTR(-EPROBE_DEFER);
get_device(&phy->dev);
return phy;
}
EXPORT_SYMBOL_GPL(phy_get);
/**
* phy_optional_get() - lookup and obtain a reference to an optional phy.
* @dev: device that requests this phy
* @string: the phy name as given in the dt data or the name of the controller
* port for non-dt case
*
* Returns the phy driver, after getting a refcount to it; or
* NULL if there is no such phy. The caller is responsible for
* calling phy_put() to release that count.
*/
struct phy *phy_optional_get(struct device *dev, const char *string)
{
struct phy *phy = phy_get(dev, string);
if (IS_ERR(phy) && (PTR_ERR(phy) == -ENODEV))
phy = NULL;
return phy;
}
EXPORT_SYMBOL_GPL(phy_optional_get);
/**
* devm_phy_get() - lookup and obtain a reference to a phy.
* @dev: device that requests this phy
* @string: the phy name as given in the dt data or phy device name
* for non-dt case
*
* Gets the phy using phy_get(), and associates a device with it using
* devres. On driver detach, release function is invoked on the devres data,
* then, devres data is freed.
*/
struct phy *devm_phy_get(struct device *dev, const char *string)
{
struct phy **ptr, *phy;
ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL);
if (!ptr)
return ERR_PTR(-ENOMEM);
phy = phy_get(dev, string);
if (!IS_ERR(phy)) {
*ptr = phy;
devres_add(dev, ptr);
} else {
devres_free(ptr);
}
return phy;
}
EXPORT_SYMBOL_GPL(devm_phy_get);
/**
* devm_phy_optional_get() - lookup and obtain a reference to an optional phy.
* @dev: device that requests this phy
* @string: the phy name as given in the dt data or phy device name
* for non-dt case
*
* Gets the phy using phy_get(), and associates a device with it using
* devres. On driver detach, release function is invoked on the devres
* data, then, devres data is freed. This differs to devm_phy_get() in
* that if the phy does not exist, it is not considered an error and
* -ENODEV will not be returned. Instead the NULL phy is returned,
* which can be passed to all other phy consumer calls.
*/
struct phy *devm_phy_optional_get(struct device *dev, const char *string)
{
struct phy *phy = devm_phy_get(dev, string);
if (IS_ERR(phy) && (PTR_ERR(phy) == -ENODEV))
phy = NULL;
return phy;
}
EXPORT_SYMBOL_GPL(devm_phy_optional_get);
/**
* devm_of_phy_get() - lookup and obtain a reference to a phy.
* @dev: device that requests this phy
* @np: node containing the phy
* @con_id: name of the phy from device's point of view
*
* Gets the phy using of_phy_get(), and associates a device with it using
* devres. On driver detach, release function is invoked on the devres data,
* then, devres data is freed.
*/
struct phy *devm_of_phy_get(struct device *dev, struct device_node *np,
const char *con_id)
{
struct phy **ptr, *phy;
ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL);
if (!ptr)
return ERR_PTR(-ENOMEM);
phy = of_phy_get(np, con_id);
if (!IS_ERR(phy)) {
*ptr = phy;
devres_add(dev, ptr);
} else {
devres_free(ptr);
}
return phy;
}
EXPORT_SYMBOL_GPL(devm_of_phy_get);
/**
* devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index.
* @dev: device that requests this phy
* @np: node containing the phy
* @index: index of the phy
*
* Gets the phy using _of_phy_get(), then gets a refcount to it,
* and associates a device with it using devres. On driver detach,
* release function is invoked on the devres data,
* then, devres data is freed.
*
*/
struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np,
int index)
{
struct phy **ptr, *phy;
ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL);
if (!ptr)
return ERR_PTR(-ENOMEM);
phy = _of_phy_get(np, index);
if (IS_ERR(phy)) {
devres_free(ptr);
return phy;
}
if (!try_module_get(phy->ops->owner)) {
devres_free(ptr);
return ERR_PTR(-EPROBE_DEFER);
}
get_device(&phy->dev);
*ptr = phy;
devres_add(dev, ptr);
return phy;
}
EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index);
/**
* phy_create() - create a new phy
* @dev: device that is creating the new phy
* @node: device node of the phy
* @ops: function pointers for performing phy operations
*
* Called to create a phy using phy framework.
*/
struct phy *phy_create(struct device *dev, struct device_node *node,
const struct phy_ops *ops)
{
int ret;
int id;
struct phy *phy;
if (WARN_ON(!dev))
return ERR_PTR(-EINVAL);
phy = kzalloc(sizeof(*phy), GFP_KERNEL);
if (!phy)
return ERR_PTR(-ENOMEM);
id = ida_simple_get(&phy_ida, 0, 0, GFP_KERNEL);
if (id < 0) {
dev_err(dev, "unable to get id\n");
ret = id;
goto free_phy;
}
device_initialize(&phy->dev);
mutex_init(&phy->mutex);
phy->dev.class = phy_class;
phy->dev.parent = dev;
phy->dev.of_node = node ?: dev->of_node;
phy->id = id;
phy->ops = ops;
ret = dev_set_name(&phy->dev, "phy-%s.%d", dev_name(dev), id);
if (ret)
goto put_dev;
/* phy-supply */
phy->pwr = regulator_get_optional(&phy->dev, "phy");
if (IS_ERR(phy->pwr)) {
ret = PTR_ERR(phy->pwr);
if (ret == -EPROBE_DEFER)
goto put_dev;
phy->pwr = NULL;
}
ret = device_add(&phy->dev);
if (ret)
goto put_dev;
if (pm_runtime_enabled(dev)) {
pm_runtime_enable(&phy->dev);
pm_runtime_no_callbacks(&phy->dev);
}
return phy;
put_dev:
put_device(&phy->dev); /* calls phy_release() which frees resources */
return ERR_PTR(ret);
free_phy:
kfree(phy);
return ERR_PTR(ret);
}
EXPORT_SYMBOL_GPL(phy_create);
/**
* devm_phy_create() - create a new phy
* @dev: device that is creating the new phy
* @node: device node of the phy
* @ops: function pointers for performing phy operations
*
* Creates a new PHY device adding it to the PHY class.
* While at that, it also associates the device with the phy using devres.
* On driver detach, release function is invoked on the devres data,
* then, devres data is freed.
*/
struct phy *devm_phy_create(struct device *dev, struct device_node *node,
const struct phy_ops *ops)
{
struct phy **ptr, *phy;
ptr = devres_alloc(devm_phy_consume, sizeof(*ptr), GFP_KERNEL);
if (!ptr)
return ERR_PTR(-ENOMEM);
phy = phy_create(dev, node, ops);
if (!IS_ERR(phy)) {
*ptr = phy;
devres_add(dev, ptr);
} else {
devres_free(ptr);
}
return phy;
}
EXPORT_SYMBOL_GPL(devm_phy_create);
/**
* phy_destroy() - destroy the phy
* @phy: the phy to be destroyed
*
* Called to destroy the phy.
*/
void phy_destroy(struct phy *phy)
{
pm_runtime_disable(&phy->dev);
device_unregister(&phy->dev);
}
EXPORT_SYMBOL_GPL(phy_destroy);
/**
* devm_phy_destroy() - destroy the PHY
* @dev: device that wants to release this phy
* @phy: the phy returned by devm_phy_get()
*
* destroys the devres associated with this phy and invokes phy_destroy
* to destroy the phy.
*/
void devm_phy_destroy(struct device *dev, struct phy *phy)
{
int r;
r = devres_release(dev, devm_phy_consume, devm_phy_match, phy);
dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n");
}
EXPORT_SYMBOL_GPL(devm_phy_destroy);
/**
* __of_phy_provider_register() - create/register phy provider with the framework
* @dev: struct device of the phy provider
* @children: device node containing children (if different from dev->of_node)
* @owner: the module owner containing of_xlate
* @of_xlate: function pointer to obtain phy instance from phy provider
*
* Creates struct phy_provider from dev and of_xlate function pointer.
* This is used in the case of dt boot for finding the phy instance from
* phy provider.
*
* If the PHY provider doesn't nest children directly but uses a separate
* child node to contain the individual children, the @children parameter
* can be used to override the default. If NULL, the default (dev->of_node)
* will be used. If non-NULL, the device node must be a child (or further
* descendant) of dev->of_node. Otherwise an ERR_PTR()-encoded -EINVAL
* error code is returned.
*/
struct phy_provider *__of_phy_provider_register(struct device *dev,
struct device_node *children, struct module *owner,
struct phy * (*of_xlate)(struct device *dev,
struct of_phandle_args *args))
{
struct phy_provider *phy_provider;
/*
* If specified, the device node containing the children must itself
* be the provider's device node or a child (or further descendant)
* thereof.
*/
if (children) {
struct device_node *parent = of_node_get(children), *next;
while (parent) {
if (parent == dev->of_node)
break;
next = of_get_parent(parent);
of_node_put(parent);
parent = next;
}
if (!parent)
return ERR_PTR(-EINVAL);
of_node_put(parent);
} else {
children = dev->of_node;
}
phy_provider = kzalloc(sizeof(*phy_provider), GFP_KERNEL);
if (!phy_provider)
return ERR_PTR(-ENOMEM);
phy_provider->dev = dev;
phy_provider->children = of_node_get(children);
phy_provider->owner = owner;
phy_provider->of_xlate = of_xlate;
mutex_lock(&phy_provider_mutex);
list_add_tail(&phy_provider->list, &phy_provider_list);
mutex_unlock(&phy_provider_mutex);
return phy_provider;
}
EXPORT_SYMBOL_GPL(__of_phy_provider_register);
/**
* __devm_of_phy_provider_register() - create/register phy provider with the
* framework
* @dev: struct device of the phy provider
* @owner: the module owner containing of_xlate
* @of_xlate: function pointer to obtain phy instance from phy provider
*
* Creates struct phy_provider from dev and of_xlate function pointer.
* This is used in the case of dt boot for finding the phy instance from
* phy provider. While at that, it also associates the device with the
* phy provider using devres. On driver detach, release function is invoked
* on the devres data, then, devres data is freed.
*/
struct phy_provider *__devm_of_phy_provider_register(struct device *dev,
struct device_node *children, struct module *owner,
struct phy * (*of_xlate)(struct device *dev,
struct of_phandle_args *args))
{
struct phy_provider **ptr, *phy_provider;
ptr = devres_alloc(devm_phy_provider_release, sizeof(*ptr), GFP_KERNEL);
if (!ptr)
return ERR_PTR(-ENOMEM);
phy_provider = __of_phy_provider_register(dev, children, owner,
of_xlate);
if (!IS_ERR(phy_provider)) {
*ptr = phy_provider;
devres_add(dev, ptr);
} else {
devres_free(ptr);
}
return phy_provider;
}
EXPORT_SYMBOL_GPL(__devm_of_phy_provider_register);
/**
* of_phy_provider_unregister() - unregister phy provider from the framework
* @phy_provider: phy provider returned by of_phy_provider_register()
*
* Removes the phy_provider created using of_phy_provider_register().
*/
void of_phy_provider_unregister(struct phy_provider *phy_provider)
{
if (IS_ERR(phy_provider))
return;
mutex_lock(&phy_provider_mutex);
list_del(&phy_provider->list);
of_node_put(phy_provider->children);
kfree(phy_provider);
mutex_unlock(&phy_provider_mutex);
}
EXPORT_SYMBOL_GPL(of_phy_provider_unregister);
/**
* devm_of_phy_provider_unregister() - remove phy provider from the framework
* @dev: struct device of the phy provider
*
* destroys the devres associated with this phy provider and invokes
* of_phy_provider_unregister to unregister the phy provider.
*/
void devm_of_phy_provider_unregister(struct device *dev,
struct phy_provider *phy_provider)
{
int r;
r = devres_release(dev, devm_phy_provider_release, devm_phy_match,
phy_provider);
dev_WARN_ONCE(dev, r, "couldn't find PHY provider device resource\n");
}
EXPORT_SYMBOL_GPL(devm_of_phy_provider_unregister);
/**
* phy_release() - release the phy
* @dev: the dev member within phy
*
* When the last reference to the device is removed, it is called
* from the embedded kobject as release method.
*/
static void phy_release(struct device *dev)
{
struct phy *phy;
phy = to_phy(dev);
dev_vdbg(dev, "releasing '%s'\n", dev_name(dev));
regulator_put(phy->pwr);
ida_simple_remove(&phy_ida, phy->id);
kfree(phy);
}
static int __init phy_core_init(void)
{
phy_class = class_create(THIS_MODULE, "phy");
if (IS_ERR(phy_class)) {
pr_err("failed to create phy class --> %ld\n",
PTR_ERR(phy_class));
return PTR_ERR(phy_class);
}
phy_class->dev_release = phy_release;
return 0;
}
module_init(phy_core_init);
static void __exit phy_core_exit(void)
{
class_destroy(phy_class);
}
module_exit(phy_core_exit);
MODULE_DESCRIPTION("Generic PHY Framework");
MODULE_AUTHOR("Kishon Vijay Abraham I <kishon@ti.com>");
MODULE_LICENSE("GPL v2");